Update to README.md

dev
POUDEROUX Tom 2025-04-26 14:29:00 +02:00
parent c40d035f30
commit 91dd9ce173
2 changed files with 5 additions and 3 deletions

View File

@ -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. 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.

View File

@ -75,8 +75,6 @@ func connect() {
ping() ping()
profiler.Add(profiler_DATABASE_CONNECT, time.Duration(time.Since(tStart).Microseconds())) profiler.Add(profiler_DATABASE_CONNECT, time.Duration(time.Since(tStart).Microseconds()))
return
} }
func ExecuteStoredRoutine(name string, args ...any) { func ExecuteStoredRoutine(name string, args ...any) {