12 lines
420 B
Plaintext
12 lines
420 B
Plaintext
#dump
|
|
mysqldump -P [port] -h [host] -u [username] -p [database] > dump.sql
|
|
|
|
CREATE USER 'everything'@'%' IDENTIFIED BY 'EveryThing2022!';
|
|
GRANT ALL PRIVILEGES ON EveryThingDev.* TO 'everything'@'%';
|
|
FLUSH PRIVILEGES;
|
|
|
|
|
|
mysql -h 127.0.0.1 -P 3306 -u david -p EveryThingDev < evedump.sql
|
|
# ce negre
|
|
sed -i 's/utf8mb4_0900_ai_ci/utf8mb4_unicode_ci/g' evedump.sql
|
|
sed -i 's/utf8mb4_0900_bin/utf8mb4_unicode_ci/g' evedump.sql |