My sql dsn problem - mysql

I want to create DSN of MySql but
IN windows 7 I don't have driver for Mysql under ODBC->system dsn->add button?
so please help me

You need to install the drivers for MySQL. These drivers should be found with the version of MYSQL you are using.
The Driver link and information to guide you through the process is Here
I have not tried it but it looks like windows 7 is not supported, but who knows, never know until you try.

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/

Unable to Start/Connect to MySQL 8.0 in Netbeans 8.2

So I have the following problem. I'm trying to register MySQL 8.0 from the services tab in Netbeans 8.2.
When doing so I enter all the Basic and Admin properties and it gets added but when I click on Start I get the following error:
No enum constant com.mysql.cj.conf.PropertyDefinition.ZeroDatetimeBehavior.CONVERTTONULL
Here is a Screenshot of the Error
I've been researching a lot and apparently I have to change some xml file that I don't know exactly where to find it.
Anyone has any idea about this?
I don't understand why it works when I use MySQL server 5.x but not with 8.x
Thank you!
I think the problem is that netbeans doesn't support Mysql 8.0 server.
It even says so in the official site that please select Mysql 5 server when installing.
https://netbeans.org/kb/docs/ide/install-and-configure-mysql-server.html
This is not the case anymore. Please refer below as stated by #skomisa:
Specified Class is not a Driver. Can't add MySQL Connector/J 8.0 to Netbeans 8.0
please update your mysql driver from offical mysql website it about 8.01 but the current is old 5.0

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)

MYSQL - Connect MYSQL Workbench to a MYSQL server on localhost

I know the question I am about to ask is a very stupid once but I am new to MYSQL so please bear with me. Want I want to do is create a database on my local machine and also access/manipulate it from their. I thought MYSQL WB was the all in one tool to do this i.e it will also allow me to create a database and also make a MYSQL server from which to access it. But I came to know the Workbench is just a front end and you need to have a some kind of a seperate MYSQL server module for it to access.
The problem is I can't seem to find any link for a simple a server module on the MYSQL download site.
http://dev.mysql.com/downloads/ .
It has one Cluster Server but I don't think this is what I am looking for. If anyone could provide a link to the MYSQL server module using which I could connect MYSQL Workbench on my local host, and the steps to connect them that would be great.
The one your looking for is named MySQL Community Edition. The current version is 5.6.14. Just select your platform (mac, linux or windows) and follow the installation guide.
If you wish to have php/mysql then you can download xampp. It includes all the necessary tools. Or if you wish to install it separately then follow this for Windows,
http://dev.mysql.com/downloads/installer/

How to Create DSN in ubuntu

I want to create a DSN in Ubuntu Linux 10.10 for a Java application with a MySQL back end.
Sorry if the question is simple but I really need your help.
How can I create it? What are the drivers that are needed to install for the same?
JDBC is the way to go to get database connectivity in a Java application.
You'll need to install a JDBC driver for MySQL, e. g. Connector/J. Installation and usage of Connector/J is documented in the MySQL reference manual.
The format of a connection URL for Connector/J is specifically described in 20.3.4.1. Driver/Datasource Class Names, URL Syntax and Configuration Properties for Connector/J.