No idea why, i can connect to a database, i can read data but i cant write data. Ive tested this on 2 different databases on different servers and on 3 global ban solutions (sourcebans integration, ulx bans, ulx global bans).
I even asked for help with my issue on the gmod mysql facepunch thread and no one had an answer of why it doesnt work for me.
I'll admit that the issue does sound like a permissions issue (permissions after this paragraph). Oddly the TF2 server i had running on the same machine had no problems connecting to the bans database (sourcemod + sourcebans) and the sourcebans user had the exact same permissions as the new user has for the new ban database.
ALTER
CREATE
CREATE ROUTINE
CREATE TEMPORARY TABLES
DELETE
DROP
INDEX
INSERT
LOCK TABLES
REFERENCES
SELECT
UPDATE