【发布时间】:2013-12-24 23:51:18
【问题描述】:
我在命令行级别的 mysql 上相当新。不幸的是,我已经设置的任务意味着我必须使用命令行。我正在通过 PuTTY 访问学校服务器。登录没有问题他们键入mysql -p,登录正常但是当我去创建数据库时我得到1044错误。我也尝试过root,但也没有运气。
login as: 10081552
Using keyboard-interactive authentication.
Password:
Last login: Sat Dec 7 16:04:24 GMT 2013 from 90.218.202.89 on ssh
Last login: Sat Dec 7 16:04:29 2013 from 90.218.202.89
10081552@sots ~ $ mysql -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8636
Server version: 5.0.90-log Gentoo Linux mysql-5.0.90-r2
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database hello;
ERROR 1044 (42000): Access denied for user '10081552'@'localhost' to database 'hello'
mysql>
我检查了权限,它们看起来不错(我认为)
mysql> show grants;
| Grants for 10081552@localhost
GRANT USAGE ON *.* TO '10081552'@'localhost' IDENTIFIED BY PASSWORD '*removed the hash' |
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, LOCK TABLES ON `10081552`.* TO '10081552'@'localhost' |
2 rows in set (0.00 sec)
mysql>
所以我确定我做错了什么,但谁能告诉我为什么我无法创造任何东西。正如我早些时候所说,我是命令行新手,但一般来说不是 mysql 或数据库。
【问题讨论】:
标签: mysql database database-connection putty