DbSchema is connecting to MySql using JDBC Drivers.
What are JDBC Drivers?
JDBC drivers are Java library files with the extension '.jar', used by Java applications to connect to the database.
Usually they are provided by the same company which developed the database software.
DbSchema is an MySql Client which already includes
the MySql JDBC driver. DbSchema can configure the MySql JDBC URL and test the connectivity.
What is the JDBC URL?
The URL is a string (text) with a specific format containing information about the host where the database is running, the port, username, database name, etc.
The URL format is specific to each driver.
Any wrong character in the URL may make the database connectivity fail.
Therefore we recommend installing DbSchema and try to get connected, and you will find the JDBC URL in the connection dialog.
MySql JDBC Driver
- Required File(s): mysql-connector-java-nn-bin.jar
- Java Driver Class: com.mysql.jdbc.Driver
- URL: jdbc:mysql://HOST[:PORT][/DB]
- Website: MySQL
Download the MySql JDBC Driver
The driver library files are compressed in a zip archive.
If you cannot connect, or you get issues with the driver, please ask DbSchema Team for help.
Solving Common Connectivity Issues
Enable Remote Access on MySql Server
By default MySql does not allow connecting from another machine as the one where the server is installed.
You can enable remote access during installation ( see the next chapter ) or later using the instructions below.
- On the server type in the command prompt or terminal mysql -u root -p <root_password>
The mysql console should start.
- List the databases using show databases
- View the configured grants using select * from db;
- Enable remote access for a user foo using GRANT ALL ON foo.* TO bar@'202.54.10.20' IDENTIFIED BY 'PASSWORD';
Here you have to edit the user ( put your user instead of foo ), the IP of the client machine and the root password.
If this didn't help, please try to search the web for tutorials.
MySql Installation Tips
Install MySql from http://www.mysql.com. During installation go for a detailed install,
and when you are prompted for the user password check the 'Enable root access from remote machines'.
Enabling this you will be allowed to connect to MySql from another computer.
Remember the password you set here, it will be requested when connecting to the database as user root.