重置/更改mysql根密码
如何在中重置/更改mysql根密码? 我尝试过这个,但这个对我不起作用。在bitnami文件夹中,没有文件\bin\mysqld nt.exe解决问题: 一,。 停止服务wampstackMySQL(从开始菜单中,选择控制面板,然后选择管理工具,然后选择服务) 一,。 在windows cmd代码中: E:\Bitnami\wampstack-5.4.34-0\mysql\bin\mysqld.exe--默认文件=E:\Bitnami\wampstack-5.4.34-0/mysql\my.ini wampstackMySQL--init文件=E:\mysql-init.txt重置/更改mysql根密码,mysql,wamp,bitnami,Mysql,Wamp,Bitnami,如何在中重置/更改mysql根密码? 我尝试过这个,但这个对我不起作用。在bitnami文件夹中,没有文件\bin\mysqld nt.exe解决问题: 一,。 停止服务wampstackMySQL(从开始菜单中,选择控制面板,然后选择管理工具,然后选择服务) 一,。 在windows cmd代码中: E:\Bitnami\wampstack-5.4.34-0\mysql\bin\mysqld.exe--默认文件=E:\Bitnami\wampstack-5.4.34-0/mysql\my.in
ankichan@ankichan-HP-Notebook:~$ mysql -u root -p
Enter password:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
Then do the following steps:
Execute bash as root
sudo bash
Enter the regular password of your user
Change root password using:
passwd root
mysql-init.txt代码:
更新mysql.user SET Password=Password('MyNewPass'),其中user='root';同花顺特权
二,。
使用新的根密码通过连接到mysql服务器
三,。
重新启动PC或重新启动服务wampstackMySQL
四,。
删除文件mysql-init.txt
ankichan@ankichan-HP-Notebook:~$ mysql -u root -p
Enter password:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
Then do the following steps:
Execute bash as root
sudo bash
Enter the regular password of your user
Change root password using:
passwd root
这将允许您设置根密码
例如
mysqldnt与mysqld相同,只是它在windowsnt机器上支持命名管道。你有mysqld.exe吗?如果您有链接的解决方案,它是否适合您?mysqld:[错误]无法打开所需的默认文件:/…/my.ini
root@ankichan-HP-Notebook:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13