Novice Light Spray. My little brother is looking at head First's PHP & MySQL, and the second chapter is creating a database with the command line:
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), Oracle and/o R its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names 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 '
Ask God to explain add solution ~ Little Brother humbly!
Reply content:
Novice Light Spray. My little brother is looking at head First's PHP & MySQL, and the second chapter is creating a database with the command line:
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), Oracle and/o R its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names 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 '
Ask God to explain add solution ~ Little Brother humbly!
No permissions, log in with root:
mysql -uroot
If Root has a password:
mysql -uroot -p