incog Posted June 22, 2016 Posted June 22, 2016 I know there has been a MySQL crash on Stevie recently, and my site (which is powered by WordPress) went down because WP relies on MySQL. It has been down for 4-5 days now, and I finally decided to try to fix it. I found many threads where people were having the same problem. Here are the answers provided by wolstech and yashrs that seemed to have helped there: http://www.helionet.org/index/topic/23748-solved-mysql-error/?do=findComment&comment=116319http://www.helionet.org/index/topic/23770-cannot-log-in-to-mysql-account/?do=findComment&comment=116372http://www.helionet.org/index/topic/23796-not-connecting-to-db/?do=findComment&comment=116431http://www.helionet.org/index/topic/23806-mysql-databases/?do=findComment&comment=116458 Well, I did everything that had been suggested in these posts:Changed my Cpanel password, logged in & out Tried to browse my website - it spitted a database error Checked PHPMyAdmin and found all the databases empty Didn't get discouraged and deleted and recreated the user of my WordPress DB (with the same name, obviously) Opened WordPress' `config.php` and got the DB password from there, assigned it to the newly created user Reassigned this user to his DB and granted all the privileges on him Tried browsing my website again and found that WordPress was working, but only in installation modeHere's the problem: all my data seems to be lost. Is it really lost or did I do anything wrong following these instructions? What should I do to 'repair' my website? Username: incogSite: http://brute.tkServer: Stevie
wolstech Posted June 22, 2016 Posted June 22, 2016 It sounds like you got hit by this: http://www.helionet.org/index/topic/23764-stevie-innodb/ The data is likely lost. I lost 3 DBs myself. This is why we always recommend users make regular backups. The strange part is InnoDB data loss seems to be a common problem anywhere you go...another web host I deal with actually had InnoDB break for a chunk of users recently too...had to use a stale backup from December to fix it.
incog Posted June 23, 2016 Author Posted June 23, 2016 It sounds like you got hit by this: http://www.helionet.org/index/topic/23764-stevie-innodb/ The data is likely lost. I lost 3 DBs myself. This is why we always recommend users make regular backups. The strange part is InnoDB data loss seems to be a common problem anywhere you go...another web host I deal with actually had InnoDB break for a chunk of users recently too...had to use a stale backup from December to fix it.Thanks for a quick reply! I've read the page you linked to and tried to restore the WP DB with Softaculous. I've got two recent backups, and when I try to restore, it says: Tablespace for table '`incog_wp109`.`wpbw_commentmeta`' exists. Please DISCARD the tablespace before IMPORT.Google brought me to some questions on StackOverflow about the same problem, but all the answers were suggesting to delete some .idb files from something like /var/lib/mysql, but I don't have access to these directories (http://stackoverflow.com/questions/15694168/error-tablespace-for-table-xxx-exists-please-discard-the-tablespace-before-imp) Doing ALTER TABLE wpbw_commentmeta DISCARD TABLESPACE; from PHPmyAdmin results in an error saying this table doesn't exist (quite true!). As when going to https://brute.tk, I'm shown the installation screen, should I install a fresh version and then roll a backup? Or should I delete the DB completely and try to restore it? EDIT: I installed a fresh version of WP, and the installation succeeded, all the (new) data in wpbw_commentmeta was there, so I decided to roll a backup, but ended up with the same error. Dropping this table didn't help either.
wolstech Posted June 23, 2016 Posted June 23, 2016 Did you drop the entire database and recreate it? You cannot reuse the damaged database, even if it appears empty. You must drop it in cPanel, make a new one, then open it in PhpMyAdmin and import the .sql file containing your backup. If it fails after doing that, let me know and I'll escalate it to see if Krydos can discard that for you.
incog Posted June 23, 2016 Author Posted June 23, 2016 Did you drop the entire database and recreate it? You cannot reuse the damaged database, even if it appears empty. You must drop it in cPanel, make a new one, then open it in PhpMyAdmin and import the .sql file containing your backup. If it fails after doing that, let me know and I'll escalate it to see if Krydos can discard that for you.Okay, I dropped the DB from CPanel (and lost its backup, BTW), then tried to recreate it, but it says The database 'incog_wp109' already exists, while PHPmyAdmin doesn't show this DB at all. So, recreating didn't work. Trying to restore it from Softaculous didn't work either: it says that user 'incog_wp109' doesn't have access to the DB 'incog_wp109'. This should mean that this DB still exists?! As a result, the DB is (semi-)dropped, the site certainly shows a DB error (a.k.a. 'error establishing DB connection'). Perhaps this can be solved by deletion of the appropriate .idb file I (seem to) have no access to. Please help. EDIT: I found a WP backup with a file called 'softsql.sql' in it and tried to import that file in PHPmyAdmin, but it this failed saying that no DB was selected
wolstech Posted June 23, 2016 Posted June 23, 2016 You have to use a different database name. Do this:Create a new database. Use any name you wish as long as it is not the same as the original database. Go into PHPMyAdmin and select the new database on the left side. Click Import up top, then import the SQL file. If it fails, upload the SQL file and PM me a link to it so I can see it. I'll edit it and send you a fixed one. If it succeeded, go back to cPanel and assign the user incog_wp109 to your new database. Grant it all rights when asked. Test. 1
incog Posted June 26, 2016 Author Posted June 26, 2016 You have to use a different database name. Do this:Create a new database. Use any name you wish as long as it is not the same as the original database. Go into PHPMyAdmin and select the new database on the left side. Click Import up top, then import the SQL file. If it fails, upload the SQL file and PM me a link to it so I can see it. I'll edit it and send you a fixed one. If it succeeded, go back to cPanel and assign the user incog_wp109 to your new database. Grant it all rights when asked. Test. Yeah, that worked very well! At first I didn't understand that I had to change the DB name in config.php to make WP find it, so didn't reply for some time. Thanks a lot, I really appreciate Heliohost's support, you do a great job there!
wolstech Posted June 26, 2016 Posted June 26, 2016 Doh! Forgot that part...yeah, you need to edit the WP Config to tell it the new name. Glad to hear you got it working though Let us know if you need anything else.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now