I'm trying to get through the Lenz book and can't start the MySQL command Line
I followed the instructions in chapter 2
--------
dave-halletts-computer-2:/usr/local/mysql/bin davehallett$ sudo /usr/local/mysql/bin/mysqld_safe
Starting mysqld daemon with databases from /usr/local/mysql/data
^Z
[1]+ Stopped sudo /usr/local/mysql/bin/mysqld_safe
dave-halletts-computer-2:/usr/local/mysql/bin davehallett$ bg
[1]+ sudo /usr/local/mysql/bin/mysqld_safe &
dave-halletts-computer-2:/usr/local/mysql/bin davehallett$ ps -ax | grep mysql
607 p1 S 0:00.03 /bin/sh /usr/local/mysql/bin/mysqld_safe
620 p1 S 0:00.17 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data -
622 p1 S+ 0:00.00 grep mysql
dave-halletts-computer-2:/usr/local/mysql/bin davehallett$ mysql
-bash: mysql: command not found
dave-halletts-computer-2:/usr/local/mysql/bin davehallett$ mysql5
-bash: mysql5: command not found
dave-halletts-computer-2:/usr/local/mysql/bin davehallett$ mysql -u root
-bash: mysql: command not found
--------
I've tried a number of things but can't launch the console so I can't create the databases as described in Chapter 4
When I "ls" in the /usr/local/mysql/bin directory the mysql command is listed.
I'm stuck at this stage - can anyone help?
Thanks
Dave




Bookmarks