LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   MySQL import database (https://www.linuxquestions.org/questions/linux-software-2/mysql-import-database-436480/)

akines 04-18-2006 03:06 PM

MySQL import database
 
Sorry for the silly question: how can I import a mysql database on another pc (not in the same lan)? Is it enough to copy all the folders?
Sorry again... :rolleyes:

Byez!

zener 04-18-2006 03:13 PM

First you export the database from mySQL:

(terminal, not in mySQL)
mysqldump –u user_name –h localhost –p db_name > file_name.sql

Then you send it to the PC you want to and then you import it in that PC's mySQL database with the same command but using "<" instead

zener 04-18-2006 03:13 PM

First you export the database from mySQL:

(terminal, not in mySQL)
mysqldump –u user_name –h localhost –p db_name > file_name.sql

Then you send it to the PC you want to and then you import it in that PC's mySQL database with the same command but using "<" instead

akines 04-19-2006 01:14 AM

Thanks, thanks very much.
Have a good day!!

Byez!


All times are GMT -5. The time now is 07:59 PM.