Need help in retrieving MySQL data from a WAMP installation - mysql

Here's my situation: I decided to reinstall WAMP so I had to back up my databases, 50+ of them. Then I went on and did it. Then I started importing the databases back to phpMyAdmin, but got only 17 databases. Turns out phpMyAdmin never backed up any more. Now I have WAMP version 2.2 installed, with MySQL version 5.5.24, which is the only one in the WAMP menu. BUT, I do still have the old MySQL version 5.1.36 in my wamp/bin/mysql folder - with all the data files and so forth.
How can I either
get the data from 5.1.36 (I doubt just copy-pasting would work)
-- or --
get MySQL 5.1.36 back in my WAMP menu?

I downloaded MySQL 5.1.36 from WAMPServer homepage as an addon and installed it (backed up the original). This way I got 5.1.36 back in the WAMP menu and now I have my data back, yay!

Related

Installed Mysql, Wordpress, and WAMP server. Create database failed to exist even though phpMyAdmin showed it created

I installed MySql community server on Windows 10 Home. Then, I installed WAMP server 64 to setup an Apache php server. Finally, I installed Wordpress where my problem arose. All products are current releases just downloaded.
During installation of Wordpress, phpMyAdmin says the database was created and it shows on the left panel. The name is wordpress_db. MySQL Query Workbench doesn't find it with a SQL show databases command. Wordpress gave an error "not found". I finally manually created the db in MySQL Workbench, rebooted, and after restarting Wordpress on the Apache server created I was able to finish the installation. There were no errors showing with the db create from phpMyAdmin and it allowed me to set privileges for users without a problem. I can't explain what happened and don't particularly like mysteries that just go away. They always com back to haunt you!
Can anyone shed any light on what happened during the installation and db_create?
Thanks in advance for anyone who looks at this.
Update
I uninstalled and reinstalled and the problems went away. Now I am running a MySQL instance that isn't distributed directly from the vendor and I lost some of the things that come with MySQLcommunity server.
One thing to note - the installation docs don't tell you to change the port on MariaDB from 3306 to something else using phpMyAdmin when you are using MySql. Once i changed the port, the server instances instantly popped up green. They were initially orange.
thanks

mysql workbench dropped table

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

After WAMP update & migrate, mysql tables have no structure / primary keys

We've moved WAMP to another drive on our server - the old version was WAMP 2.4, and the new one is WAMP 2.5. We installed 2.5 fresh on the new drive, and copied the www and mysql data folders from the old install.
It's 'working' - sites appear to run fine - but I've discovered that the database structure appears to be gone. All database tables have no primary keys, and no visible structure in phpMyAdmin.
This is the case for databases brought into the new WAMP install in the mysql data folder as well as new databases: I can export a database with structure from a remote server, but after importing to the local WAMP server the structure is stripped.
Two questions:
(How) can the database structure be restored?
How can I create or import new databases with structure?
Curiously this sorted itself out after attempting to troubleshoot the issue then undoing changes. What we tried:
Restarted all WAMP services, exited and reopened WAMP - unsuccessful.
Copied entire old mysql folder to new WAMP install, attempted to run mysql service with old mysql version - unsuccessful.
Reverted to newer version of mysql that came with WAMP 2.5 (back to initial state before troubleshooting), restarted services - unsuccessful.
Waited 10 minutes - table structure returned, working correctly.
This leads me to believe there was an interaction with another process or condition on the server, rather than a misconfiguration of WAMP.

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.

Some database content disappeared after WAMP reinstallation

I screwed up the config files for Apache
I reinstalled(without any uninstall) the WAMP in same folder but instead of 2.4 I did 2.5, so WAMP failed gloriously afterward.
I can not access WAMP anymore, so I can not backup my DBs from PHPMyAdmin (any hint about how to do backup in this senario will be helpful)
I copy the whole /wamp folder content (after screwed up the install).
I installed the 2.4 version Now WAMP running All DBs are still listed there But when I accesss two of the WP sites, they ask me to create a new site title, but not allow me to set username (says"User(s) already exists.").
Now I went back PHPmyAdmin and found the db for that WP site is EMPTY
I wonder how can I retrieve the good database information stored in that original /wamp folder backup, somehow, transfer into the new one, so that the db table that is EMPTY will populate with the original data again?
Thank You
Probably the safest way to recover is to:
Stop WAMPServer.
Copy the old MySQL folders to the new install of WAMPServer
So thats
copy \wamp_backup\bin\mysql\mysql(old version) to \wamp\bin\mysql\
Start WAMPServer again.
Now in the menu
Wampserver -> MySQL -> Version
you should see you old mysql version and the new one that came with the new install as well.
Switch to the old version by clicking on the old version number on that menu.
Wamp shoud now switch from the new MySQL to the old. Wait for WAMPServer to go green again.
Check the Mysql error log, to see if anything unpleasant has happened, if not,
You can then use phpmyadmin, or whatever tool you are used to to backup your missing databases.
Then switch back to the new version of MySQL and restore the databases to this version of mysql.
I hope this goes smoothly, it should.