CREATE DATABASE mydatabase CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'myuser'@'%' IDENTIFIED WITH 'mysql_native_password' BY 'mypassword';
GRANT ALL PRIVILEGES ON `mydatabase`.* TO 'myuser'@'%'; FLUSH PRIVILEGES;
Created By 三三好记性不如烂 Wiki - 人工大脑CC BY-SA or CC BY-NC-SA 4.0