Bawiłem się MySQL i niechcący wpisałem polecenie:
Kod: Zaznacz cały
lukasz@lukasz-desktop:~/ANGARUS$ mysql -u angarus -p Firma150 <baza.sql
Enter password:
ERROR 1045 (28000): Access denied for user 'angarus'@'localhost' (using password: YES)
Kod: Zaznacz cały
lukasz@lukasz-desktop:~/ANGARUS$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 41
Server version: 5.0.51a-3ubuntu5.1 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, DROP ON angarus.* TO www IDENTIFIED BY 'Firma150';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> quit;
Bye
lukasz@lukasz-desktop:~/ANGARUS$ mysql -h localhost -u www -p -D angarus
Enter password: Firma150
ERROR 1045 (28000): Access denied for user 'www'@'localhost' (using password: YES)