diff --git a/README.md b/README.md index 526a2ce..a312276 100644 --- a/README.md +++ b/README.md @@ -10,5 +10,9 @@ Create user : CREATE USER 'DATABASE_USER'@'localhost' IDENTIFIED BY 'A_VERY_BAD_ Replace DATABASE_USER and A_VERY_BAD_PASSWORD by yours. -Give permissions to user : GRANT SELECT, INSERT, CREATE, DELETE, UPDATE, DROP, EXECUTE ON 'DATABASE_NAME' TO 'DATABASE_USER'@'localhost'; +Give permissions to user : GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, CREATE VIEW, EVENT, TRIGGER, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EXECUTE ON 'DATABASE_NAME'.* TO 'DATABASE_USER'@'localhost'; + +## Config setup + +Start the program once, the "config.json" file will be created. Edit it and replace the "Database" section with your credentials and your database informations. diff --git a/src/database/database.go b/src/database/database.go index 0423a8d..107dabf 100644 --- a/src/database/database.go +++ b/src/database/database.go @@ -75,8 +75,6 @@ func connect() { ping() profiler.Add(profiler_DATABASE_CONNECT, time.Duration(time.Since(tStart).Microseconds())) - - return } func ExecuteStoredRoutine(name string, args ...any) {