Error 2002 : php_network_getaddresses

Help
2012-05-04
2013-05-28
  • 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 :
    <?php

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

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

     
  • 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/db.inc.php'? Same for username and password.

    Thanks, Matthias

     
  • Jeff Mather
    Jeff Mather
    2012-05-11

    figured it out - thanks!