Forums

Error establishing a database connection (2 posts)

  1. mike_javelin
    Member
    Posted 3 months ago #

    I've searched and read numerous threads covering this issue without finding a solution that works for me.

    Host is 1&1 - managed server.

    The issue is the connection identified by my host which is
    localhost:/tmp/mysql5.sock

    In e107 and Drupal I have to upload a php.ini file with the following lines to get the connection to work.
    mysql.default_socket = /tmp/mysql5.sock
    mysqli.default_socket = /tmp/mysql5.sock

    I've tried this in the WP root with no success.

    I note from the search results that others have managed to get "localhost:/tmp/mysql5.sock" to work but I don't seem to be able to.

    I've tried editing the sample config file, entering my database name, user, password and connection details, again with no luck.

    I have numerous e107 and drupal sites using the above connection so I know it works so it must be a "WP" thing.
    I'd really like to have a go at a WP site as they look great.

  2. RichardWPG
    Member
    Posted 3 months ago #

    A fresh installation of WordPress will do or you can check your database credentials with your hosting provider.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.