I have done it too.
Originally Posted by ckyned
when "mysql -u root"it said:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
then I use "mysql -u root@localhost" ,It work!
but when I create database or table through shell it said:"ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'q'"
I have logon through root.why?
I am a novice,please help.THX.
So you dug up a two year old dead post to talk about a problem with a script for a thee year old outdated no longer supported OS?
Originally Posted by underclasslv