PDA

View Full Version : PHP / MySQL


jace
6-19-03, 12:34 AM
Many of us seem to be encountering the same error message in phpmyadmin: "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)", even folks who have already been been up and running for some time.

I've noticed a discrepancy between what my member ops page claims to be my MySQL server, mysql03.powweb.com, and what phpinfo says I'm on, www02.powweb.com. Does anybody know who I should believe? Neither works. Help?
-Jace

The Visitor
6-19-03, 12:47 AM
Your database is on mysql03, and your website is on www02. So, both are correct, but only mysql03 will work. :)

jace
6-19-03, 01:24 AM
I finally got in! If anybody wants to know, phpinfo does not list the correct MySQL server for mysql03.powweb.com. Also, for fellow newbies to phpmyadmin, the line "Do not use $cfg['Servers'][0]" in the 3 database array is confusing: DO use the first $cfg section in the array.

jace
6-19-03, 01:28 AM
Thanks, Visitor. I guess I was posting my own discoveries while you were replying. It's taken me 3 days to figure this out; I'm going to rest on my laurels and not try to make it DO anything tonight. :D