Home > Database > Mysql Tutorial > mac配置批改mysql的密码

mac配置批改mysql的密码

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:15:39
Original
1236 people have browsed it

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
Related labels:
source:php.cn
Statement of this Website
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
Latest Issues
mac use
From 1970-01-01 08:00:00
0
0
0
How to install it on Mac?
From 1970-01-01 08:00:00
0
0
0
Why doesn’t Mac have PHPstudy?
From 1970-01-01 08:00:00
0
0
0
When will phpstudy release a mac version?
From 1970-01-01 08:00:00
0
0
0
Where is the telnet option on mac computer?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template