Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string serverName = "mysql.zzz.com.ua";
- string userName = "root";
- string dbName = "dbname";
- string port = "3306";
- string password = "pass";
- string connStr = "server=" + serverName +
- ";user=" + userName +
- ";database=" + dbName +
- ";port=" + port +
- ";password=" + password + ";";
- var connectionString = "server=" + serverName + ";" + "database=" + dbName + ";" + "uid=" + userName + ";" + "pwd=" + password + ";";
- MySqlConnection conn = new MySqlConnection(connStr);
- try
- {
- conn.Open();
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.ToString());
- }
- > Возникло исключение "MySql.Data.MySqlClient.MySqlException" в
- > MySql.Data.dll ("Authentication to host 'mysql.zzz.com.ua' for user
- > 'root' using method 'mysql_native_password' failed with message:
- > Logins are not allowed") MySql.Data.MySqlClient.MySqlException
Add Comment
Please, Sign In to add comment