新手轻喷。小弟在看head first 的 php & mysql,第二章用命令行创建数据库:
tony@tony-laptop-ubuntu$ ~ mysqlwelcome to the mysql monitor. commands end with ; or \g.your mysql connection id is 41server version: 5.5.29-0ubuntu0.12.04.1 (ubuntu)copyright (c) 2000, 2012, oracle and/or its affiliates. all rights reserved.oracle is a registered trademark of oracle corporation and/or itsaffiliates. other names may be trademarks of their respectiveowners.type 'help;' or '\h' for help. type '\c' to clear the current input statement.mysql> create database aliendatabase;error 1044 (42000): access denied for user ''@'localhost' to database 'aliendatabase'
求大神解释加解决方案~小弟拜谢!
回复内容: 新手轻喷。小弟在看head first 的 php & mysql,第二章用命令行创建数据库:
tony@tony-laptop-ubuntu$ ~ mysqlwelcome to the mysql monitor. commands end with ; or \g.your mysql connection id is 41server version: 5.5.29-0ubuntu0.12.04.1 (ubuntu)copyright (c) 2000, 2012, oracle and/or its affiliates. all rights reserved.oracle is a registered trademark of oracle corporation and/or itsaffiliates. other names may be trademarks of their respectiveowners.type 'help;' or '\h' for help. type '\c' to clear the current input statement.mysql> create database aliendatabase;error 1044 (42000): access denied for user ''@'localhost' to database 'aliendatabase'
求大神解释加解决方案~小弟拜谢!
没权限,用root登录:
mysql -uroot
如果root有密码:
mysql -uroot -p