今天头脑发热换了个新版的Mysql5.1.59 ,竟然安装不成功了
ZRY-MBP:mysql zuroyu$ sudo scripts/mysql_install_db
Installing MySQL system tables...
OK
Filling help tables...
OK
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 !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h ZRY-MBP.local password 'new-password'
Alternatively you can run:
./bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
---------
安装完成
---------
ZRY-MBP:bin zuroyu$ ./mysqladmin -u root password '***'
./mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
然后一直卡在这sock上了…… 手动touch /tmp/mysql.sock也不好用。
最后只好通过macports安装,竟然成功了~
谁了解上面那个问题的原因呢?stackoverflow的答案有手动建立,可惜无效。
ZRY-MBP:mysql zuroyu$ sudo scripts/mysql_install_db
Installing MySQL system tables...
OK
Filling help tables...
OK
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 !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h ZRY-MBP.local password 'new-password'
Alternatively you can run:
./bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
---------
安装完成
---------
ZRY-MBP:bin zuroyu$ ./mysqladmin -u root password '***'
./mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
然后一直卡在这sock上了…… 手动touch /tmp/mysql.sock也不好用。
最后只好通过macports安装,竟然成功了~
谁了解上面那个问题的原因呢?stackoverflow的答案有手动建立,可惜无效。