11 lines
243 B
Plaintext
11 lines
243 B
Plaintext
|
% mysql
|
||
|
|
||
|
# Create database
|
||
|
mysql -u <user> -p -e "create database <database> character set UTF8mb4 collate utf8mb4_bin"
|
||
|
|
||
|
# Export databse
|
||
|
mysqldump -u <user> -p -x -A <database> > <file>
|
||
|
|
||
|
# Import database
|
||
|
mysql -u <user> -p <database> <path>
|