gitpod

Socket Exceptions when trying to connect to MySql database from gitpod IDE (ubuntu server)

旧时模样 提交于 2021-02-05 09:35:17
问题 I'm working with the gitpod online IDE ( vs code in the browser with an ubuntu linux server behind it). I'm struggling with creating a Connection to my mysql database on an other linux (CentOS) server. I've set the Remote MySql hosts on the db server to '%' => 'all allowed'. I'm using the MySql Connector package: https://www.nuget.org/packages/MySqlConnector to connect to it. That's what my code looks like: public async Task<List<User>> GetUsersAsync() { List<User> readUsers = new List<User>(