dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Re: error mysql when I clean all the other null account in mysql database that located in table user - mysql

This is a discussion on Re: error mysql when I clean all the other null account in mysql database that located in table user - mysql ; On May 23, 11:24 am, kwan wrote: > Dear all, > > I tried to clean the default information in the mysql database that > located in user table. When use the >mysql -uroot -proot > it is working, but ...


Home > Database Forum > Other Databases > mysql > Re: error mysql when I clean all the other null account in mysql database that located in table user

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 05-23-2007, 02:32 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: error mysql when I clean all the other null account in mysql database that located in table user

On May 23, 11:24 am, kwan wrote:
> Dear all,
>
> I tried to clean the default information in the mysql database that
> located in user table. When use the >mysql -uroot -proot
> it is working, but when I clean and delete some data in the user table
> by calling the following SQL statement:
> DELETE FROM user WHERE User= ' ';
> DELETE FROM user WHERE User=' ' AND HOST='localhost';
> DELETE FROM user WHERE User='root' AND Password=' ';
>
> after calling the above SQL statement, then I try to
> use >mysql -uroot -proot
>
> It displays the following error:
> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
> password: YES)
>
> Any solution?


Have you tried: flush privileges; after making those changes? Are you
sure that the root account that you were using your password with was
set up with the host as localhost? Perhaps your root account only has
access to the mysql table? Try getting in directly to the mysql
database with just: mysql -uroot mysql, and then try it with mysql -
uroot -proot mysql.

Nino

Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 06:50 AM.