mysql中不能创建数据库,为什么呢?
第一种情况是:root:/#mysql-u-pWelcometotheMySQLmonitor.Commandsendwith;or\g.YourMySQLconnect...
第一种情况是:
root:/#mysql -u -p
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15 to server version: 5.0.91-enterprise-gpl
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (1.05 sec)
mysql>
mysql>
mysql>
mysql> create database company
-> ;
ERROR 1044: Access denied for user ''@'localhost' to database 'company'
mysql>
第二种情况是:
root:/#mysql -u root -p
Enter password: (我输入了密码)
ERROR 1045: Access denied for user 'root'@'localhost' (using password: YES)
root:/# 展开
root:/#mysql -u -p
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15 to server version: 5.0.91-enterprise-gpl
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (1.05 sec)
mysql>
mysql>
mysql>
mysql> create database company
-> ;
ERROR 1044: Access denied for user ''@'localhost' to database 'company'
mysql>
第二种情况是:
root:/#mysql -u root -p
Enter password: (我输入了密码)
ERROR 1045: Access denied for user 'root'@'localhost' (using password: YES)
root:/# 展开
6个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询