Folks,
I'm writing an application on a LAMPhp server... Everything has been fine up
until now though I have only got about 6months of MySQL behind me.
Today... my server has started to report the following while trying to do a
mysql_query() select from an empty table...
Warning: mysql_query(): Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (2) in
/data/www/websites/mydomain.com/www/include2/standard/MySQL.fip on line 139
Warning: mysql_query(): A link to the server could not be established in
/data/www/websites/mydomain.com/www/include2/standard/MySQL.fip on line 139
Two things though:
1) I have output the query to the browser, then cut and pasted it in to the
mysql command line and it executes, returning no errors, and zero rows.
2) I can connect both from the server, and my client machines to MySQL...
So where could my problem be? I'm the only user on the box...
anybody got any ideas? My code at line 139 works fine as the same group of
functions work in my other coded projects so I know it can't be that...
Thanks in advance,
randell d.
Comment