diff --git a/onesql/install/user.sql b/onesql/install/user.sql new file mode 100755 index 0000000000000000000000000000000000000000..fe1b87cf983d45b724a6f9d36a6492a878148e4d --- /dev/null +++ b/onesql/install/user.sql @@ -0,0 +1,15 @@ +alter user 'root'@'localhost' identified with mysql_native_password by 'Test@1234'; +create user 'root'@'%' identified with mysql_native_password by 'Test@1234'; +grant all privileges on *.* to 'root'@'%' with grant option; +flush privileges; + +create user 'mysql_monitor'@'localhost' identified by 'mysql123' with max_user_connections 3; +grant process, replication client, select on *.* to 'mysql_monitor'@'localhost'; +flush privileges; + +create user 'tpcc'@'%' identified with mysql_native_password by 'Test@1234'; +grant all privileges on tpcc.* to 'tpcc'@'%' with grant option; +flush privileges; + +create database if not exists tpcc; +