No jdbc driver for mysql 8.0.28 - mysql

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.

Related

Build Failed: unable to find ojdbc .jar file

When I run the project I get an error:
C:\Users\admin\Documents\NetBeansProjects\project\nbproject\build-impl.xml:1007:
Warning: Could not find file
C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar to
copy. BUILD FAILED (total time: 0 seconds)
Previously Database I used was Oracle but now I want use Mysql Server. I've already changed the code accordingly, also put mysql connector inside libraries.
Where have I stuck? Why it is giving error concerning oracle driver even if mysql server used?
P.S.
Server used: Apache Tomcat 7.0
Netbeans version: 7.4
You probably still have references to the old jar in Netbeans' build script. Right click on your project, select Properties, and look under the Build section for any reference to the old jar.
You can also edit the ant build script manually. The file path is given in the error message your provided.
You probably still have references to the old jar in Netbeans' build script. Right click on your project, select Properties, and look under the library section for any reference to the old jar.

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

install MySQL JDBC driver msi

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.

Installing QMYSQL driver

Basically when I try to connect to the mysql database i get this error:
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QODBC QODBC3
I tried to install the drivers, extracting just qtbase from http://download.qt-project.org/official_releases/qt/5.0/5.0.2/single/qt-everywhere-opensource-src-5.0.2.zip and placing it in my Qt directory. I have also followed this guide by inbush: http://www.qtcentre.org/threads/45295-using-mysql-plugin doing this: http://puu.sh/3nyG9.png
inbush says to copy libmysql.dll from C:\mysql\bin to C:\Qt\bin but I didn't find libmysql.dll in bin, but I did find it in lib. So I took that and went to my Qt\bin, and noticed that it was just these files http://puu.sh/3nB5m.png so I thought to place it in Qt\lib instead. I tried re-running my project but it still gave me the same error. My .pro file does indeed have Qt += sql, and I did run qmake afterwards. What am I doing wrong?
Take a look at this post for Qt5, there's also a seperate set of instructions for Qt4 (although somewhat similar).
Qt - How to get|compile Mysql driver
Download a version of MySQL
Download Qt source
Build the MySQL plugin for Qt
Copy the DLL from the MySQL install folder to a Qt folder (see link above)
Copy the DLL you built for the Qt MySQL plugin to a Qt folder
And obviously, when you distribute you'll need to remember to package those DLLs together (always check dependency walker)

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