hi all,
I'm puzzled. So I've got a few php pages that connect to mysql, and I've placed mysql.sock file in /temp/mysql.sock and updated the configuration files accordingly. So most of my php pages work just fine.
However, I created a page recently and with almost the same code to connect to mysql, I get the following error...
Fatal error: MySQL error: 2002 : Can't connect to local MySQL server through socket '/tmp/mysql.sock' (146) in...
Here's my question, Why do some of my pages understand that mysql.sock is in /temp/ while others don't? Does anyone have any suggestions for why this is? I'm using same username, password, database conn, etc...
I'm puzzled. So I've got a few php pages that connect to mysql, and I've placed mysql.sock file in /temp/mysql.sock and updated the configuration files accordingly. So most of my php pages work just fine.
However, I created a page recently and with almost the same code to connect to mysql, I get the following error...
Fatal error: MySQL error: 2002 : Can't connect to local MySQL server through socket '/tmp/mysql.sock' (146) in...
Here's my question, Why do some of my pages understand that mysql.sock is in /temp/ while others don't? Does anyone have any suggestions for why this is? I'm using same username, password, database conn, etc...