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

Replies are listed 'Best First'.
Re^4: Connect to MySQL database (on Ubuntu Server) using Perl
by liverpaul (Acolyte) 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).