今天公司大牛帮我搞定了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:

相关文章:

  • 2021-12-20
  • 2021-03-29
  • 2021-12-05
  • 2022-02-04
  • 2022-12-23
  • 2021-12-05
  • 2021-12-27
  • 2022-12-23
猜你喜欢
  • 2022-02-23
  • 2021-08-01
  • 2021-11-20
  • 2021-07-16
  • 2021-12-23
  • 2022-12-23
  • 2021-08-14
相关资源
相似解决方案