Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kenahoo

    (@kenahoo)

    Well, if I try 127.0.0.1 instead of localhost, I get a different formatting of the error:

    Initialization Error
    
    Array
    (
        [callback] => Array
            (
                [0] => CRM_Core_Error
                [1] => simpleHandler
            )
    
        [code] => -24
        [message] => DB Error: connect failed
        [mode] => 16
        [debug_info] =>  [nativecode=No such file or directory]
        [type] => DB_Error
        [user_info] =>  [nativecode=No such file or directory]
        [to_string] => [db_error: message="DB Error: connect failed" code=-24 mode=callback callback=CRM_Core_Error::simpleHandler prefix="" info=" [nativecode=No such file or directory]"]
    )
    Thread Starter kenahoo

    (@kenahoo)

    Depending of your set up, something might be blocking WordPress from accessing your database. It might be incorrect address or credentials

    The address is localhost and the credentials are valid, because I can do wp db check with those credentials. So it’s got to be something else.

    • This reply was modified 5 years, 9 months ago by kenahoo.
    Thread Starter kenahoo

    (@kenahoo)

    I’m running WordPress using Apache. I can connect at the command line to the database by copying & pasting the connection info from wp-config.php. Is there something else you mean by checking the connection?

Viewing 3 replies - 1 through 3 (of 3 total)