7 lines
198 B
MySQL
7 lines
198 B
MySQL
|
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;
|