mysql 初始化修改密码问题(Mac系统)
今天公司大牛帮我搞定了mysql初始化密码问题,纪录一下:
~ ps aux | grep mysql
Metro 7149 0.0 0.0 2432772 564 s000 R+ 7:16下午 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn mysql
_mysql 6942 0.0 5.4 3087448 456932 ?? Ss 7:14下午 0:00.42 /usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/usr/local/mysql/data/mysqld.local.err --pid-file=/usr/local/mysql/data/mysqld.local.pid
➜ ~ /usr/local/mysql/bin/mysqladmin -u root password
New password:
Confirm new password:
/usr/local/mysql/bin/mysqladmin: Passwords don't match
➜ ~ /usr/local/mysql/bin/mysqladmin -u root password
New password:
Confirm new password: