install MySQL JDBC driver msi - mysql

I have downloaded the JDBC driver for MySQL "mysql-connector-java-gpl-5.1.26.msi" from http://dev.mysql.com/downloads/connector/j/. But i can't figure out how to use it. The documentation at http://dev.mysql.com/doc/refman/5.6/en/connector-j-binary-installation.html says it is a zip file which has the required jar file. But what i got is a .msi file. When i execute the msi file it just starts installing and disappears. Any ideas how i can get the jar file from the msi?

The msi installation places the file at C:\Program Files\MySQL\MySQL Connector J\mysql-connector-java-5.1.26-bin.jar.
You can also download the platform independent zip file and extract the jar file whereever you want.

I had the same issue with the installer. use the drop down menu under Select Platform:, and select Platform Independent. If you don't know how to use a TAR archive, download the zip file, unzip and there is the .bin file. For eclipse, drop this into the project directory, find the file, right click, and build path. This method may cause issues if you download a java update.

You can directly used it from C:\Program Files\MySQL\MySQL Connector J\mysql-connector-java-5.1.26-bin.jar after installing the msi. If you are using IDE like Netbeans and Eclipse just go to your project then right click the Libraries folder then click add jar option then go the mysql connector directory and then select the mysql connector jar file.

Related

No jdbc driver for mysql 8.0.28

How to get the JDBC driver for mysql 8.0.28 the website has installer only. Does they removed it? How to get the driver for this version?
Do you want 8.0.28 (mentioned in the title) or 8.0.29 (mentioned in the body of the question)? Either way, if you only want the JAR file, then use the "Platform independent" download option - either from the main download tab or from the archives tab in the link you provided. From there you can download a zip file or a tar file - and the JAR file (the actual driver) will be inside.
Alternatively, use Maven: pick the version you want and either use a Maven POM or just click on the JAR file download link.

How to properly install the libmysql.dll on Windows?

I'm getting the following error message when I try to run an application that connects to a MySQL database instance:
"[FireDAC][Phys][MySQL]-314. Cannot load vendor library [libmysql.dll or libmysqld.dll]. Hint check it is in the PATH or application EXE directories, and has x86 bitness.".
The error persists even with the libmysql.dll file on the same directory of the application executable.
Beyond to install the MySQL Connector/C to get the libmysql.dll, it is necessary to install the Visual C++ Redistributable Packages for Visual Studio 2013 too.
Just copy libmysql.dll into the same folder of the application, or add the path to libmysql.dll into Path variable of system.

Installing mySQL for windows

I downloaded mySQl zip file from http://dev.mysql.com/downloads/mysql/ . I downloaded the 216 MB file given in the bottom of the page. I extracted the zip file. But I cannot figure out how to install mySQL for windows. There is no setup.exe file or an MSI installer. This is what I got after extracting the zip file :- http://i.stack.imgur.com/fBA2W.png
Please tell me how to continue. P.S. that I have tagged java because I have to use mySQL for java. :P
You can download the installer file from here: https://dev.mysql.com/downloads/installer/5.6.html
Here is the the MySQL documentation for Installing MySQL on Microsoft Windows Using a noinstall Zip Archive: http://dev.mysql.com/doc/refman/5.0/en/windows-install-archive.html
If you're looking for an installer, why not download the installer package?
https://dev.mysql.com/downloads/installer/5.6.html

cannot install mysql-connector-java, no package available

I need to install JDBC for MySQL running in CentOS.
I tried using this command
yum install mysql-connector-java
but it says
No Package mysql-connector-java available
Nothing to do
Do you know any other command that aims to install JDBC?
Here's what I did to solve the issue:
Download the JDBC here
Extract the files anywhere you want. To extract follow the command below
tar -zxvf [TAR FILENAME]
You will find mysql-connector-java-5.1.22-bin.jar inside that folder. Copy that and paste to (in my case) /%android-sdk%/tools/lib
Add the new location of mysql-connector-java-5.1.22-bin.jar to classpath
mysql java connector is platform independent. you can download it from following link
http://dev.mysql.com/downloads/connector/j/
you can put jar file in /lib/ or /webapps//web-inf/libs
I am assuming that you are using tomcat.
Thank you

FlashDevelop Configuration Issue - demands Java 1.6

I've been using Flashdevelop (version 4.4) for some time now with zero problems. I recently reinstalled Windows 7 however, and after installing Flashdevelop it is demanding Java 1.6 and won't compile without it. Let me be more specific, here is the error I get when I try to compile a simple HelloWorld-type test:
"Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\Users\marc\Documents\DeleteMe\DeleteMe\DeleteMe.as3proj" -ipc 01be003c-6cb5-4d0b-9c35-c59dd2ea7a19 -version "4.6.0; 3.3" -compiler "C:\Program Files (x86)\FlashDevelop\Tools\flexsdk" -library "C:\Program Files (x86)\FlashDevelop\Library" -cp "C:\Program Files (x86)\Java\jdk1.6.0_34\bin" -cp "C:\Program Files (x86)\Java\jdk1.6.0_34"
Building DeleteMe
mxmlc -load-config+=obj\DeleteMeConfig.xml -debug=true -incremental=true -swf-version=16 -o obj\DeleteMe634829909556672047
Starting java as: C:\Program Files (x86)\Java\jdk1.6.0_34\bin\java.exe;\bin\java.exe
Unable to start java.exe: The system cannot find the file specified
Could not compile because the fcsh process could not be started.
Build halted with errors (fcsh).
INITIALIZING: Failed, unable to run compiler
Done(1)"
The GlobalClasspath setting for the Java 1.6 JDK is set to: C:\Program Files (x86)\Java\jdk1.6.0_34\bin
I have also set my JAVA_HOME environment variable to the same location as well. Might I be neglecting to set another environment variable?
JAVA_HOME should be
C:\Program Files (x86)\Java\jdk1.6.0_34
and not
C:\Program Files (x86)\Java\jdk1.6.0_34\bin
FlashDevelop currently doesn't support that your JAVA_HOME environment var contains several paths (C:\Program Files (x86)\Java\jdk1.6.0_34\bin\java.exe, \bin\java.exe).
Modify it to only indicate the first path (C:\Program Files (x86)\Java\jdk1.6.0_34\bin\java.exe).
As someone who was dealing with this, I just found an answer that doesn't involve mucking with the PATH variables.
Go into your Flex SDK, /bin directory, look for the JVM config file conveniently named jvm.config
Inside, there is a param 'java.home' which, if left empty, will cause it to search for it's own value. Enter in the main path to the JRE - in my case,
java.home=C:\Program Files\Java\jre1.6.0_07\
I found mine by going to "Control Panel > Java > Java tab > View... button" to see all the installed versions and their paths
I prefer this method because I feel like you shouldn't have to modify settings on your whole system to get 1 program to work, if you have the option instead to just modify that program's settings.
jvm.config in C:\Program Files (x86)\FlashDevelop\Tools\flexsdk\bin\jvm.config is much more better than path variable.
Please avoid Path variable.
In jvm.config just set jre URL directory
java.home=C:\Program Files\Java\jre1.6.0_07
May be you update the Java, last version of Java ask you to delete older version. Then go into the file
C:\Program Files (x86)\FlashDevelop\Tools\flexsdk\bin\jvm.config
and replace
java.home=C:\Program Files\Java\jre1.6.0_07\
by the folder were is your new version
java.home=C:\Program Files (x86)\Java\jre1.8.0_25\