Hi.
1. If you are working with windows use the 'Command Prompt'.
2. Go to the 'mysql\bin' directory
3. you should see several executable files there, e.g mysql.exe, mysqldump.exe etc.
4. Now, export you database to a txt file; in the command prompt type
- mysqldump -uroot -p dbname > mydb.txt
This will create a text file called mydb.txt
5. Copy the mydb.txt on your pendrive and transfer it to the computer where you want to transfer your database. copy the file in directory 'c:\temp' for follwoup with this explanation
6. Now in the new computer, go to the command prompt, go to dir 'mysql\bin'.
7. Run the mysql program, create new database, then import text file by typing:
- mysql -uroot -p
-
create database myNewDb;
-
use myNewDb;
-
source c:\temp\mydb.txt
-
8. you have succesfully transferred your db