ERROR 1044: Access denied for user: 'songyan' to database 'yikexiao' 的错误。

问题描述:新买的服务器,刚安装了mysql,创建了一个用户,也忘记了给他分配了什么权限,今天在建库的时候出现了这个问题。

出错原因:度娘告诉我是因为songyan用户没有建库的权限报的错。

解决:

(1)登陆mysql

mysql -u root -p 

(2)分配权限

GRANT ALL PRIVILEGES ON *.* TO ‘username‘@‘%‘ IDENTIFIED BY ‘password‘ WITH GRANT OPTION; 

ERROR 1044: Access denied for user: 'songyan' to database 'yikexiao' 的错误。

原文地址:https://www.cnblogs.com/excellencesy/p/10417098.html

时间: 2024-11-06 22:31:48

ERROR 1044: Access denied for user: 'songyan' to database 'yikexiao' 的错误。的相关文章

一看便知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如果该命令不

mysqldump: Got error: 1044: Access denied for user 'backupuser'@'%' to database 'upmngr' when using LOCK TABLES

在进行Mysql备份的时候: sudo /usr/bin/mysqldump -ubackupuser -pdbpassword --database upmngr >/tmp/`date '+%Y%m%d%H%M%S'`.log 出现下面的错误提示: Warning: Using unique option prefix database instead of databases is deprecated and will be removed in a future release. Pl

[解决] Error Code: 1044. Access denied for user 'root'@'%' to database

今天在测试集群用的mysql上,遇到个权限的问题: SQLException : SQL state: 42000 com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user 'root'@'%' to database 'ranger' ErrorCode: 1044 我是以root用户登录mysql的,怎么还会遇到这问题呢,有点猫腻,我查看了下mysql下user表的各用户的权限信息 my

Error Code: 1044. Access denied for user 'root'@'%' to database

mysql> SELECT host,user,password,Grant_priv,Super_priv FROM mysql.user; +--------------+---------+-------------------------------------------+------------+------------+ | host | user | password | Grant_priv | Super_priv | +--------------+---------+--

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

在centos下安装好的mysql,用root帐号连上mysql,查看数据库结果只有information_schema库,我原来的库和mysql库都不见了,然后执行use mysql提示错误,如下: mysql> use mysql; ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql' 提示:ERROR 1044 (42000): Access denied for user ''@'loc

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

ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql' 刚在服务器上装上mysql,发现以root加密码的方式总是登录不了,而直接输入mysql则直接就可以登录了.或者以mysql –u root方式可以登录,但是实习上登录上去也是一个空用户(''@'localhost'),不是root用户,看不了其他数据库. 干货,删除空用户方法 1.关闭mysql service mysqld stop 或者

mysql忘记root密码或报错:ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘xx‘

有的时候忘记了root密码或其他用户的密码,登录的时候报错:ERROR 1044 (42000): Access denied for user ”@’localhost’ to database 'xx'.下面是具体的解决方法: 1.关闭mysql #service mysqld stop 2.屏蔽权限 # mysqld_safe --skip-grant-table 3.新开起一个终端输入 # mysql -u root mysql # mysql> UPDATE user SET Pass

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

1.问题 在刚刚安装MySQL之后,进入到mysql环境下,创建数据库,出现下面的提示信息: ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'db' 2.原因 未用账号登录,而是直接用mysql进入,只拥有查看的权限: 3.解决方案 3.1 使用exit;退出mysql环境: mysql> exit; 3.2 重新使用账号登录 mysql -u root -p ERROR 1044 (42000): A

遇到错误ERROR 1044 (42000): Access denied for user ''@'localhost'to database 'mysql',的解决办法

新装的mysql,访问mysql数据库是遇到问题:ERROR 1044 (42000): Access denied for user ''@'localhost'to database 'mysql', [[email protected] mysql-5.1.61]# mysql -u root -p Enter password: Welcome to the MySQL monitor.  Commands end with ; or \g. Your MySQL connection