229k views
14 votes
How to transfer mysql database from one server to another

User Kelly
by
3.9k points

1 Answer

6 votes

Answer:

First, create a new database using CREATE DATABASE statement. Second, export all the database objects and data of the database from which you want to copy using the mysqldump tool. Third, import the SQL dump file into the new database.

User Nfvindaloo
by
3.3k points