Windows with MYSQL

Ok, so I followed this to the letter:
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 Once I changed it, everything worked like it is supposed to!