Connect to mysql socket
-
I would like to import from my Drupal 6 DB which I connect to using a mysql socket. (I don’t have any other means to connect)
In wp-config.php I connect like this:
define('DB_HOST', 'localhost:/path/to/my/mysql/socket');
I tried setting that as my hostname in the plugin but was not able to connect. I left the port at 3306 and also tried blanking it out. My database name, username, and password are correct.
The error I get is:
[ERROR] Couldn’t connect to the Drupal database. Please check your parameters. And be sure the WordPress server can access the Drupal database.
SQLSTATE[HY000] [2002] Connection refused
Thanks for your help, I tried out Drupal 8 and am sorta disappointed in it and am interested in trying out WordPress more and would likely buy your plugin if I decided to go this route.
- The topic ‘Connect to mysql socket’ is closed to new replies.