Database Errors
-
Hello.
I’m creating a WordPress site on my local drive, via Elementor. (Once it is finished, it will be transferred to a webhost provider.) I’m close to completing it, but now I’m receiving an error that says my database cannot be found.
I tried using the WordPress tool to repair and optimize the database, but it ultimately returned the following error:
wp_options: Table ‘themavo.wp_options’ doesn’t exist in engine
What should I do to fix this problem and regain access to my site?
-
This topic was modified 1 year, 1 month ago by
themavo.
-
This topic was modified 1 year, 1 month ago by
-
Is this issue with the database most likely being caused by XAMPP or could it be something else? I’m so close to having the site be completed (at least this first version of the site) that I don’t know if if I really want to start changing server software at this point. XAMPP seems to have worked well enough until now.
Thanks for your tip, @iamshubhamsp
Before I saw your latest post, I tried replacing the entire XAMPP > MySQL > data folder with a backup that I had. I still received the Error establishing a database connection message. Then, I tried replacing the same data folder with a version from an even older backup. Same error occurs. Again, I had been working on my site for a long time before and the connection to the database was not an issue. If a backup is not restoring the connection and the site, what is causing this issue all of a sudden?
I never really moved/migrated the site anywhere. So far it’s only been on my localhost hard drive connected to my workstation.
In any case, I’ll try the other steps you outlined in your message.
-
This reply was modified 1 year, 1 month ago by
themavo.
@themavo You have one rather large problem that I can see now.
MySQL does not like it when you copy data folders and files. If there’s even a small difference in versions, or something is not “just right”, it will fail. Copying databases is not the same as copying site files.
The best way to copy databases is to import an SQL dump file that you exported from the original database. Anything else is going to be very fragile and has an extremely high chance of not working (as you’re seeing in your case).
Well, @catacaustic, as it stands, I’ve rather soured on MySQL because it’s so unreliable. So often the overall MySQL app doesn’t even start at all in XAMPP. Whenever that happens, I have to replace most of the files in the mysql > data folder with versions in the mysql > backup.
Now there’s suddenly no connection at all to the WP database. What do I need to do now to have this site back on track again? There must be something…
If that happens then it’s XAMPP doing something wrong. MySQL is very good and it normally doesn’t have issues unless you do something wrong. And if MySQL doesn’t start with XAMPP… don’t blame MySQL, blame XAMPP. Which is exactly why I suggested switching to Local before.
As I said before. copying files is bad. Restoring from SQL dumps is good. Unless you can do that, then you really need to seek help in another forum dedicated to MySQL because it’s way outside of the scope of these forums.
To be honest, if you can’t take the advice here, then there’s no point in trying to help.
Hi again, @iamshubhamsp . I’m just following-up.
I enabled the WordPress repair of wp-config.php, following your earlier directions.
After the process of attempting the repair was done, WordPress displayed a log that listed a number of tables as being “okay.” For example:
The wp_users table is okay.
The wp_usermeta table is okay.
The wp_posts table is okay.
etc.But the wp_options table was listed as being “not okay.” WordPress couldn’t repair it, stating that it “doesn’t exist in engine” (as I noted earlier in this thread).
But then I used Windows File Explorer to locate all of the files related to the tables WordPress accessed for this repair process.
The files for each table listed as okay were there…But so were the files for wp_options, which WordPress claims “doesn’t exist.” They all seem to be there in their correct locations. (It appears each table has two files: name.frm and name.ibd.)
Then, I tried to access the tables using phpMyAdmin.
There, under the affected database, all the tables WordPress checked are listed, including wp_options. But, unlike the other tables, the status of wp_options reads “in use.” It’s the only table which has that status.
When I click on wp_options from within phpMyAdmin, I receive an error message that reads “#1932 – Table ‘themavo.wp_options’ doesn’t exist in engine.”
But, according to File Explorer, it actually does exist along with all the other tables. I’m not sure what could be causing it to be regarded as “nonexistent” in phpMyAdmin and WordPress. Maybe that table’s files are somehow corrupt…
@themavo
Yes, your wp-options table is corrupted and not able to repair so that’s why it is not working. At the time of website setup have you faced xampp crash?Thanks for your response, @iamshubhamsp .
No, as far as I know, XAMPP did not crash while I was working on the website. Not when I first started to work on it, nor during the process of designing it.
I did run into several episodes where I the MySQL app did not immediately start from within the XAMPP control panel. That still happens on occasion, but I found a reliable solution for whenever that happens:
So, as far as I can see, I’ve managed to keep MySQL and XAMPP running as far as .
But, concerning the wp-options table: I’ve made copies of the entire site, on several different dates and I still have all those copies. I tried replacing the most recent files containing the wp-options table with versions from those older copies I made. The site was working well when I made those copies. But now the site still treats even the older versions as if they’re corrupted or missing.
Why are even the older copies not working?
-
This reply was modified 1 year, 1 month ago by
The topic ‘Database Errors’ is closed to new replies.