当前位置:   article > 正文

mac mysql5.7.17 64位dmg首次安装后修改root密码_mysql.dmg修改密码

mysql.dmg修改密码
  1. Stop MySQL
  2. sudo /usr/local/mysql/support-files/mysql.server stop
  3. Start it in safe mode:
  4. sudo mysqld_safe --skip-grant-tables
  5. This will be an ongoing command until the process is finished so open another shell/terminal window, and log in without a password as root:
  6. mysql -u root
  7. FLUSH PRIVILEGES;
  8. ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
  9. Change the lowercase ‘MyNewPass’ to what you want – and keep the single quotes.
  10. \q
  11. Start MySQL
  12. sudo /usr/local/mysql/support-files/mysql.server start
  13. Thats it, now your root password will be updated.

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/762648
推荐阅读
相关标签
  

闽ICP备14008679号