I am using wamp in windows 7. Due to some reason my os is corrupted but still i have ubuntu in my pc and wamp was in another drive.
Now I can get source of my project but how to get database from mysql. I think I can use .frm and other files that can be restore in ubuntu.
Anyone could you please explain how can I restore my wamp/mysql data to ubuntu.
Yeah you should be able to copy your .frm, .myd, and myi from your windows box to your linux box. Assuming you used something like XAMPP, the files are stored in \mysql\data
These would need to be copied to /var/lib/mysql
You might need to recreate your user(s) though.
Related
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 was working with XAMPP 1.8.3-3 on OS X Mavericks. After upgrading to Yosemite Mysql server stopped working. And an upgrade to XAMPP 1.8.3-5 fixed the problem and mysql server starts working.
Now the entire database list is showing on phpmyadmin, but no access to the tables. Its showing “#1146 - Table ‘DB_NAME.TABLE_NAME’ doesn’t exist”.
Unfortunately I don't have any DB backup!
I have the entire XAMPP folder backup. So how I can able to retrieve the mysql tables?
just type /Applications/XAMPP/xamppfiles/bin/mysql.server start
in terminal then start xampp
you can restore if you have all the mysql folders from XAMPP folder. (check /XAMPP/xamppfiles/var/mysql in backup)
if you have var/mysql folder, open and look for database names you had earlier.
there is a separate folder for each database you had earlier. open the folder and it will contain lots of files with table names.
if your old table engine is InnoDB you will see 2 files. with .frm and .ibd extensions.
or if you had MyISM it will contain three file per table which has .frm, .MYD and .MYI extensions.
after you verify you have all the required files in backup, you can start restoring them.
stop mysql
copy required database folder completely and paste it to currently installed folder. (/Applications/XAMPP/xamppfiles/var/mysql/)
start mysql
to restore web files, open htdocs folder in backup and copy required site folder to currentely xampp installed htdocs folder.
This solution worked for me. Good Luck !
Do a clean install. See my answer for my own question. xampp mysql server not starting. The bad part is that I'm not sure if it will save your database the way I explained. What you might try is going to xampp > xamppfiles > var > mysql > 'your database name' and making a copy of the database folder on your desktop and moving it back once you reinstall it. I tried and I think it might have worked had I changed the file permissions. You can also try experimenting to see if it preserves the database if you do this. I would do some serious testing if you really want to save your database before doing this.
I have done something stupid: I have started uninstalling XAMPP without exporting the DB. Realising what I had done during uninstallation, I told the installer not to delete the databases. Now I have a mysql folder with the data, but no MySQL program to handle it.
What do I do with it now? Can I simply copy it to another installation? I guess not, so what shall I do?
I tried searching the web for this, but did not find anything useful. There must be a reason for the uninstaller asking this, so how do I do it?
using xamp I once copied the all files from
mysql\mysql5.5.16\data\
to same directory my other computer. and was surprised to see it work.
but there must be some condition about same version or datadir settings.
Check your backup folder for the existence of .frm .MYI & .MYD files if the backup contains these files just install the same version of mysql and copy those files to your data folder it worked for me. May be you too.
I have a very odd situation going on here. I had a linux box running ubuntu 8.10 and MySQL server with a Wordpress installation on it hosting an internal blog for our company. The machine that this was running on has crapped out, but I was able to put the drive into an enclosure and gain access to the files and recover the MySQL data folder.
We are mostly a Windows company and I have very limited linux experience. Before this machine crashed we were experimenting with moving this blog to a Windows Virtual Machine running PHP for IIS; and we have an older copy of the Wordpress database up and running on MySQL 5.1.
I am currently trying to retrieve the latest data from the linux MySQL data folder and import it into the current database but I am having problems.
Problems so far:
I do not know what version of MySQL was installed on the linux box
I see ib_logfile0, ib_logfile1, and ibdata1 on the linux MySQL data folder, but am not sure if it was truly running InnoDB or not as I also have .frm, .myd, and .myi files in the wordpress folder
If I can figure out the version of the linux box MySQL I might be able to create a virtual machine to run linux and MySQL so I can copy the data folder and then do an export dump; unless someone else knows of an easier way to get the data into my current database.
Any help or guidance on this issue would be greatly appreciated.
Thanks, Nathan
Look for "mysql_upgrade_info" file.
I had a catastrophic drive failure on my development machine. Fortunately I have a backup of everything.
I just installed WAMP for the first time, and it seems to be working in windows 7 x64 (after the fresh install on a new drive). Now I need to get access to the databases I had stored on the backup drive..I don't have .sql dump files.
Does anyone know how I can get a database export from the MySQL folder I have on my backup drive?
Thanks!
A simple copy of files and folders located in MySQL data directory should do the trick (as long as MySQL versions are the same).
Not sure wheteher this will work . Just replace the your mysql folder in wamp installation directory with yours. Remember to keep back up before replacing