Prerequisites
Before installing MySQL SQL Editor, ensure your system meets the following requirements:Java Development Kit (JDK)
Java 8 or Higher
MySQL SQL Editor requires Java 8 (or higher) to run. The application is compatible with Java 8, 11, 17, and newer versions.
If Java is not installed, download it from Oracle’s website or install OpenJDK from your package manager.
MySQL Server
MySQL Server 5.7+
A running MySQL server instance is required. This can be a local installation or a remote server you have access to.
The application uses MySQL Connector/J 9.2.0 (included in the
lib/ directory), which supports MySQL 5.7 and higher, including MySQL 8.x.Installation Steps
Clone or Download the Repository
Download the MySQL SQL Editor source code from GitHub:Alternatively, download and extract the ZIP file from the repository’s releases page.
Compile the Application
Navigate to the project root directory and compile the Java source files:This command:
- Uses
-cpto include the MySQL Connector JAR in the classpath - Compiles all
.javafiles in thesrc/com/app/directory - Outputs compiled
.classfiles to thebin/directory
On Windows, use semicolon (
;) instead of colon (:) as the classpath separator:Verify Installation
After launching the application, you should see the “Conexión a MySQL” window with the following fields:- Servidor — Dropdown to select MySQL host (localhost or 127.0.0.1)
- Usuario — Text field for MySQL username
- Contraseña — Password field for authentication
- Base de datos — Dropdown to select target database
- Actualizar button — Fetches available databases from the server
- Conectar button — Establishes connection to selected database
- Salir button — Exits the application
Troubleshooting Common Issues
Error: “ClassNotFoundException: com.mysql.cj.jdbc.Driver”
Solution:- Verify
mysql-connector-j-9.2.0.jarexists in thelib/directory - Ensure you include
-cp "lib/mysql-connector-j-9.2.0.jar"when compiling and running - Use the correct path separator (
:on Unix/macOS,;on Windows)
Error: “Access denied for user ‘root’@‘localhost’”
Solution:- Verify your MySQL username and password are correct
- Ensure the MySQL user has appropriate privileges:
Error: “Communications link failure”
Solution:- Verify MySQL server is running:
- Check that MySQL is listening on port 3306:
- If connecting to a remote server, ensure firewall rules allow port 3306
Application Window Doesn’t Appear
Solution:- Verify Java is installed correctly:
java -version - Ensure
DISPLAYenvironment variable is set (Linux/macOS with X11) - Try running with verbose output:
“No se encontraron bases de datos” (No databases found)
Solution:- Create a test database:
- Verify user has permission to see databases:
- The application filters out system databases (
information_schema,mysql,performance_schema,sys)
Configuration
Default Connection Settings
The application uses the following default JDBC connection string:- Port: 3306 (MySQL default)
- useSSL: Disabled by default for local connections
For production environments connecting to remote servers, consider enabling SSL by modifying
Model.java to use useSSL=true and configuring appropriate certificates.Custom Server Hosts
To add custom server addresses, modify thecmbServidores combo box initialization in View.java:70:
Next Steps
Now that you’ve installed MySQL SQL Editor, proceed to the Quick Start guide to:- Launch the application
- Connect to your first database
- Execute your first SQL query
- Explore the table browser and results viewer
Quick Start Guide
Get up and running with your first database connection and query