1
cdffh 2015-11-17 17:43:32 +08:00
安装之后应该会告诉你 我记得是在你安装的用户目录下面
实在记不得就重置吧 也不麻烦 |
2
hyq 2015-11-17 18:27:38 +08:00
启动 mysqld 的时候,加上 --skip-grant-tables 参数,可以修改 root 密码
|
3
FireCat OP @hyq 我加了这个参数可是 2015-11-17T11:07:59.559684Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-11-17T11:07:59.559913Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path. 2015-11-17T11:07:59.559956Z 0 [Note] mysqld (mysqld 5.7.9) starting as process 656 ... 2015-11-17T11:07:59.561714Z 0 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql-5.7.9-osx10.9-x86_64/data/ is case insensitive 2015-11-17T11:07:59.561746Z 0 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root! 2015-11-17T11:07:59.561778Z 0 [ERROR] Aborting 2015-11-17T11:07:59.561785Z 0 [Note] Binlog end 2015-11-17T11:07:59.561830Z 0 [Note] mysqld: Shutdown complete 出了这么长一串错误 |
4
Troevil 2015-11-17 19:33:24 +08:00
mysqladmin 直接改密码
|
5
zeacev 2015-11-17 19:50:42 +08:00
home 目录下 ls -a 有个.mysql_secret ,里面有个密码,你试试是不是你要的
前几天黑了个 Yosemite ,装完之后为了装个 MySQL 花的时间比黑 Yosemite 还多,最终还是没能装好,报错一个接一个,现在直接用 XAMPP ,懒得折腾 |