Access denied for user 'bruce'@'localhost' to database 'DBbruce'

本地创建用户 ‘bruce‘ 后,创建数据库 ‘DBbruce‘ 时。-----------》Mysql提示:Access denied for user ‘bruce‘@‘localhost‘ to database ‘DBbruce‘

解决方式:

1、用root用户登录数据库后,查询表user:

----》SELECT * FROM mysql.user;

2、表中有很多以 ‘_priv‘ 结尾的字段,将用户‘bruce‘对应的这些字段全部改为‘Y‘。

3、右击‘我的电脑‘->‘管理‘   找到‘服务‘,关闭Mysql服务。

4、重启Mysql服务,用‘bruce‘登陆数据库,再创建数据库。创建成功。

注:Access denied for user ‘bruce‘@‘localhost‘ to database ‘DBbruce‘   这句话中的用户名不仅仅是‘bruce‘ 全名应该是‘bruce‘@‘localhost‘ ,即:用户名和服务器名 。

Access denied for user 'bruce'@'localhost' to database 'DBbruce'

时间: 2024-10-29 19:11:25

Access denied for user 'bruce'@'localhost' to database 'DBbruce'的相关文章

ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'information_schema'

在我想把备份的数据库导入到本地数据的时候,发生这个错误,我使用的工具是dbForge Studio for MySQL ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'information_schema' 最终发现 通过下拉找到我想导入的数据库,OK了 ERROR 1044 (42000): Access denied for user 'root'@'localhost' to databa

ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql'

mysql> use mysqlERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql'mysql> exitBye[[email protected] ~]# service mysqld stop Stopping mysqld:                                           [  OK  ][[email protected] ~]# mysql

ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql'(转)

解决ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql' 原创 2014年05月11日 11:42:25 # /etc/init.d/mysql stop # mysqld_safe --user=mysql --skip-grant-tables --skip-networking & # mysql -u root mysql mysql> UPDATE user SET Passwor

mysql [1044/1045] Access denied for user 'root'@'localhost' to database 'xxxx' 错误

数据库迁移的时候报了这么个错 但是就很疑惑 我权限都给了啊 用户名密码也对啊 网上找了一堆方案没一个管用 后面再数据库使用root 重新赋权远程账户测试时多留意了一眼 发现了端倪 我在赋权的时候赋给了  'root'@'%' ,而这里报错的是  'root'@'localhost' 然后在重新使用 root 权限赋权 'root'@'localhost' 就一切OK了 GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost' IDENTIFIED BY

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

【zabbix】connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO)

前面安装的我就不说了,度娘上的很多: 关键是这个问题,网上的比较多,但是没有发现有用的: 问题:zabbix server is runing No 日志:/tmp/zabbix_server.log connection to database 'zabbix' failed: [1045] Access denied for user 'root'@'localhost' (using password: NO) 解决过程: 1)找到安装目录: [[email protected] init

[Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)

在配置了zabbix服务端后,发现:"zabbix server is running"的Value值是"no", 用:netstat -atnlp|grep 10051 发现没有出现zabbix_server的10051端口.在网上找了很多办法,发现都不管用. 通过查看日志看到如下错误提示: tail /tmp/zabbix_server.log 解决方法: 用root帐号登录mysql 然后执行: mysql> grant all on zabbix.*

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

[[email protected] native]# mysql -uhive -pEnter password: ERROR 1045 (28000): Access denied for user 'hive'@'localhost' (using password: YES)[[email protected] native]# mysql -uroot -pEnter password: Welcome to the MySQL monitor.  Commands end with

解决mysql“Access denied for user 'root'@'localhost'”

解决mysql“Access denied for user 'root'@'localhost'” 分类: linux 2011-01-14 00:23 147547人阅读 评论(3) 收藏 举报 mysqluseraccessmanager数据库system # mysql -uroot -pEnter password:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) 使用网