SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have recently had a hardware failure on my mysql server. i've got a new machine ready to take it's place, but i never had a chance to do a mysqldump of my data. i have access to all the hard drives from the old machine - how can i pull the mysql data off the old drives? where does mysql store databases by default in slackware?
i've tried to google search for this but all i get are guides about how to do a mysqldump - and ads for companies that do data recovery. i wasn't able to do a dump - what do i do now?
I have recently had a hardware failure on my mysql server. i've got a new machine ready to take it's place, but i never had a chance to do a mysqldump of my data. i have access to all the hard drives from the old machine - how can i pull the mysql data off the old drives? where does mysql store databases by default in slackware?
i've tried to google search for this but all i get are guides about how to do a mysqldump - and ads for companies that do data recovery. i wasn't able to do a dump - what do i do now?
thanks in advance!
dbc
The directory "/var/lib/mysql" is where the data for the databases are stored for mysql, if I'm not mistaken.
ok... looks like it's kind of working. i moved all the files to the new server, and phpmyadmin lists all the databases and tables. but i get database errors when i try to use the data. for example, when I browse to the wordpress database and click the wp_posts table on the left side, I get this error:
Quote:
Error
SQL query:
SHOW INDEX FROM `wp_posts` ;
MySQL said:
#1017 - Can't find file: './wordpress/wp_posts.frm' (errno: 13)
if i browse to /var/lib/mysql all the files seem to be there:
a little more progress - if I go to /var/lib/mysql and do chown -R mysql wordpress/ that lets phpmyadmin access the database, but wordpress still can't get to it...
I had a similar issue to this once, but I don't use Slackware packages for MySQL so my data was in a different place.
After I had copied all the MySQL data to the new machine, I got errors until I re-chmod'd and chgrp'd the data directory's contents to the correct owner. Right now it seems that only root can read/write those wp_* files, so that might be the problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.