Results 1 to 13 of 13
Mar 6, 2007, 22:55 #1
- Join Date
- Aug 2004
- 0 Post(s)
- 0 Thread(s)
Installing mySQL 5.0.27 on OS X 10.4.8
I'm on page number 29 in "Build Your Own Ruby on Rails Web Application" where Patrick is instructing us on how to install mySQL. I've downloaded the current stable release of mySQL, run the mysql-standard-5.0.27-osx10.4-powerpc.pkg and was told that the installation was successful. Here is my concern:
I remember many months ago when I was fooling around with PHP and I recall installing multiple versions of PHP and mySQL on my machine. I remember specifically using Marc Liyanage's packages available on www.entropy.ch as well as MAMP.
Now, when I execute the following commands as per Patrick's instructions, I receive errors.
From the book:
Excellent. Next, we need to start the server—we’ll do this manually for now.
Open a Terminal window and enter the following command:
$ sudo /usr/local/bin/mysqld_safe5
Password: sudo: /usr/local/bin/mysqld_safe5: command not found mason:~ Mason$
$ sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
Starting MySQL database server
This is where things start getting confusing for me
Now Patrick says:Once MySQL is running, you can tell it to run in the background by hitting Ctrl-
Z, then entering this command:
-bash: bg: current: no such job
Not knowing what to do, I proceed with his further instructions to:
...close the Terminal window; MySQL will continue to run as a server
on your system. Now, all that’s left to do is confirm that the MySQL server is
indeed running as expected. In your Terminal window, type the following:
$ ps -ax | grep mysql
4903 p1- S 0:00.04 /bin/sh ./bin/mysqld_safe --datadir=/usr/local/mysql/ 4922 p1- S 0:05.15 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysq 7260 p1 R+ 0:00.00 grep mysql
He goes on to say:
If it does, you can try to connect to your database with the following
-bash: mysql5: command not found
So now I'm at an impasse. I have to wonder, could my previous installations of mySQL be conflicting somehow with my recent one? Why isn't mysql5 in /usr/local/bin/ and why am I not being presented with a mysql prompt when I enter mysql5 into the command line?
I'm not sure if I should proceed in the book without first working this out as I question whether or not leaving it unresolved could create more problems and confusion for me down the line.