mysql SELECT command denied to user 'root'@'localhost' for table 'XXX' 报错1142

还是数据库权限的问题,不知道为啥赋给了所有权限后还是有各种权限问题,看来有空得整理一下mysql所有相关权限的问题了...

下面才是解决这个select权限的方法:

mysql SELECT command denied to user 'root'@'localhost' for table 'XXX' 报错1142

时间: 2024-07-30 10:16:57

mysql SELECT command denied to user 'root'@'localhost' for table 'XXX' 报错1142的相关文章

Mysql相关问题-----1045 Access denied for user 'root'@'localhost' (using password: YES)报错

MySQL 连接错误,使用Navicat连接MySQL出现错误:1045 Access denied for user 'root'@'localhost' (using password: YES) 解决方案: 1.编辑mysql配置文件my.ini 在mysql的安装目录下 ,在[mysqld]这个条目下加入 skip-grant-tables 保存退出后重启mysql [mysqld] #作用是跳过登录的验证 #skip-grant-tables port = 3306 basedir=C

mysql中Access denied for user 'root'@'localhost' (using password:YES)

解决方案 格式:mysqladmin -u用户名 -p旧密码 password 新密码 例:给root加个密码root 首先在进入CMD命令行,转到MYSQL目录下的bin目录,然后键入以下命令 mysqladmin -uroot password root 注:因为开始时root没有密码,所以-p旧密码一项就可以省略了. D:\MySQL\bin>mysqladmin -uroot password root回车后ROOT密码就设置为root了 mysql中Access denied for

windows下(Mysql)Access denied for user 'root'@'localhost' (using password:YES) 解决方案

解决方案: 1.在my.ini文件的最后添加一行“skip-grant-tables”,保存并关闭文件. 2.重启MySQL服务. 3.在命令行中输入“mysql -uroot -p”(不输入密码),回车即可进入数据库. 4.执行,“use mysql;”使用mysql数据库. 5.执行,“update user set password=PASSWORD("自己设置的新密码") where user='root';”(修改root的密码) 6.打开my.ini文件,删除“skip-g

MySQL 出现 Access denied for user 'root'@'localhost' (using password: YES) 错误

登录某台服务器的mysql时候总报错: mysql2/client.rb:58:in `connect': Access denied for user 'root'@'localhost' (using password: YES) (Mysql2::Error) 解决方法:   在windows 下的解决方法也一样的  [sql] view plaincopy # /etc/init.d/mysqld stop # mysqld_safe --user=mysql --skip-grant-

My-sql #1045 - Access denied for user 'root'@'localhost' (using password: NO)

当你重装数据库后出现这个问题的时候,不要着急,首先你要去你的确定你的数据库已经成功的把服务开启了, 然后确定你的密码和账户,IP都确认的情况下, 去寻找config.inc.php 这个文件,根据配置的不同,地方可能出现在不同的地方,如果你配置的是XAMPP的时候, 可能是这个: D:\xampp\phpMyAdmin\config.inc.php 其他路径就没有进行测试了,大不了全盘检索就新行了,然后看里面的 /* Authentication type and info */ $cfg['S

ERROR 1044 (42000): Access denied for user ‘root‘@‘localhost‘

从供应商那边接手一个MySQL数据库(数据库版本为5.7.21 MySQL Community Server (GPL)),在创建账号时遇到了"ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database xxx"错误,如下所示 mysql> grant all on xxx.* to [email protected]'192.168.%' identified by 'xxx'; ERROR

1045 access denied for user 'root'@'localhost' using password yes

mysql -u root -p 方法一:  # /etc/init.d/mysql stop  # mysqld_safe --user=mysql --skip-grant-tables --skip-networking &  # mysql -u root mysql  mysql> UPDATE user SET Password=PASSWORD(’newpassword’) where USER=’root’;  mysql> FLUSH PRIVILEGES;  mys

Access denied for user 'root'@'localhost' (using password: YES) (可以正确解决)

本文为大家讲解的是mysql错误:Access denied for user 'root'@'localhost' (using password: YES)解决方法,感兴趣的同学参考下. 注意: 加红色的地方是重点 错误描述 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 解决方案 windows环境 编辑mysql配置文件my.ini(不知道在哪请搜索),在[mysqld

ERROR 1142 (42000): SELECT command denied to user ''@'localhost' for table 'user'

ERROR: Access denied for user 'root'@'localhost' (using password: NO)    发现:    mysql -u [email protected] -p 成功    mysql -u root -p 失败    mysql> SELECT user, host FROM mysql.user;    ERROR 1142 (42000): SELECT command denied to user ''@'localhost' f