Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > mysql.sock hell

mysql.sock hell
Thread Tools
Professional Poster
Join Date: May 2001
Location: Santa Clara, CA
Status: Offline
Reply With Quote
Feb 2, 2003, 11:20 PM
 
I cannot use mysql, because of the following error message "Can't connect to local MySQL server through socket '/tmp/mysql.sock'" and for some reason I know no way to remedy that. Would anyone know how to get around this? Thanks.

I use Mac OS X Server 10.2.3
World of Warcraft (Whisperwind - Alliance) <The Eternal Spiral>
Go Dogcows!
     
Mac Elite
Join Date: Aug 2000
Location: Minneapolis, MN
Status: Offline
Reply With Quote
Feb 3, 2003, 08:57 AM
 
That error is likely because the mysql server isn't actually running.

It seems like the application to 'start' mysql with OSXServer needs some tweaking of its settings to get started.

If I remember correctly, the tables may not be properly populated. You can find the log file to give you a clue as to what is happening.

Open Terminal and look at your log files. It is located in /var/mysql

Then look for the file named with an ending '.err'

Type 'tail [filename].err" and it should list the last 10 lines of the log for you to see. Perhaps this can get you started in the right direction.

If you get an error like the following, it is likely your tables and permissions are not set for the database:

"/usr/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)"


Good luck.
     
Junior Member
Join Date: Jul 2002
Location: na
Status: Offline
Reply With Quote
Feb 3, 2003, 08:46 PM
 
try running /usr/local/bin/safe_mysqld, that did it for me.
     
Mac Elite
Join Date: Aug 2000
Location: Minneapolis, MN
Status: Offline
Reply With Quote
Feb 4, 2003, 08:25 AM
 
Originally posted by kymikai:
try running /usr/local/bin/safe_mysqld, that did it for me.
That will work "UNTIL RESTART" when the mysql daemon won't be restarted after the computer is turned off and back on again.

It seems like the OSX Server installation of mysql isn't as elegant as the filesharing and other features of installed applications.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:44 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2