简体   繁体   English

如何在 WampServer 版本 3.0.6 32bit 中更改 mysql 密码

[英]how to change mysql password in WampServer Version 3.0.6 32bit

I recently installed WampServer Version 3.0.6 32bit, i am trying to change the password of mysql.我最近安装了 WampServer 版本 3.0.6 32 位,我正在尝试更改 mysql 的密码。 it shows the first error "No database selected".它显示第一个错误“未选择数据库”。 i selected the "MySql" database and try to create a password then it shows "Unknown column 'password' in 'field list'"我选择了“MySql”数据库并尝试创建一个密码,然后它在“字段列表”中显示“未知列‘密码’”

The command m using is "update user set password=password('abc@jkl') where user='root'; m 使用的命令是“update user set password=password('abc@jkl') where user='root';

  1. Open the MySQL console by selecting the menu shown above.通过选择上面显示的菜单打开 MySQL 控制台。
  2. After clicking on the “MySQL console” following console window will be opened where default password is empty so we hit one enter key to continue without typing.单击“MySQL 控制台”后,将打开以下控制台窗口,其中默认密码为空,因此我们按 Enter 键继续,无需输入。

3.Now in order to change the default password we need to type following query in the MySQL console (in this example we are setting the password to– “foo“) 3.现在为了更改默认密码,我们需要在 MySQL 控制台中键入以下查询(在此示例中,我们将密码设置为 – “foo”)

`SET PASSWORD FOR root@localhost=PASSWORD('foo');`

4. In the older versions of the phpmyadmin we need to manually change the password in the phpmyadmin config file but in the current version we can skip this step. 4.在旧版本的phpmyadmin中我们需要手动修改phpmyadmin配置文件中的密码,但在当前版本中我们可以跳过这一步。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM