配置文件里添加
<add name="mysqlConn" connectionString="server=127.0.0.1;port=3306;user=root;password=mysql123;database=dbName;SslMode = none;" providerName="MySql.Data.MySqlClient" />