

Include constraints (primary key, foreign key, and indexes), views, functions, procedures, triggers, and any other database objects that you want to migrate. When you're moving database objects other than tables, explicitly create those objects.For example, use the -include-tables or -exclude-tables switch with mysqlpump, and the -tables switch with mysqldump. By doing so, you can omit any unneeded tables from the migration to save time and resources. When you need to selectively choose a few tables to import from an existing MySQL database into your Azure MySQL database, it's best to use the import and export technique.For other tools, go to the "Migration Methods" section (page 22) of the MySQL to Azure Database migration guide. In the following scenarios, use MySQL tools to import and export databases into your MySQL database. In the Azure portal, look for the connection information on the Overview pane of your Azure Database for MySQL.Īdd the connection information to MySQL Workbench.ĭetermine when to use import and export techniquesįor scenarios where you want to dump and restore the entire database, use the dump and restore approach instead. The database can have the same name as the database that contains the dumped data, or you can create a database with a different name.

#MYSQL INSERT SQL FILE INSTALL#
Download and install MySQL Workbench or another third-party MySQL tool for importing and exporting.Ĭreate a database on the Azure Database for MySQL serverĬreate an empty database on the Azure Database for MySQL server by using MySQL Workbench, Toad, or Navicat.

