Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Howdy all,
I recently moved into a new place and when I hooked up my webserver, I wasn't able to bring up my page, even from localhost. With some digging, it seems that I can't access the database that housed my posts (wordpress installation). I looked for the datadir in MySQL and that directory shows the wordpress directory that should be holding the database and all the files are still there. Can anyone point me to 1) why the database no longer shows up 2) how to restore the database from the files? My google'ing hasn't come up with much helpful and I would great appreciate it.
When you say you moved to a new place, do you mean that you copied your installation over to a new place?
If you mean that you have started MySQL, and that your DB's are no longer listed, then you should check your /etc/my.cnf file to make sure it is pointing to the right directory. If that does not work, make a backup of your MySQL data first, then read this article on how to rebuild your DB's from the ib_ files: http://egil.biz/how-to-recover-mysql-data-from-innodb/
Last edited by szboardstretcher; 07-08-2011 at 02:41 PM.
I'm sorry, I should have been more specific. I moved from one apartment to another, but brought the computer and didn't change anything other than just unplugging it and plugging it at the new apartment.
And yes, I have started MySQL and show databases lists one test database that I have, the information_schema and that's it. The wordpress db doesn't show up there. I checked my.cnf and it seemed to be correct. I assume this is verified by the fact that my test database still shows up. When I look in the data directory, I see folders for the test and the wordpress and can't notice any differences that would make mysql recognize one and not the other. I will try those rebuilding instructions and see if that works. Thank you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.