Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Erro ao abrir conexão com MySQL - 'MySql.Data.MySqlClient.MySqlConfiguration' threw an exception.'

$
0
0

estou com problema para abrir a conexão com o mysql com a seguinte mensagem de erro (System.TypeInitializationException: 'The type initializer for 'MySql.Data.MySqlClient.MySqlConfiguration' threw an exception.')

segue trecho da conexão

string connStr = String.Format("Server = " + server + ";User Id = " + user + ";Password = " + password + ";Persist Security Info = True;Database = " + database + ";");

MySQLconn = new MySqlConnection(connStr);
MySQLconn.Open();


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>