If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > can't login in mysql

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-04, 12:41
Geypens Geypens is offline
Registered User
 
Join Date: Apr 2003
Location: Belgium
Posts: 23
can't login in mysql

Hey,

I'm messing around with mysql-databases in webmin.
I changed the user-permissions :

root was only available from localhost, I changed it to all hosts, but that was a big mistake. This is the error I get :

DBI connect failed : Access denied for user: '@localhost' to database 'mysql'


I can't do or change anything anymore, and my databases aren't visible in webmin (only 1 : test). Even the standard database mysql isn't visible. What can I do ???

I hope someone can help me, because I'm really desperate !!!


Thanks !!!

PS: I tried to change a password in the shell, with the command :

mysqladmin -u root password 'password'

but it says :

mysqladmin: unable to change password; error; 'Access denied for user: '@localhost' to database 'mysql'

Help please !!!!
__________________
You help me, and I'll try to help you
Reply With Quote
  #2 (permalink)  
Old 02-16-04, 13:40
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Re: can't login in mysql

Quote:
Originally posted by Geypens
Hey,

I'm messing around with mysql-databases in webmin.
I changed the user-permissions :

root was only available from localhost, I changed it to all hosts, but that was a big mistake. This is the error I get :

DBI connect failed : Access denied for user: '@localhost' to database 'mysql'


I can't do or change anything anymore, and my databases aren't visible in webmin (only 1 : test). Even the standard database mysql isn't visible. What can I do ???

I hope someone can help me, because I'm really desperate !!!


Thanks !!!

PS: I tried to change a password in the shell, with the command :

mysqladmin -u root password 'password'

but it says :

mysqladmin: unable to change password; error; 'Access denied for user: '@localhost' to database 'mysql'

Help please !!!!
try logon to mysql: mysql -u root -p
Reply With Quote
  #3 (permalink)  
Old 02-16-04, 19:58
Geypens Geypens is offline
Registered User
 
Join Date: Apr 2003
Location: Belgium
Posts: 23
I can login to mysql, but I can't change something, always same error .

I hope it wasn't a fatal mistake
__________________
You help me, and I'll try to help you
Reply With Quote
  #4 (permalink)  
Old 02-16-04, 22:31
aus aus is offline
Registered User
 
Join Date: Oct 2003
Location: Denver, Colorado
Posts: 137
Restart mysqld with the option --skip-grant-tables, then fix the user table in the database mysql. Follow the instructions in the manual: http://www.mysql.com/doc/en/Resetting_permissions.html
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On