MySQL WorkBench vs CC Can't connect to server - mysql

I managed to connect to 192.168.0.253 with MySQL ODBC 3.51 Driver installed using Control Center but when I switch to Work Bench, it gives me the following error, Malformed Packet
If I use the Control Centre I am good to connect. Please help
WorkBench
Control Center

This MySQL server version is way too old. MySQL Workbench currently supports MySQL server 5.6, 5.7 and 8.0.

Related

MySQL workbench says bad handshake

I tried connecting the database from the server, but MySQL Workbench says that the connection cannot be made and declaring it as Bad Handshake. Can someone help me with this? But if I use the same user id and password and DB connections, it works on the other computer systems. Can someone solve this issue?
The authentication has changed from mysql V8, you must use a compatible client and server.
BTW it's a bug : https://bugs.mysql.com/bug.php?id=91828
Here is a workaround without uninstalling the new workbench.
The most probable case is having an old server with a new workbench:
get the server version
From a SQL cli tool:
SHOW VARIABLES LIKE "%version%";
or from a cli connected on the server:
$ mysql -v
It should show a version < 8.0, in my case 5.1.73
Get the mysqlWorkbench for a version <8.0:
You cannot install the msi if you already have a workbench V8.0, so you have to choose a portable installation form a zip file here:
https://dev.mysql.com/downloads/workbench/6.1.html
Select the version 6.2.5 (last before v8.0) zip version
Unzip
Close the workbench v.8 (it lock any other workbench launch)
Launch the V6.2.3 version of workbench, it should works.
This is probably because of a mismatch in the versions of MySQL servers.
Check the version of the MySQL server you are trying to connect to, and the version you have installed on the computer you are using, they have to be the same.
The reason of this warning is version problem. If you have installed mysql server version <= 5.1 and your remote server mysql version is greater than that you will face this problem. I recommend you to install 5.7 or greater in both your local and remote server. This problem will be fixed.
Fortunately there is an easy way around this. Use the old MYSQL ADMINISTRATOR tool as shown below. In my case I was trying to open a MySQL 5.1 database for a clients WordPress installation with MySQL Workbench 8 and that did not work out :).
ALl credits goes to https://www.urtech.ca/2019/01/solved-bad-handshake-mysql-workbench-failed-to-connect-to-sql/
Follow this link for the details
https://www.urtech.ca/2019/01/solved-bad-handshake-mysql-workbench-failed-to-connect-to-sql/

DataGrip reports "Unknown system variable 'query_cache_type' when connecting to MySQL

When using DataGrip to connect to MySQL, there is a connection error. I know it can be solved by modify MySQL server configuration, but is there a client way?
[HY000][1193] Unknown system variable 'query_cache_type'
Are you using MySQL 8.0.3? The new version has removed support for the query cache (for good reason), and the variables that pertain to it.
https://dev.mysql.com/doc/refman/5.7/en/query-cache.html says:
Note
The query cache is deprecated as of MySQL 5.7.20, and is removed in MySQL 8.0.
I just installed the latest DataGrip 2017.2.2 and the latest MySQL 8.0.3-RC and I can reproduce the error you report. I was able to use DataGrip fine with MySQL 8.0.1.
I have logged a bug with DataGrip: https://youtrack.jetbrains.com/issue/DBE-5212
Update: the JetBrains bug report referred me to this MySQL JDBC driver bug: https://bugs.mysql.com/bug.php?id=87846
TL;DR:
You need to use Connector/J 5.1.44 to connect to MySQL 8.0.3.
I followed these steps:
Download the free MySQL Connector/J 5.1.44 from https://dev.mysql.com/downloads/connector/
Open DataGrip's Data Sources inspector with Cmd-;
Select the MySQL driver
Uncheck the use of the bundles MySQL Connector/J
Click "+" to add a file, and select the MySQL Connector/J jar that I had downloaded
Restart DataGrip
Once I had done that, queries in DataGrip work against MySQL 8.0.3.
I changed the driver to MariaDB and that works for me.
Changing to the last version of MySQL didn't help.

Connect xampp localhost from Mariadb to MySQL database

I downloaded the ff: Mysql Workbench, Mysql Community Server and Xampp (latest).
I found out that recent xampp version is no longer using MySQL as database server instead it uses MariaDB. Apparently, MySQL workbench is not compatible with MariaDB.
There was a suggestion in previous forum to turnoff MariaDB and turn on MySQL Server on and it will automatically connect to xampp localhost. Which it did not, rather it shows an error message
Please advise what files needs to be configured to connect my xampp localhost and my manage server control user to mysql database server in OS X (macbook pro).
I just got an answer from XAMPP developers that they build and test the XAMPP installers with bundled components and try to configure it to use external services will be error prone.

Linux MS SQL ODBC Driver for MySQL Workbench iODBC

I am running MySQL Workbench on Ubuntu 12.04. MySQL workbench cannot use FreeTDS for migration of MSSQL 2000 to MYSQL, it wants to use iODBC. I cannot find a deb/ubuntu MS SQL 2000 ODBC connector that I can use with iODBC.
All the documentation assumes you are running MySQL Workbench under Windows. I tried that, but had too many issues. Based on 3 days to googeling, trial and error, I think it will work better with MySQL Workbench running the migration from Ubunto instead of Windows.
Does anyone know of an ODBC driver for Ubuntu that will work with MySQL Workbench/iODBC?
Thanks!
JR
To clarify: iODBC is NOT a driver, is a driver manager. FreeTDS is a driver and you need both to use migration wizard. All detailed instructions how to setup you can find in link below:
Installing a driver for Microsoft SQL Server and Sybase ASE in Linux and Mac
The MySQL migration forum contains a number of sticky links to various resources that may help you with your task.
How-To, Blog post
List of links to ODBC drivers for various RDBMSes (and MS Access)

Connect MySQL 3.23 hosted on Linux Server via MySQL Workbench 5.2 on Windows

I've a mysql database with version 3.23 installed on linux server.
When i try to use the database using sql yog, it will connect.But when i try to connect to the database using mysql work bench installed on windows xp, i will get an error.
Screen shots are below :
When i tried to connect mysql with the help of SQL YOG,
When i try to connect mysql with MySQL workbench
I used Putty to check whether SSH port 22 is listening or not, it is listening.. I can see the terminal.. an i checked host of root login...
I tried connecting with the help of SSH, i didnt get the solution... I am not able to track where i am getting wrong...
Can any one help me out???
Thanks in advance...
Regards,
Anoop Pete
Your server version is just not supported:
MySQL Workbench fully supports MySQL Server versions 5.1 and above. It
is also compatible with MySQL Server 5.0, but not every feature of 5.0
may be supported. It does not support MySQL Server versions 4.x.
Sadly, MySQL 3.23 is almost 12 years old.