Error 2002 : php_network_getaddresses

  • Jeff Mather

    Jeff Mather - 2012-05-04

    Hi, I'm getting this when I go to index.php at installation.  I am connecting to mysql as I can run this successfully :

    $db = mysql_connect("localhost:3306", "raadmin", "pubs");

    if (!$db) {
    die('Could not connect' . mysql_error());
    echo 'Connected successfully';
    Any ideas?

  • Matthias Steffens

    HI Jeff,

    could you give us the exact/full error message you're receiving?

    Which versions of PHP and MySQL are you using? And which operating system are you using?

    Also, I see that you've entered the (default) port for the host in your 'mysql_connect()' statement. Have you tried entering exactly the same in variable '$hostName' in file 'initialize/'? Same for username and password.

    Thanks, Matthias

  • Jeff Mather

    Jeff Mather - 2012-05-11

    figured it out - thanks!


Log in to post a comment.