Solution Found!
I was being stupid and didn’t realise it needed to be a server script that uses the MySQL library, client scripts can’t access it at all.

1 Like