Windows with MYSQL

Ok, so I followed this to the letter: https://manual.seafile.com/deploy_windows/deploy_with_mysql.html
And I get an error 502 on my IIS server. If I change it back to SQLite for the database, it works fine.
How can I get Seafile in Windows to work with MYSQL? I have all the databases created, users, permissions and ran the sql script.

lol another problem I solved myself!
Don’t use localhost for the connection string to MySQL. Use 127.0.0.1. Once I changed it, everything worked like it is supposed to!