Snippets tagged “jdbc”
9 snippets use this tag.
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureJava
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure is an exception that is thrown when there is a failure in the communication link between your Java program and the MySQL database. This can happen for a variety of reason
- Connect Java to a MySQL databaseJava
To connect a Java application to a MySQL database, you need to use the JDBC (Java Database Connectivity) API.
- Data access object (DAO) in JavaJava
In Java, a data access object (DAO) is a design pattern that provides an abstract interface for accessing data from a database.
- How do I connect to a SQL Server 2008 database using JDBC?Java
To connect to a SQL Server database using JDBC, you will need to use the JDBC driver for SQL Server.
- How to connect to Oracle using Service Name instead of SIDJava
To connect to an Oracle database using a service name instead of a SID (System Identifier), you can use the thin driver and specify the connection URL in the following format:
- java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)Java
A java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES) error typically indicates that the MySQL server is unable to authenticate the user with the provided username and password.
- MySQL JDBC Driver 5.1.33 - Time Zone IssueJava
If you are using MySQL JDBC Driver version 5.1.33 and you are experiencing issues with time zones, there are a few things you can try:
- Solving a "communications link failure" with JDBC and MySQLJava
A "communications link failure" error when using JDBC and MySQL can be caused by several factors. Here are a few potential solutions:
- Warning about SSL connection when connecting to MySQL databaseJava
If you are getting a warning about an SSL connection when connecting to a MySQL database, it may be because you are using an older version of the MySQL client library that does not support SSL connections by default.