Prefix database
This commit is contained in:
parent
cd8834c8d9
commit
4be279b78c
|
@ -5,3 +5,5 @@ Crie o arquivo `input.txt` e coloque os nomes de usuário nele, um por linha.
|
|||
Execute o script `generate.sh`.
|
||||
|
||||
O código SQL será salvo em `output.sql`.
|
||||
|
||||
Será criado um banco de dados no formato `db_nomedeusuario` para cada usuário e a senha será igual ao nome de usuário (alterar depois).
|
||||
|
|
|
@ -2,6 +2,6 @@ CREATE USER IF NOT EXISTS 'username' @'%' IDENTIFIED BY 'username';
|
|||
|
||||
GRANT USAGE ON *.* TO 'username' @'%' REQUIRE NONE WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;
|
||||
|
||||
CREATE DATABASE IF NOT EXISTS `username`;
|
||||
CREATE DATABASE IF NOT EXISTS `db_username`;
|
||||
|
||||
GRANT ALL PRIVILEGES ON `username`.* TO 'username' @'%';
|
||||
GRANT ALL PRIVILEGES ON `db_username`.* TO 'username' @'%';
|
Loading…
Reference in New Issue
Block a user