Создание базы данных и её пользователя
CREATE DATABASE DataBaseName;
CREATE USER 'user_name'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
GRANT ALL PRIVILEGES ON DataBaseName . * TO 'user_name'@'%';
CREATE DATABASE DataBaseName;
CREATE USER 'user_name'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
GRANT ALL PRIVILEGES ON DataBaseName . * TO 'user_name'@'%';