Can someone help me out of this error?
I had old version of wamp, because of virus I have formatted my computer, although I have backed-up the "wamp\bin\MySQL\mysql5.5.24\data". Now, I have installed the new version of "WAMP". It comes with the new "mysal5.6.12\data", I have tried to copy "data" in that folder but it not works.
My entire database which I have backed-up, is not working so, please somebody help me how to do that.
Uninstall your current WAMP server.
Install your previous version of WAMP server.
Import your database from your data file.
Export your whole database as SQL.
Install new version of WAMP server.
Import your new SQL to new WAMP server.
I got this fixed up after some troubles.
You can reinstall all your data by copying over the contents from the old wamp server to the new one
Just check your new mysql version and into wamp/bin/your version/data backup that folder into /backups
Then copy over wamp/bin/your old version/data to the folder above wamp/bin/your version/data
This should load wamp server but with an orange icon
Go to the backups folder and copy the mysql, perfomance schema and test folders into the new
That should work out
If you have troubles let me know
Related
I just install a fresh copy of WAMP, and I want to import couple of databases from the old one to the new one, so I entered to the old mysql data directory C:\wamp-old\bin\mysql\mysql5.7.14\data, and copy the relevant databases there to the new data directory. But when I try to access the tables in phpmyadmin, I get a message saying that the tables aren't exists, but they do:
What am I missing?
You forgot to copy the ibdata file.
I did it successfully just now:
make a copy of wamp folder (wamp-old)
uninstall the wamp
install the new wamp (overwrite all the files if u were asked)
start the wamp
ck the localhost and phpmyadmin
copy your databases from the old-wamp only from C:\wamp-old\bin\mysql\mysql5.7.14\data and paste to the same location in new wamp
then copy and paste ibdata file from the above path and replace in new one.
You are done!
you can not restore databases like this way,
Please follow this steps to restore the databases from old to one,
Backup all the databases using phpmyadmin (Export Feature)
Install the fresh XAMPP
Restore the all the databases using phpmyadmin (Import Feature)
In my case the mySQL version of my old Wamp installation (5.7.26) was very different from the one in my new Wamp installation (8.0.21), so nothing from the solutions here worked for me.
I downloaded the old version of mysql from https://wampserver.aviatechno.net/#mysql_versions , installed it and replaced the hole ‘data’ folder with my old one.
Now from Wamp\MySQL\Version menu I can choose the old version and all my old databases are working fine.
You can leave that working version of mySQL or export the databases and import them to the new mySQL version.
Stop the Service (because it will complain for a file opened by another app) then Just copy and paste the ENTIRE (...\data) file from old installation folder backup to the new installation by overwirting the existing new installation file.
Finally, start the service.
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.
I am using wamp server. I have made some project and there are some also databases.
I install new window and then i install wamp server in same drive where the wamp sever is.
After installing wamp my project file in "www" are present as pervious but in phpMyAdmin there is only database name is present when I open it there is no table. where the tables gone ???
I check the "wamp>mysql>data". Here the files are present of that tables but it does not show in the phpmyadmin.
I need these tables how can I recover it.
I suggest to you ,use the feature in windows called "restore previous versions" .
Right click the Wamp folder click Restore previous versions and select the most recent date you know it was working,it maybe work for you.
I assume you mean that you did ...
Install new windows.
Install WampServer on new windows
Copy my old\wamp\www folder to the new install
Copy the subfolders in \wamp\bin\mysql\mysql{version}\data to the new install
If this is correct, then dont forget to copy the contents of \wamp\bin\mysql\mysql{version}\data as well. If you are using INNODB database the actual data lives in the ibdata1 file in that folder.
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.
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.