Upload the local database to Alibaba Cloud Mysql

Export SQL file from local

I use a mysql database and workbench is Navicat, so I export the SQL file of the corresponding database

Right click the database name and dump the SQL file, there are two options:

1. Structure and data 

2. Structure

Upload .sql file from local to server

XFtp clients such as Winscp can be directly pulled over, or the rz of Ubantu (the line will pop up a file selection window, select the file from the local upload to the server (receive)

To facilitate storage, create a / data yourself

Create a database in the server and run the sql file

Enter the mysql command line

create database `your database name` default character set utf8 COLLATE utf8_general_ci; 



use“ your database name ”

source / data / your database name.sql


Query OK, 1 row affected (0.00 sec)

 

Guess you like

Origin www.cnblogs.com/jackson669/p/12727891.html