So I am having a ton of issues on my server with it loosing Innodb tablespace files.
3 days ago I had a server crash where all of the innodb tables in one database were lost due to missing tablespace files. After a huge headache and 2 days of fighting I ended up restoring all of the databases.
I was told by tech support my problem was that some of the tables in my database were myisam and some were innodb. They all should be innodb. So after I restored the databases. I then converted all the tables over to innodb and changed collation to utf8_general_ci. They said that was a problem too. Since the core WP files were that, I made them all that.
This all worked fine for a day. Now, I have tablespace errors again. This time WP let me run the "check for errors" option when it couldn't find a table. This is the error it found.
Warning: htmlspecialchars(): charset `ANSI_X3.4-1968' not supported, assuming utf-8 in /home/ddm/public_html/wp-includes/formatting.php on line 3058
wp_options: InnoDB: Tablespace is missing for table 'ddm_wp_ddmsrealm/wp_options'
wp_commentmeta: InnoDB: Tablespace is missing for table 'ddm_wp_ddmsrealm/wp_commentmeta'
This table is listed on the left of phpMyAdmin. If I click on it, it says it doesn't exist. I tried uploading a backup of the table and I get this error: #1813 - Tablespace for table 'ddm_wp_ddmsrealm
.wp_commentmeta
' exists. Please DISCARD the tablespace before IMPORT.
How can I fix this? Should my whole database be one type/collation? I am not sure if I was given good advice or not since I am fairly ignorant to the inner workings of these databases.
Thank you so much for any suggestions you can offer.