Mysql denied for user '[email protected]' || denied for user '[email protected]'

1. Question Description:

1.1  mysql  version:  mysql-5.7.11-win64.zip

1.2  if you connect to the mysql  service the first time, you may come across some problems

1.2.1  mysql -u root -p (enter), no password(enter), you will see

1.2.2   if you want to update the user‘s password like "update user set password=.....", you will see

2. Solution:

2.1 net stop mysql(stop the mysql service)

2.2 mysqld -nt --skip-grant-tables (you will see cusor is waiting, it‘s ok,)

open another cmd window

2.3 mysql

2.4

mysql>use mysql

mysql>update user set password=password("123456") where user="root";

mysql>flush privileges;

       mysql>exit

    2.5  net start mysql

      2.6  mysql -u root -p

2.7 set password=password("123456");

3. Thinking

I had meet the problem before, but forget how to set it,

That‘s mean Writing is better than Minding.

Mysql denied for user '[email protected]' || denied for user '[email protected]'

时间: 2024-11-05 15:58:16

Mysql denied for user '[email protected]' || denied for user '[email protected]'的相关文章

一看便知linux下mysql报错ERROR 1044: Access denied for user: '@localhost' to database 'mysql'

错误信息:ERROR 1044: Access denied for user: '@localhost' to database 'mysql' linux下解决方案: mysql> use mysql ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql' mysql> exit Bye [[email protected] ~]# service mysqld stop如果该命令不

解决mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO/YES)

1 现象 mysql -u root -p 错误:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO/YES)2 linux系统: 在配置文件my-default.cnf或my.cnf下 [mysqld]下添加skip-grant-tables:因为此方法无效,所以找到了以下方法 为了加强安全性,MySQL5.7为root用户随机生成了一个密码,在error log中,关于error

Django syncdb mysql error on localhost -> (1045, "Access denied for user 'ODBC'@'localhost')

环境:WINDOWS系统 将数据库配置 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'HOST': 'localhost', 'PORT': 3306, 'NAME': 'yunwei', 'USERNAME': 'root', 'PASSWORD': 'mysql', } } 改为 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql',

解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes

今天想用用MySQL 数据库  谁知道老提示 1045 access denied for user 'root'@'localhost' using password yes 最后在csdn 上找到了答案 来源:http://bbs.csdn.NET/topics/310006640     13楼 解决: 1. 开始 --> cmd   --> net stop mysql  (停用MySQL服务  没启动的可以省略) 2. 找到安装路径 MySQL Server 5.1下的my.ini

mysql授权问题:1004 Access denied for user '用户名'@'%' to database

场景:平时直接用root登录到mysql服务器上进行SQL语句查询,当想用python连接mysql时,提示1045, "Access denied for user 'root'@'IP地址' (using password: YES)",然后用create user 用户名 identified by '密码'创建了用户名为自己名字的用户,再去执行python,提示1004 Access denied for user '用户名'@'%' to database,这时候就要进入my

解决mysql提示错误:1045 access denied for user 'root'@'localhost' using password yes

少年,请看下图. 1. 开一个dos 2. 再开一个dos 3.即可.补充一个linux下的: 解决mysql提示错误:1045 access denied for user 'root'@'localhost' using password yes

连接MySQL数据库出现错误:Access denied for user 'root'@'localhost' (using password:YES)

自己在重拾MySQL数据库的时候,第一次连接数据库时候出现Access denied for user 'root'@'localhost' (using password:YES)的错误.查了相关资料,发现是root帐户默认不开放远程访问权限,所以需要修改一下相关权限.可以执行如下的解决方法. 打开MySQL目录下的my.ini文件,在文件的最后添加一行"skip-grant-tables",保存并关闭文件. 重启MySQL服务. 通过命令行进入MySQL的BIN目录,输入"

Mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Linux: MySQL安装时默认的用户是root,这里的root是指数据库的用户,root密码一般在初始化MySQL时存放在你的日志文件中,日志文件的存放路径可以通过my.cnf文件进行自定义. 使用如下方法即可解决,已验证可行. #1.停止mysql数据库 /etc/init.d/mysqld stop #2.执行

Ubuntu下连接mysql出现 ERROR 1698 (28000): Access denied for user 'root'@'localhost'错误解决方法

ubuntu版本:18.04    mysql版本:5.7.24 ubuntu安装mysql后用root账户登入会出现问题:ERROR 1698 (28000): Access denied for user 'root'@'localhost' 可能是因为初始密码为空:按空格回车后还是报一样的错 这样就只能使用debian-sys-maint账户修改root账户密码了. debian-sys-maint账户是安装mysql时系统自动生成的mysql用户,debian和ubuntu系统都会这样做