MySQL mobilink synchronization with SQL Anywhere - mysql

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.

Related

ADO Error: 0x80040e14 exception occurred in microsoft oledb provider for odbc drivers[ODBC 8.0(a)][mysqld-8.0.20] You have an error in your SQL syntax

We have built RFID based system identification application in LabView using MySQL as database.
We have one same software running on two similar computers. Few months before application was running properly on both the computers. Now one is running smoothly but the second one gives following error.
ADO error: 0x80040e14 exception occurred in microsoft ole db provider for odbc drivers [MYSQL] [ODBC 8.0(a)] [mysqld-8.0.20] You have an error in your SQL syntax; check the manual corresponds to your MySQL version for the right syntax yo user near "RFID_tag_number' at line 1 in NI_Database_API.lvlib:Conn Execute.vi...till path of the file.
As you can see there is double inverted comma before RFID_tag_number in the error, but in our code we have only used single inverted comma as it is a string value. We tried to copy complete application from the computer where it is properly running to the second computer but still getting the same error.
The only difference between both computers we found is -
In the computer running properly - In MySQL Workbench >Administrator >Server Status, the Configuration Path is My SQL Server 5.7\my.ini
And in the second computer it is My SQL Server 8.0\my.ini.
We don't know if this is the reason for the error or how the configuration path affects the application. We even tried to remove MySQL server 8.0 completely from computer with the issue and installed MySQL server 5.7 but still the path remained same.
Can anyone help us? We are new to LabView working with MySQL.
What I understand, error will throw for incorrect query,it might be required handling special characters.
Second if same data base access by both system
,system required same version my mysql and odbc driver also.
Third, when you try to remove mysql, delete hidden files in c drive then install new version

Matlab - Mysql use error when changing catalog

I am an ubuntu matlab user and I just updated to ubuntu 20.04 from 18.04. With the upgrade the mysql java connector was updated to version 8.
After the update I started to receive a very odd error when trying to set the catalog used for a connection. For example when applying the matlab "exec" command:
exec(conn,'USE my_catalog');
the following error would be returned:
Statement.executeQuery() cannot issue statements that do not produce result sets.
Note that the mysql connection is operating normally and returns a list of catalogs that include the catalog to be selected.
Help is appreciated.

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?

Migrate MySQL database to PostgreSQL using EnterpriseDB Migration Toolkit

I'm trying to convert my MySQL database to PostgreSQL using EnterpriseDB Migration Tool. My setup is as follows:
Windows 10 x64
MySQL 5.5.52 Community Edition GPL
EDB PostgreSQL 9.6.2-2
EnterpriseDB Migration Toolkit 50.0.1
The issue is - it connects successfully to to source MySQL and target PostgreSQL but then fails with the error "unrecognized configuration parameter db_dialect":
C:\Program Files (x86)\edb\mtk\bin>runMTK -sourcedbtype mysql s2c_data
Running EnterpriseDB Migration Toolkit (Build 50.0.1) ...
Source database connectivity info...
conn=jdbc:mysql://localhost:3306/s2c_data?zeroDateTimeBehavior=convertToNull
user =s2c_data_user
password=******
Target database connectivity info...
conn =jdbc:edb://localhost:5432/s2c_data
user =s2c_data_user
password=******
Connecting with source MySQL database server...
Connected to MySQL, version '5.5.52-log'
Connecting with target EDB Postgres database server...
Connected to PostgreSQL, version '9.6.2'
Importing mysql schema s2c_data...
MTK-17003:Error in copy tables: java.sql.SQLException: com.edb.util.PSQLException: ERROR: unrecognized configuration parameter: "db_dialect"
MTK-03000: General Error DB-null: java.sql.SQLException: java.sql.SQLException: java.sql.SQLException: com.edb.util.PSQLException: ERROR: unrecognized configuration parameter: "db_dialect"
One or more schema objects could not be imported during the migration process. Please review the migration output for more details.
Migration logs have been saved to C:\Users\Alex_R\.enterprisedb\migration-toolkit\logs
******************** Migration Summary ********************
Total objects: 0 Successful count: 0 Failed count: 0 Invalid count: 0
*************************************************************
C:\Program Files (x86)\edb\mtk\bin>
Anybody faced the same issue? Seems like a bug in EDB MTK but may be I'm missing something. Would be grateful for any help.
According to EDB's documentation, this is a parameter of their Postgres PLUS fork of PostgreSQL.
So it looks like this migration tool only works when you migrate to their proprietary version of PostgreSQL, not the standard version.
I think you should refer to
this tool's documentation.
According to this document, maybe you can try to add one more command line option:
C:\Program Files (x86)\edb\mtk\bin>runMTK -sourcedbtype mysql -targetdbtype postgresql s2c_data
I found the solution - DBTransfer. The original version was pretty old and buggy so I had to fix few things. The source is here. Feel free to use it for your projects.

LINQPad + IQ Driver for MySQL Connection Error: Bad handshake

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