Mac环境下mysql初始化密码问题--If you lose this password, please consult the section How to Reset the Root Password in the MySQL reference manual.
2017-06-02 17:22
951 查看
个人在Mac上操作数据库,遇到的启动数据库问题的简单记录
1、苹果->系统偏好设置->最下边点mysql 在弹出页面中 关闭mysql服务(点击stop mysql server)
2、进入终端输入:cd /usr/local/mysql/bin/
回车后 登录管理员权限 sudo su
回车后输入以下命令来禁止mysql验证功能 ./mysqld_safe --skip-grant-tables &
回车后mysql会自动重启(偏好设置中mysql的状态会变成running)
3、输入命令 ./mysql
回车后,输入命令 FLUSH PRIVILEGES;
回车后,输入命令 SET PASSWORD FOR 'root'@'localhost' = PASSWORD('你的新密码');
1、苹果->系统偏好设置->最下边点mysql 在弹出页面中 关闭mysql服务(点击stop mysql server)
2、进入终端输入:cd /usr/local/mysql/bin/
回车后 登录管理员权限 sudo su
回车后输入以下命令来禁止mysql验证功能 ./mysqld_safe --skip-grant-tables &
回车后mysql会自动重启(偏好设置中mysql的状态会变成running)
3、输入命令 ./mysql
回车后,输入命令 FLUSH PRIVILEGES;
回车后,输入命令 SET PASSWORD FOR 'root'@'localhost' = PASSWORD('你的新密码');
相关文章推荐
- How to reset the root passwd if we forget the root password in red hat
- mysql多实例配置下,用脚本启动mysql时,出现Please read "Security" section of the manual to find out how to run mysqld as root!
- [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
- Please read "Security" section of the manual to find out how to run mysqld as root!错误解决
- Please read “Security” section of the manual to find out how to run mysqld as root!错误解决(转)
- How to tell if you’re running the 32 bit or 64 bit kernel in Mac OS X Snow Leopard
- Please read "Security" section of the manual to find out how to run mysqld as root!错误解决
- Please read "Security" section of the manual to find out how to run mysqld as root!错误解决
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL的问题
- How to set a MySQL root user password in MAC OSX
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- How to get the password text in a text with password property from another process using C++ - 用C++如何从不同进程获取密码框文本
- mysql初始化修改root用户密码,mysqladmin: Can't turn off logging; error: 'Access denied; you need the SUPER pri
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You cannot run the non-logged version of bulk copy in this database. Please check with the DBO. 问题的解决方法
- asp.net mysql无法查询中文;You have an error in your SQL syntax; check the manual that corresponds to
- SQL Error: 1064, SQLState: 42000 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- [Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL s