LINQPad + IQ Driver for MySQL Connection Error: Bad handshake - mysql

I can't connect to my local MySQL Server with Linqpad + IQ Driver. I constantly get the following error:
Connection Error: Bad handshake
The MySQL Service is up and running. I can connect with command line client.
MySQL Version: 5.5.15
LINQPad Version: 4.31
IQ Driver Version: 2.0.2.0

I tried out almost all possible (really!!!) different configurations and MySQL packages. The newest release that works is MySQL Server 5.1.56
I didn't find that particular release on mysql.com. But you can get it from here: http://olex.openlogic.com/packages/mysql/5.1.56

Related

Having trouble connecting to old version mysql(4.0) with python3

I got an error "ERROR 2013 (HY000): Lost connection to MySQL server during query" when I tried to use the following python3 code to connect to MySQL database.
mysql.connector.connect(user, password, host, database)
Since my MySQL version is 4.0 and I found a document says that it doesn't support versions prior to 4.1.
https://dev.mysql.com/doc/connector-python/en/connector-python-connectargs.html
I can't change MySQL version of my device, is it possible to connect to MySQL 4.0 with python 3?

Cant connect to Mysql server : ERROR 1043 (08S01): Bad handshake

I try to connect remote mysql server from powershell to 178.128.110.102 and i got error.
ERROR 1043 (08S01): Bad handshake
Try to install MySQL Workbench from the official website"https://dev.mysql.com/downloads/workbench/" , this is the link from where you can download it. This will solve your problem.
Make sure the version that the server installed is the same as your ODBC Connector at your PC. For example is your server installed 5.7.16 MySQL. Then you have to installed the 5.7.16 ODBC Connector that comes with the msi file. Don't go to the web and download the latest ODBC connector. I will not work
answered on Can't connect to MySQL server on MySQLCC ERROR 1043 Bad Handshake.

Unable to connect MySQL on system start in Windows Server 2012 R2

I have a Windows service (using .NET framework 4.5) installed on a Windows 2012 R2 machine. I have MySQL connector 6.9.7 and MySQL 5.6.25
When my service is started I am getting following error.
Authentication to host 'xxx.xx.x.xx' for user 'yyyyy' using method 'mysql_native_password' failed with message: Reading from the stream has failed. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Reading from the stream has failed. ---> System.IO.EndOfStreamException: Attempted to read past the end of the stream.
or sometimes:
Unable to connect to any of the specified MySQL hosts.
If I restart the service in a while all seems to work properly. Any idea what the problem is?
Migrating OP's solution from the question to an answer:
After further investigation we have found that our database version was 5.6.25. We have tried same connectivity with our old db 5.5.16 and we didn't face the same issue, so it looks like issue is the database itself. Our new database is installed on a Linux machine.

MySQL mobilink synchronization with SQL Anywhere

My computer configurations are
MySQL-mysql-5.0.96
SQL Anywhere-11
win XP 32 bit
I am trying to connect mysql with sql anywhere for mobilink syncronization but getting error while following the tutorial given at this site: http://www.sybase.com/detail?id=1056497 at step Starting the MobiLink Synchronization Server
start "" "%SQLANY11%\bin32\mlsrv11" -v+ -o mlsrv.out -zs ml_mysql -c "DSN=sa11_ML" -dl -zu+ -x tcpip{port=2439}
error which I'm getting:
[-10002]Consolidated database server or ODBC error: ODBC:[MySQL][ODBC 5.1 Driver][mysql-5.0.24a-community-nt]Incorrect datetime value:'2134-09-08 07:06:05.100000000' for column 'last_modified' at row 1 (ODBC State = HY000, Native error code = 1292)
I find out the solution for the above asked question by me.
Use the following versions
MySQL - 5.5
MySQL ODBC - 5.1
instead of above given.
and try to use the steps by executing bat file provided.

Bad handshake error with LinqPad v4.31.0 and IQ Driver 2.0.2?

They are both newest version in the time I'm typing these lines. I both got them from LinqPad official page : LinqPad v4.31.0 and IQ Driver 2.0.2 . But I consistently get this error :
Connection Error: Bad handshake
MySQL Server 5.5.16
Does someone have a workaround ? Thanks
This error means that your client cannot connect to the new MySQL server. In this case you should update your client tool. Try to update IQ Driver or write a request to LINQPad.