About Mysql connect problem
I have install MySql DataBase,
at the beginning , it can be used normally,
but when I have do something special things it works in abnormally:
C:\>Mysql\bin>MysqlAdmin -u gz-spike password spike
And now it can do
C:\>Mysql\bin>Mysql (success)
but it is only can do any operation on the database test,except all other databases;
e.g.:
>use mysql;
failure!
it seems like:Access denied user "@localhost" to database mysql
>use test;
database changed!
if you want create a database ,it also failed.
and I want use root user to login
>mysql -u root [mysql] or [test]
it also was denied.
I have copy the the database of [mysql]'s [user] table to the database [test] , and use command to see it
>use test;
database changed!
>select * from user;
and , it can see two 'root' user name in the table, but Why I can not use the root to login in?
So, how to deal with it? please give me some help!
thanks a lot!!!!!!!!!!1