Copying MySQL Database to another machine

前端 未结 5 1776
予麋鹿
予麋鹿 2020-12-19 19:10

I have a MySQL Database on mt Windows computer. I need to take one database and copy it to another machine. The other machine also runs windows and has MySQL Database. The

5条回答
  •  无人及你
    2020-12-19 19:42

    The best way it dump your DB as SQL file. And then import on another machine.

    mysqldump -uuser -i uutfile.sql -p db_name 
    mysql -uuser -p < uutfile.sql
    

提交回复
热议问题