Koozali.org: home of the SME Server

MySQL-problems after restore

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
MySQL-problems after restore
« on: April 14, 2004, 11:39:44 AM »
Hi, all
Last week my server grew tired of my config changes.
Suddenly there was no mail going in or out (only the system-generated mail).
I suspected the qmail, the clam and the spamassassin so I restored from an earlier tape onto a fresh installation.
Things only got worse - not even root could access files anymore.
So I rebuilt my 6.0.1-01 from CD, and restored to a separate library (Thanks, Darrell, for making this so easy in your command-line backup-restore howto).
I have since copied the appropriate files back into my installation, including my databases (to /var/lib/mysql).
But I cannot access them anymore !
I have done the setprop thing and restarted MySQL, and granted sql-rights to a user without a password.
My php-scripts use the root-account to access databases, but that doesn't help.
The MySQL just returns (example):
Couldn't access database: gbog
Error: Access denied for user: 'www@localhost' to database: gbog

Anyone know why ???
Greetings
wyron
...

Offline ajkeane

  • *****
  • 187
  • +0/-0
    • http://keane.co.nz
MySQL-problems after restore
« Reply #1 on: April 14, 2004, 12:50:47 PM »
I don't know if this will help mbut try resetting the root password if you haven't already done so.

Tony

The commands to do this are
# /etc/rc.d/init.d/mysqld stop
# /etc/e-smith/events/actions/conf-mysql-password
# /etc/rc.d/init.d/mysqld start
...

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
MySQL-problems after restore
« Reply #2 on: April 14, 2004, 01:06:04 PM »
Thanks for the pointer, AJ.
But no - that isn't it !
Greetings
wyron
...

Offline wyron

  • *
  • 275
  • +0/-0
    • http://www.ideast.dk
MySQL-problems after restore
« Reply #3 on: April 14, 2004, 08:28:22 PM »
Problem solved.
I upgraded to 4.0.18 and remembered to grant privileges this time round!
Greetings
wyron
...

gavincowie

Ouroboros Nightmare
« Reply #4 on: May 17, 2004, 10:17:44 PM »
Quote from: "ajkeane"
I don't know if this will help mbut try resetting the root password if you haven't already done so.


Thanks ajkeane! This was bending my brain in a nice catch-22 situation. Solved!

G