CREATE DATABASE my_db;
CREATE USER 'root'@'%' IDENTIFIED BY 'root';
GRANT ALL PRIVILEGES ON my_db.* TO 'root';
FLUSH PRIVILEGES;