• Resolved sc2013

    (@sc2013)


    Hi guys,

    Please help me out here..new with this WP thing. I am on a Mac.
    Apache web server and MySQL are both running…
    getting database connection error as follows..

    Warning: mysqli_real_connect(): php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known in /Applications/XAMPP/xamppfiles/htdocs/local-wordpress/wp-includes/wp-db.php on line 1488

    Warning: mysqli_real_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known in /Applications/XAMPP/xamppfiles/htdocs/local-wordpress/wp-includes/wp-db.php on line 1488

    I am hoping someone can see what I am not..

    Here is how my config file looks like.

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘WPsite1’);

    /** MySQL database username */
    define(‘DB_USER’, ‘root’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ”);

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • rudym

    (@rudym)

    Can you try logging in from the terminal? Also, you don’t have to, but set a password for root, just for good practice.

    Thread Starter sc2013

    (@sc2013)

    Thanks for ur reply..I actually uninstalled xampp and tried mamp instead..the WP installation went smoothly with mamp. I read somewhere that xampp has problems with OS X 10.10.5

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘getting database connection error..trying to install WP on localhost using XAMPP’ is closed to new replies.