Go to file
Nogard b6104dfdbd Starting auto-creation of database 2025-05-03 20:32:45 +02:00
src Starting auto-creation of database 2025-05-03 20:32:45 +02:00
static 1st commit 2025-04-23 00:36:49 +02:00
.gitignore Add profiler, edit to database behaviour (Add retries) 2025-04-26 11:19:20 +02:00
LICENSE.txt Add license + Edit config.go 2025-04-23 00:50:24 +02:00
README.md Update to README.md 2025-04-26 14:29:00 +02:00
go.mod Switching from Gorilla to httprouter 2025-04-29 23:28:34 +02:00
go.sum Switching from Gorilla to httprouter 2025-04-29 23:28:34 +02:00
main.go Switching from Gorilla to httprouter 2025-04-29 23:28:34 +02:00

README.md

Chromagies

Database setup

Create database : CREATE DATABASE 'DATABASE_NAME';

Replace DATABASE_NAME with yours.

Create user : CREATE USER 'DATABASE_USER'@'localhost' IDENTIFIED BY 'A_VERY_BAD_PASSWORD'

Replace DATABASE_USER and A_VERY_BAD_PASSWORD by yours.

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.