mysql workbench dropped table - mysql

my MySQL workbench setup with a database on it. I was using xampp with it but xampp stopped working so I uninstalled and reinstalled it. could this be the issue as to why the table went missing?

workbench is only a Gui, it will not drop anything without any user input.
MySQL server and xammp would work parallel when you choose a different port for one of them.
Your problem is that both save theier files in diffrent path(default)
MYSQL saves its data in
C:\ProgramData\MySQL\MySQL Server 8.0\Data
While xammp stores their database in
C:/xampp/mysql/data
in Restoring MySQL database from physical files you find a tutprial how to restore your tables from the files from your old installation

Related

How to open database folder with .ibd file extension in it in mysql workbench?

I deleted the mysql server and then I lost all the connection in my mysql workbench.
And I figured out how to get the database of those connection.
Finally, I got in the directory, C:\ProgramData\MySQL\MySQL Server 8.0\Data\{databasename}.
Now inorder to restore the database I could see different ways but I cannot find how to open this database in which folder there are all the tables but with .ibd extension.
I need help how to open this db folder in my mysql workbench.
Here is the screenshot of the files.
UPDATE:
After deleting the mysql server 8.0 I downloaded the mysql server 8.1 and now I could see databases in 2 other directories.

How to restore mysql database in XAMPP

I have been using XAMPP on Ubuntu for a while and I had created a DB via phpMyAdmin with a single DB and multiple rows.
After having to restart my PC, I could not restart XAMPP, so I did install it again (ran the installed.sh without installing first)
Installation was successful and web server is working fine with old files retained.
But, I find that I cannot access the table any more, even though I see it listed via phpMyAdmin and gives an error "Table does not exists in the engine".
However, I can see the table.ipd, table.frm and db.opt inside /opt/lampp/var/mysql/
Is there a way to restore the table from the XAMPP stack?

Restore SQL database for WordPress

Unfortunately my VPS got corrupted and therefore I wasn't able to perform an export of the sql database with phpmyadmin. I do managed to copy all the SQL files .frm, .idb, .opt etc
Is it possible to recover the database and make my wordpress site working again?
Im using centos7 with Plesk Onyx / phpmyadmin
Absolutely! First get a new instance of your VPS running and create your database again, after created copy the .idb(innodb) or .myi/.myd(mysami) files right back where you found them
Each table comes with a .frm, don't forget those, as well as a db.opt for the database
Typical mysql storage (on linux) is located:
/var/lib/mysql/database_name
Once copied over restart mysql and check again

How to restore MYSQL database after installing a different version of WAMP?

I would like to know How to restore MYSQL database after installing a different version of Wampserver. The explanation is as below:
I deleted the wampserver folder accidentally and I lost my MYSQL database. However, I have succeeded to restore the data folder that contains the database and I have installed another version of Wampserver (Actually, the old version of MYSQL that I was using was 5.5.8 , and the MYSQL version that I am using right now is 5.6.17) and I have tried to restore the database by copying its folder and putting it and the old ibdata1 file under the data folder of the new installation. But, unfortenately, that doesn't work.
So, my questions are:
Is it possible to restore MYSQL database after installing a different version of Wampserver (with a different version of MYSQL)?
If yes, how can I do that? What would be the solution?
In the past when this has happened to me, the only option that worked was to reinstall an older version of WAMP (i.e. MySQL) to match what my databases were created in originally.
If you install the same WAMP again, copying the folder should work now.
If you can gain access to your databases at this point, then you can do a proper backup of them using phpmyadmin or mysqldump etc.
After you get a proper backup, remove the older WAMP version and install the latest version again. Now you have to restore the databases using the backup files in order to put them into the newer MySQL version.
If you backed up your database you can restore it using your backup file. If you are using a graphical interface for mysql like PHPMyAdmin there is a import button you can use to import your .sql, .csv, .zip, or what ever extension you used to backup your database.

Re installing Wamp Server without replacing the existing mysql database

I have some problem with WAMP server installed on my computer, every time I am trying to access a server file in the browser the page keeps on loading for hours and does not give me any errors.
So what I though is to go ahead and install and new one but my existing MySQL database has lot of data inside it that I do not want to loose, I tried to backup the database using command line but no help there as well.
Is there any way I can install a new WAMP server while keeping my existing MySQL database?
The wamp server stores all of mysql database table in .frm formate inside WAMP_DIR_LOCATION\bin\mysql\mysql5.5.16\data you need to rename this "data" folder to "data-old"
And when you have reinstall the wamp server just rename the "data-old" folder to "data" In this way you will not lose your database.
In the "WAMP_LOCATION/mysql/data" folder are the tables for MySQL. You can copy the folder and make a backup.
But you should look that you install the same version again. Sometimes MySQL has a problem with different versions.