Angelo Joseph wrote:
I installed my sql on my mac tiger and tried to run it but i keep
getting the error message below and i’ve looked everywhere but there
seems to be no solution for this can anyone shed any light. ?
angelojoseph:~ angelojoseph$ mysql
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket
I used the instructions here:
which refer to the mysql installation instructions here:
which are a little confusing about how to start mysql.
I also used the additional steps here:
I put /usr/local/mysql/bin in my PATH environment variable(in my
- To start, type:
$ cd /usr/local/mysql
$ sudo ./bin/mysqld_safe
(Enter your password, if necessary)
$ bg #continue a stopped job in the background–Ctrl+Z stops job?
(Press Control-D or enter “exit” to exit the shell)
To get mysql prompt:
$ mysql -u root
- To quit mysql prompt, type:
- To shut down mysql:
$ sudo mysqladmin shutdown
- For help, type: