navi/cheats/mysql.cheat
2019-09-21 17:32:35 -03:00

10 lines
251 B
Text

% mysql, database, db
# Create database
mysql -u <user> -p -e "create database <database> character set UTF8mb4 collate utf8mb4_bin"
# Export databse
mysqldump -u <user> -p <database> > <path>
# Import database
mysql -u <user> -p <database> <path>