6 lines
198 B
SQL
6 lines
198 B
SQL
DROP DATABASE IF EXISTS testdb;
|
|
CREATE DATABASE IF NOT EXISTS testdb;
|
|
CREATE USER IF NOT EXISTS testdb@'%' IDENTIFIED BY 'testdb';
|
|
GRANT ALL PRIVILEGES ON testdb.* TO testdb@'%';
|
|
|
|
FLUSH PRIVILEGES;
|