Time Zone issues

Ask your questions regarding TimeTrex installation here.
Locked
asink3
Posts: 1
Joined: Tue Apr 10, 2007 10:49 am

Time Zone issues

Post by asink3 »

I'm getting the typical time zone error but when I used the (mysql_tzinfo_to_sql /usr/share/zoneinfo/ | mysql -p mysql) fix, the server responds "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)" I'm using Xampp could that have something to do with it?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

You need to find out how you can connect to MySQL from the console, then use that command for importing timezones. For instance you may need to use a command like:

mysql -h localhost

Unfortunately this is often different on every system.
MichelleM
Posts: 37
Joined: Thu Apr 26, 2007 8:41 am

Error: Can't connect to local MySQL server through socket ..

Post by MichelleM »

asink3:

That error you quoted often means the MySQL server isn't running. Check http://dev.mysql.com/doc/refman/5.0/en/ ... erver.html for further details.

In other cases, your MySQL server could be configured to look for its temp (socket) file in the wrong place (distro MySQL vs. downloaded) and you'll get this error. Please see http://www.tech-recipes.com/mysql_tips762.html for an explanation. This issue is detailed on the MySQL forums here: http://forums.mysql.com/read.php?11,27769,147093.

Best of luck!

Michelle

Open Source works better when we all give back.
Locked