为什么用帐号mysql登陆时不能创建数据库?
情况如下:
[root@localhost ~]# mysql -u mysql
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 24 to server version: 5.0.22
Type ‘help; ‘ or ‘h ‘ for help. Type ‘c ‘ to clear the buffer.
mysql> create database lib;
ERROR 1044 (42000): Access denied for user ‘ ‘@ ‘localhost ‘ to database ‘lib ‘
mysql>
那是什么问题啊??
权限不够,找Root用户改下。
错误:1044 SQLSTATE: 42000 (ER_DBACCESS_DENIED_ERROR)
消息:拒绝用户 ‘%s ‘@ ‘%s ‘访问数据库 ‘%s ‘。
你可以用mysql-front来使用MYSQL啊 这样建立就容易些
权限问题,用grant对此用户授权