OK, I have had a catastrophic crash of mysql on my VPS and I have been trying for 2 days to work out a solution withut losing my data (this is only a mysql issue - website data is all fine.
Basically, I tried to login using phpmyadmin to my databases and I got an error (can't remember exactly) so I SSH'd into the server to check things. I tried to restart the mysql server and I got this error
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
I simply cannot locate an exact error of why this is happening. The journal simply states:
mysql.service: Control process exited, code=exited, status=1/FAILURE systemd[1]: mysql.service: Failed with result 'exit-code'. systemd[1]: Failed to start MySQL Community Server.
So I gave up trying to get mysql running and started focusing on trying to recover the database data. I found all the 'data' in /var/lib/mysql which contains all the database folders as well as the ibdata file. THERE ARE NO .FRM FILES. (I believe that mysql 8 does not create frm files)
So my question mainly relates to how I can extract the raw data from these database files (.ibd files) with no .frm files? Everywhere I have read involves recreating the tables with the CREATE TABLE command but I don't know the structure of the table in the first instance to create the table? Can I extract the structure of the tables from any of the data I have?
Any help would be appreciated. Thanks.