Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Connect to MySQL database (on Ubuntu Server) using Perl

by moritz (Cardinal)
on Jul 25, 2012 at 12:45 UTC ( #983648=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Connect to MySQL database (on Ubuntu Server) using Perl
in thread Connect to MySQL database (on Ubuntu Server) using Perl

Use the real host name, not "hostname". For example "localhost". The documentation of your VPS should tell you what the correct hostname is.


Comment on Re^3: Connect to MySQL database (on Ubuntu Server) using Perl
Re^4: Connect to MySQL database (on Ubuntu Server) using Perl
by liverpaul (Novice) on Jul 25, 2012 at 12:57 UTC

    I just used hostname for my privacy. I used the real hostname in my script.

    When I was setting up my server (for my first time) I gave it a hostname (that's the name I tried in my script). I haven't done all the dns stuff yet. I've tested the site just using the ip address (I've also tested this as my hostname).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://983648]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2015-07-03 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls