首页 > 系统服务 > 详细

MAC 系统环境配置记录

时间:2019-09-29 16:12:20      阅读:90      评论:0      收藏:0      [点我收藏+]

 

安装mysql

 

brew install mysql

 

 

We‘ve installed your MySQL database without a root password. To secure it run:

    mysql_secure_installation

 

MySQL is configured to only allow connections from localhost by default

 

To connect run:

    mysql -uroot

 

To have launchd start mysql now and restart at login:

  brew services start mysql

Or, if you don‘t want/need a background service you can just run:

  mysql.server start

 

 

开启安全模式

mysqld_safe --skip-grant-tables

 

可以无密码登陆mysql

mysql -uroot -p

 

更改mysql 密码

update user set authentication_string=‘‘ where User=‘root‘;

 

 

 

MAC 系统环境配置记录

原文:https://www.cnblogs.com/bandbandme/p/11607832.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!