photoprism/scripts/sql/reset-testdb.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;