LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-06-2002, 09:28 AM   #1
adcripps
Member
 
Registered: Mar 2002
Location: South UK
Distribution: Mandrake 8.2
Posts: 103

Rep: Reputation: 15
locked out of mysql database


I'm locked out of mysql database - it seems that all my users can't access it, through lack of privileges, even root. This means that I can't get through and change the privileges.

How can I start with a fresh users database?

I'm only setting the database up at the moment, so there's no data to lose.

I've tried mysqladmin_fix_privileges_tables and I've tried
mysqladmin_install_db

but nothing seems to work.

Also, the actual mysql database itself has no tables. How can I restore that?

Any ideas?

Last edited by adcripps; 09-06-2002 at 09:32 AM.
 
Old 09-06-2002, 12:42 PM   #2
needamiracle
Member
 
Registered: Apr 2002
Location: North Attleboro, MA
Distribution: RH 7.3
Posts: 106

Rep: Reputation: 15
Did you get hacked? Have you checked your logs? If there are no tables in the mysql db then you have no db. Please tell me you have a backup somewhere? Otherwise you have to start fresh.
 
Old 09-06-2002, 01:02 PM   #3
adcripps
Member
 
Registered: Mar 2002
Location: South UK
Distribution: Mandrake 8.2
Posts: 103

Original Poster
Rep: Reputation: 15
Thanks for the tips. I wasn't hacked - this is an internal server at work, and I was starting up mysql and foolishly (somehow, definately not intentionally) changed the permissions using phpmyadmin - however, I've managed to fix it now -the documentation is brilliant, although it tool a while to fix.

I found the files that needed deleting, deleted them and ran mysql_install_db (you should do this as user mysql) -all the necessary databases are set up again, with a user root. Gave root a password and it worked a treat.
 
Old 09-06-2002, 01:47 PM   #4
needamiracle
Member
 
Registered: Apr 2002
Location: North Attleboro, MA
Distribution: RH 7.3
Posts: 106

Rep: Reputation: 15
Glad to hear...

As a side note, I find that you can't really loose data...it just takes a while to put it back the way you had it... :-)
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
URPMI Database Locked Dooley Mandriva 6 02-07-2006 02:17 AM
urpmi database locked? otto k Mandriva 9 05-17-2005 11:37 AM
RPM database locked cepheus Linux - Newbie 1 10-23-2004 01:43 PM
urpmi database locked? KiLLaWaBBiT Linux - Software 2 09-06-2004 01:56 AM
urpmi database locked! /home/kyle Mandriva 3 03-09-2004 06:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration