I've been researching the problem all day and need some help.
WordPress can't connect to the MySQL DB.
1) I installed MySQL via the package from MySQL.com (64-bit)
2) /etc/my.cnf shows that socket is at /var/mysql/mysql.sock
3) I check and there is no socket at /tmp/mysql.sock (does not exist)
4) My php.ini file in /etc/php.ini has "msqli.default_socket = /var/mysql/mysql.sock
I've tried to set wp-config.php to:
define('DB_HOST', 'localhost');
also tried:
define('DB_HOST, 'localhost:/var/mysql/mysql.sock');
When loading the wordpress site, I get the:
Error establishing a database connection
I confirmed the username, dbname and password with Querious
Any ideas?
WordPress can't connect to the MySQL DB.
1) I installed MySQL via the package from MySQL.com (64-bit)
2) /etc/my.cnf shows that socket is at /var/mysql/mysql.sock
3) I check and there is no socket at /tmp/mysql.sock (does not exist)
4) My php.ini file in /etc/php.ini has "msqli.default_socket = /var/mysql/mysql.sock
I've tried to set wp-config.php to:
define('DB_HOST', 'localhost');
also tried:
define('DB_HOST, 'localhost:/var/mysql/mysql.sock');
When loading the wordpress site, I get the:
Error establishing a database connection
I confirmed the username, dbname and password with Querious
Any ideas?