Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Hi,

    Do you have the PHP mysqli extension installed?

    Thread Starter meregha

    (@meregha)

    Yes is installed, we are still making test, but it’s a strange situation, something obviously is missing.

    Rgds.

    Plugin Author nintechnet

    (@nintechnet)

    You can try our test script: https://nintechnet.com/ninjadb_php.txt

    Rename it to ninjadb.php, upload it into your WordPress root folder (this is the folder where your index.php and wp-config.php are located), then visit YOUR_DOMAIN.TLD/ninjadb.php with your browser.
    It will show you errors about the DB connection.

    Dear,
    this is the result:
    Found wp-config.php.
    Opening it for reading.
    Looking for DB_NAME, DB_USER, DB_PASSWORD, DB_HOST and $table_prefix:

    DB_NAME: found
    DB_USER: found
    DB_PASSWORD: found
    DB_HOST: found
    table_prefix: found

    Attempting to connect to the DB: Connection Error: No such file or directory

    I forgot to mention that i’ve installed this wordpress again from scratch from an empty DB, so now it’s a fresh install.

    Rgds.

    Plugin Author nintechnet

    (@nintechnet)

    Hi,

    Please see this thread and that one too.
    You will likely need to edit the mysql.default_socket directive in your php.ini file.

    Thread Starter meregha

    (@meregha)

    Dear,
    followed your tips, PHP.INI is ok, but still receiving the same message, what file or directory is looking for?

    Plugin Author nintechnet

    (@nintechnet)

    Hi,

    The error refers to the MySQL socket, which cannot be found.
    In your wp-config.php file, do you connect to the DB using “localhost”? If so, can you try to replace it with “127.0.0.1” ?

    Dear,
    great suggestion! Worked!!!!!

    Thanks a lot!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Cannot connect to WordPress database’ is closed to new replies.