今天头脑发热换了个新版的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.plcd ./mysql-test ; perl
mysql-test-run.plPlease 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的答案有手动建立,可惜无效。
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/21319
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.