Get the MySQL JDBC Driver
Download MySQL Connector/J from the official MySQL website. Choose the "Platform Independent" ZIP file. Extract it and note the location of the mysql-connector-j-x.x.x.jar file.
Connect to your MySQL database in under 5 minutes. This guide covers JDBC driver setup, connection configuration, and common troubleshooting tips.
# Connection target
database = MySQL 5.7+ / 8.x / MariaDB-compatible
driver = MySQL Connector/J (JDBC)
port = 3306 # default; configurable
protocol = TCP # SSL/TLS optional
auth = username/password
# Setup info
time = 5 minutes
difficulty = Beginner
steps = 6
prereq = SQL Developer installed + MySQL JDBC .jar
// 6 setup steps + connection examples + troubleshooting below
What you'll need before opening the New Connection dialog.
Follow these six steps to set up your MySQL connection. Total time: about 5 minutes.
Download MySQL Connector/J from the official MySQL website. Choose the "Platform Independent" ZIP file. Extract it and note the location of the mysql-connector-j-x.x.x.jar file.
In SQL Developer, go to Tools → Preferences → Database → Third Party JDBC Drivers. Click Add Entry and select the .jar file from Step 1.
Click the green + icon in the Connections panel. In the dialog that opens, click the MySQL tab on the left side.
Connection Name: any name you want
Username: your MySQL user
Password: your MySQL password
Hostname: localhost or server IP
Port: 3306 (default)
Database: your database name
Click Test to verify everything works. You should see Status: Success. If not, check the error message and see the troubleshooting section below.
Click Save to keep the connection for future use, then click Connect. Your MySQL database is now ready to use.
Three common configurations — local server, remote host, and Amazon RDS — shown as connection config blocks.
# Local MySQL Server (most common dev setup)
hostname = localhost
port = 3306
database = your_database_name
# Remote MySQL Server (production or shared dev host)
hostname = your-server.com # or IP address
port = 3306 # or custom port
database = your_database_name
# Amazon RDS endpoint (with region in hostname)
hostname = your-instance.xxxx.region.rds.amazonaws.com
port = 3306
database = your_database_name
Quick fixes for the three problems most often hit during MySQL setup.
mysql-connector-j-x.x.x.jar file from Step 1.3306 is open in your firewall. Full fix in the connection-refused guide.mysql -h host -u user -p) to verify they work. Detailed fix in the access-denied guide.SQL Developer connects to PostgreSQL, Oracle, SQL Server, SQLite, and MariaDB with the same New Connection dialog flow — the setup steps are nearly identical to MySQL, only the JDBC driver and port number change.
See also: Getting Started · Keyboard Shortcuts · Don't have it yet? Download SQL Developer