How do you connect to a MySQL database using Oracle SQL Developer?

I already have Oracle SQL Developer installed and I can connect to Oracle databases and query them.

Using Help β†’ Check for Updates. I was able to install the Oracle MySQL Browser extension, but there are no connection parameters for MySQL databases.

+45
oracle mysql oracle-sqldeveloper
Sep 18 '08 at 3:16
source share
7 answers

In the "Tools"> "Settings"> "Databases" section, there is a path to the third-party JDBC driver that you need to configure. After installing the driver path, a separate MySQL tab will appear in the New Connections dialog box.

Note. This is the same jdbc connector that is available as a JAR download from the MySQL website.

+68
Sep 18 '08 at 3:20
source share

In fact you should do both:




  • Add driver

  • Add Oracle SQL Development Connector

    • In Oracle SQL Developper> Help> Check for Updates> Next
    • Check All> Next
    • Filter on "mysql"
    • Check All> Done
  • The next time you add a connection, a new MySQL tab will appear!

+17
Mar 04 '14 at 10:49
source share

Below is a demo of How to create a database connection for MySQL .

You can download MySQL Connector / J from here .

+7
Sep 18 '08 at 6:38
source share

Here is another extremely detailed step-by-step guide that also shows the whole process, including which values ​​in the connection dialog after installing the JDBC driver: http://rpbouman.blogspot.com/2007/01/oracle-sql-developer-11 -supports-mysql.html

+6
Jan 24 2018-12-12T00:
source share

My experience with the Windows client and linux / mysql server:

When sqldev is used in a Windows client and mysql is installed on a linux server, this means that sqldev network access to mysql.

Assuming mysql is already running and the databases you need to access are healthy:

β€’ Provide sqldev version (32 or 64). If 64, and to avoid access to the path, copy the actual 64-bit version of msvcr100.dll to the ~ \ sqldeveloper \ jdev \ bin directory.

but. Open the msvcr100.dll file in notepad and find the first occurrence of "PE"

i. "PE d" it is 64. ii. "PE L" it is 32. 

b. Note: if sqldev is 64 and msvcr100.dll is 32, the application gets stuck at startup.

β€’ For sqldev to work with mysql, the JDBC jar driver is required. Download it from mysql website.

but. Driver Name = mysql-connector-java-xxxx

b. Copy it to the location associated with the sqldeveloper directory.

from. Set it in the sqldev menu Tools / Preferences / Database / Third-party JDBC driver (add entry)

β€’ In the file for changing the Linux / mysql / etc / mysql / mysql.conf.d / mysqld.cnf file

bind-address = 127.0.0.1 (this local Linux host)

and change to

bind-address = xxx.xxx.xxx.xxx (real real IP address or computer name in Linux) if DNS is not working)

β€’ Log in to linux mysql and provide the necessary access, for example

# mysql -u root -p

GRANT ALL ON root @ 'yourWindowsClientComputerName' IDENTIFIED BY 'mysqlPasswd';

flush privileges;

restart mysql - sudo / etc / init.d / mysql restart

β€’ Run sqldev and create a new connection

but. user = root

b. pass = (your mysql pass)

from. Select the MySql tab

  i. Hostname = the linux IP hostname ii. Port = 3306 (default for mysql) iii. Choose Database = (from pull down the mysql database you want to use) iv. save and connect 

That is all I had to do in my case.

Thank,

Ale

+1
Jun 23 '16 at 18:25
source share

You can also find the following:

Connect Oracle SQL Developer to Microsoft SQL Server

In my case, I had to place ntlmauth.dll in the sql-Developer application directory itself (i.e. sql-developers \ jdk \ jre \ bin). Why this place on the jre / bin system I have no idea. But it worked.

0
Oct 27 '14 at 23:57
source share

Although @BrianHart's answer is correct if you are connecting from a remote host, you also need to allow the remote hosts to connect to the MySQL / MariaDB database.

My article describes complete instructions for connecting to a MySQL / MariaDB database in Oracle SQL Developer:

https://alvinbunk.wordpress.com/2017/06/29/using-oracle-sql-developer-to-connect-to-mysqlmariadb-databases/

0
Sep 12 '17 at 21:14
source share



All Articles