You must SET PASSWORD before executing this statement解决

[转载] MySql5.6操作时报错:You must SET PASSWORD before executing this statement解决

转载: http://blog.csdn.net/yanzi1225627/article/details/8694358

参考前文利用安全模式成功登陆,然后修改密码,等于给MySql设置了密码。登陆进去后,想创建一个数据库测试下。得到的结果确实:

ERROR 1820 (HY000): You must SET PASSWORD before executing this statement

非常诡异啊,明明用密码登陆进去了,怎么还提示需要密码。

mysql>  SET PASSWORD = PASSWORD(‘123456‘);这句话重新设置一次密码!

mysql>  flush privileges;

来自为知笔记(Wiz)

时间: 2024-08-25 03:10:59

You must SET PASSWORD before executing this statement解决的相关文章

centOS下进入mysql报错-You must SET PASSWORD before executing this statement

解决办法: mysql>  SET PASSWORD = PASSWORD('123456'); Query OK, 0 rows affected (0.03 sec) mysql> create database roger; Query OK, 1 row affected (0.00 sec) 也就是用mysql>  SET PASSWORD = PASSWORD('123456');这句话重新设置一次密码! centOS下进入mysql报错-You must SET PASSW

linux - mysql 异常:ERROR 1820 (HY000): You must SET PASSWORD before executing this statement

问题描述 ERROR 1820 (HY000): You must SET PASSWORD before executing this statement 备注:新安装完数据库后,在 xshell 上登录 mysql 后,运行 SQL 语句报如上错误 解决方案一 # /etc/init.d/mysql stop // 关闭 mysql # mysqld_safe --user=mysql --skip-grant-tables --skip-networking & # mysql -u ro

【mysql】【You must reset your password using ALTER USER statement before executing this statement报错处理】

安装完mysql 之后,登陆以后,不管运行任何命令,总是提示这个 mysql> show databases; ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. mysql> use mysql; ERROR 1820 (HY000): You must reset your password using ALTER USER

安装完绿色版MySQL修改密码:ERROR 1820 (HY000): You must reset your password using ALTER USER statement befo re executing this statement.

mysql> update mysql.user set password=PASSWORD('123456') where User='root';ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. 参考:http://dev.mysql.com/doc/refman/5.6/en/alter-user.html 直接执行:set

Mac 安装 MySQL 5.7 后登入后无法执行命令【You must reset your password using ALTER USER statement before executing this statement.】

今天在 Mac 上安装了 MySQL 5.7 ,启动服务后,输入 mysql -u root -p 后,输入初始密码程,尝试执行 show databases; 报了一个 You must reset your password using ALTER USER statement before executing this statement. 错误. 参考 Stack Overflow 上一篇文章 https://stackoverflow.com/questions/33467337/re

mysql数据库问题———登录进去无法操作显示You must reset your password using ALTER USER statement before executing this statement

linux操作mysql数据库,可以登陆进去,但是操作所有命令都显示You must reset your password using ALTER USER statement before executing this statement,并且使用alter修改密码时,显示密码不符合权限 很多方法都没用,也不知道出了什么问题,我选择利用跳过密码登录后再次修改密码 解决过程: 1.编辑/etc/my.cnf 在[mysqld] 配置部分添加一行 skip-grant-tables 2.保存后重

MySQL5.7 报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement

MySQL5.7 报错 : ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement 需要重新设置密码.那我们就重新设置一下密码,命令如下: set password = password('123456'); 原文地址:https://www.cnblogs.com/Dev0ps/p/11738557.html

mysql错误:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement解决方法

Mysql关系型数据库管理系统 MySQL是一个开放源码的小型关联式数据库管理系统,开发者为瑞典MySQL AB公司.MySQL被广泛地应用在Internet上的中小型网站中.由于其体积小.速度快.总体拥有成本低,尤其是开放源码这一特点,许多中小型网站为了降低网站总体拥有成本而选择了MySQL作为网站数据库. 本文为大家讲解的是mysql错误:The MySQL server is running with the --skip-grant-tables option so it cannot

Django链接Mysql 8.0 出现错误(1045:Access denied for user 'root'@'localhost' (using password: NO) 的一种解决方法

运行环境: Django版本2.0 ; Mysql 版本 8.0.11; 错误代码:  django.db.utils.OperationalError: (1045:Access denied for user 'root'@'localhost' (using password: NO) 这个错误看网上的说法基本都是由于 数据库的 用户名 和 密码 不正确导致的 ,下面是我在Django Setting.py里的设置: ``` DATABASES = { 'default': { 'ENGI