Hi...
I have been running MySQL for a while on OS X 10.1 for a while with no problems. I have since updated to 10.2 and MySQL broke. I downloaded the packages from http://www.entropy.ch/software/macosx/mysql/
To be safe I ran the clean up script. It found 2 old version. I removed both of them.
I then installed the latest package "mysql-3.23.53.pkg" from the GUI.
I turned to the terminal an followed the instructions as you see below.
I keep getting the "ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"
This is the error I also got after having upgraded to 10.2.
Any ideas?
Thanks
- - - - -
My terminal session:
[Tobias-Balle-Petersens-Computer:/Library/StartupItems] tobias% cd /usr/local/mysql
[Tobias-Balle-Petersens-Computer:/usr/local/mysql] tobias% sudo ./scripts/mysql_install_db
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
021121 16:27:58 ./bin/mysqld: Shutdown Complete
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h Tobias-Balle-Petersens-Computer.local. password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/safe_mysqld &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; run-all-tests
Please report any problems with the ./bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
[Tobias-Balle-Petersens-Computer:/usr/local/mysql] tobias% sudo chown -R mysql /usr/local/mysql/*
[Tobias-Balle-Petersens-Computer:/usr/local/mysql] tobias% sudo ./bin/safe_mysqld --user=mysql &
[1] 4026
[Tobias-Balle-Petersens-Computer:/usr/local/mysql] tobias% Starting mysqld daemon with databases from /usr/local/mysql/data
021121 16:28:58 mysqld ended
/usr/local/bin/mysql test
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[1] + Done sudo ./bin/safe_mysqld --user=mysql
I have been running MySQL for a while on OS X 10.1 for a while with no problems. I have since updated to 10.2 and MySQL broke. I downloaded the packages from http://www.entropy.ch/software/macosx/mysql/
To be safe I ran the clean up script. It found 2 old version. I removed both of them.
I then installed the latest package "mysql-3.23.53.pkg" from the GUI.
I turned to the terminal an followed the instructions as you see below.
I keep getting the "ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"
This is the error I also got after having upgraded to 10.2.
Any ideas?
Thanks
- - - - -
My terminal session:
[Tobias-Balle-Petersens-Computer:/Library/StartupItems] tobias% cd /usr/local/mysql
[Tobias-Balle-Petersens-Computer:/usr/local/mysql] tobias% sudo ./scripts/mysql_install_db
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
021121 16:27:58 ./bin/mysqld: Shutdown Complete
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h Tobias-Balle-Petersens-Computer.local. password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/safe_mysqld &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; run-all-tests
Please report any problems with the ./bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
[Tobias-Balle-Petersens-Computer:/usr/local/mysql] tobias% sudo chown -R mysql /usr/local/mysql/*
[Tobias-Balle-Petersens-Computer:/usr/local/mysql] tobias% sudo ./bin/safe_mysqld --user=mysql &
[1] 4026
[Tobias-Balle-Petersens-Computer:/usr/local/mysql] tobias% Starting mysqld daemon with databases from /usr/local/mysql/data
021121 16:28:58 mysqld ended
/usr/local/bin/mysql test
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[1] + Done sudo ./bin/safe_mysqld --user=mysql