mac配置批改mysql的密码
时间:2021-07-01 10:21:17
帮助过:21人阅读
mac配置修改mysql的密码 1)sudo mate ~/.bash_profile文件里添加mysql的path export PATH=/usr/local/mysql/bin:$PATH 2)$source ~/.bash_profile 3)修改mysql密码 $mysqladmin -u root password 4)登录mysql $mysql -u root -p 5)启动/停止开机启动中的
mac配置修改mysql的密码
1)sudo mate ~/.bash_profile文件里添加mysql的path
export PATH=/usr/local/mysql/bin:$PATH
2)$source ~/.bash_profile
3)修改mysql密码
$mysqladmin -u root password
4)登录mysql
$mysql -u root -p
5)启动/停止开机启动中的mysql服务:
$sudo /Library/StartupItems/MySQL/MySQL start/stop