
Originally Posted by
Archangel-Amael
i did it as yours,it is my first time login mysql,i didnot set any password for root,when i
Code:
root@bt:~# mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
so i try
Code:
root@bt:~# mysql -u root@localhost
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 31
Server version: 5.0.67-0ubuntu6 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
but i try setpasswd for root
Code:
update user set password=password('mypasswd') where user='root';
ERROR 1046 (3D000): No database selected
and
Code:
show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
+--------------------+
1 row in set (0.00 sec)
and when i cannot create db
Code:
create database radius;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'radius'
i have no idea about this ,how to deal with it