The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - Newcomers (http://hintsforums.macworld.com/forumdisplay.php?f=15)
-   -   Can't connect to MySQL (http://hintsforums.macworld.com/showthread.php?t=9044)

td6 02-04-2003 08:04 PM

Yeah, you were right. I went back to the website and started here:

Quote:

4. type "cd /usr/local/mysql"
5. type "sudo ./scripts/mysql_install_db", enter administrator password when asked
6. type "sudo chown -R mysql /usr/local/mysql/*"
7. type "sudo ./bin/safe_mysqld --user=mysql &"
8. Use it with "mysql test"
thanks! It hit me as soon as I saw what you wrote...

macubergeek 02-18-2003 01:00 PM

EASY STEPs
 
1. check to see if you installed it
do which mysql, which mysqld and see where they are located

2. check to see if mysql is actually running. You can't connect to mysql if it is not running

ps aux | grep mysqld

3. if it is running THEN check to see if it is in your path....
do: echo $PATH
this will tell you what your path is, then you check to see if where mysqld is installed is in your exisiting path.

good luck!

psycorpse 03-01-2003 10:36 AM

You can also try it with out the &. That is what I had to do.
sudo ./bin/safe_mysqld --user=mysql

The only problem that I have with that is I have to close the terminal window and open another one. However that isnt a big deal to me.

macubergeek 03-01-2003 11:07 AM

Complete mysql
 
Just installed this. It puts a control panel in System prefs with which you can start/stop mysql and reset the mysql database root password.

http://www.versiontracker.com/morein...d=17951&db=mac

intrntmn 03-01-2003 12:27 PM

mysql startup
 
Quote:

Originally posted by psycorpse
You can also try it with out the &. That is what I had to do.
sudo ./bin/safe_mysqld --user=mysql

The only problem that I have with that is I have to close the terminal window and open another one. However that isnt a big deal to me.
At the end of the above command, add an ampersand (&) ... this will perform the command "in the background" and return you to the command line.

Code:

sudo ./bin/safe_mysqld --user=mysql &
Jack


All times are GMT -5. The time now is 10:25 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.