connector-net

Authentication method 'mysql_old_password' not supported

拟墨画扇 提交于 2019-11-29 11:04:48
Updated the mysql connector. Net to version 6.6.4 provider to integrate with visual studio 2012, but now when I try to configure the connection to the edmx occurs the error "Authentication method 'mysql_old_password' not supported". This error message is shown when you are connecting to a MySQL database that has its passwords stored in the old password format ( http://dev.mysql.com/doc/refman/5.0/en/old-client.html ). Newer MySQL clients do not allow a connection to be made to databases using the old password format as it is less secure. Some would suggest to set old_passwords=1 at the MySQL

Authentication method 'mysql_old_password' not supported

余生颓废 提交于 2019-11-28 04:07:37
问题 Updated the mysql connector. Net to version 6.6.4 provider to integrate with visual studio 2012, but now when I try to configure the connection to the edmx occurs the error "Authentication method 'mysql_old_password' not supported". 回答1: This error message is shown when you are connecting to a MySQL database that has its passwords stored in the old password format (http://dev.mysql.com/doc/refman/5.0/en/old-client.html). Newer MySQL clients do not allow a connection to be made to databases

How to insert 20 million record into MySql database as fast as possible

五迷三道 提交于 2019-11-27 05:36:26
I have a database table like below: create table temperature (id int unsigned not null auto_increment primary key, temperature double ); And in my program I got about 20 million temperature to insert into the table. I worke in .Net environment, use Connector/Net connecting to MySql. The code was like below: List<double> temps = new List<double>(); ... string connStr = "server=localhost;user=name;database=test;port=3306;password=*****;"; MySqlConnection conn = new MySqlConnection(connStr); try { conn.Open(); //temps.Count is about 20 million for (int i = 0; i < temps.Count; i++) { string sql1 =