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
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn