Your eclipse is running the class “com.mysql.cj.jdbc.admin.TimezoneDump” (which also contain a main method) instead of your MainApp class.
Try this manipulation:
Right click on MainApp.java -> Run As -> Java Application
Related Contents:
- Connect Java to a MySQL database
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- Solving a “communications link failure” with JDBC and MySQL [duplicate]
- How to get UTF-8 working in Java webapps?
- java.sql.SQLException Parameter index out of range (1 > number of parameters, which is 0) [closed]
- How to convert epoch to mySQL timestamp in JAVA
- MySQLSyntaxErrorException near “?” when trying to execute PreparedStatement
- Using env variable in Spring Boot’s application.properties
- Java: Insert multiple rows into MySQL with PreparedStatement
- Can we connect remote MySQL database in Android using JDBC? [closed]
- ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long on connect to MySQL
- Hibernate 5 :- org.hibernate.MappingException: Unknown entity
- Handling MySQL datetimes and timestamps in Java
- Connection to Db dies after >4
- java.sql.SQLException: Access denied for user ‘root’@’localhost’ (using password: YES)
- JDBC MySql connection pooling practices to avoid exhausted connection pool
- How to annotate MYSQL autoincrement field with JPA annotations
- Getting java.sql.SQLException: Operation not allowed after ResultSet closed
- How to store Java Date to Mysql datetime with JPA
- Hibernate: Automatically creating/updating the db tables based on entity classes
- Docker: Combine multiple images
- “Loading class com.mysql.jdbc.Driver … is deprecated” message
- The server time zone value ‘AEST’ is unrecognized or represents more than one time zone
- How to resolve Unable to load authentication plugin ‘caching_sha2_password’ issue
- No Dialect mapping for JDBC type: 1111
- Java JDBC MySQL exception: “Operation not allowed after ResultSet closed”
- Error “A JNI error has occurred. Please check your installation and try again in Eclipse x86 Windows 8.1”
- Is there a way to retrieve the autoincrement ID from a prepared statement
- Running a .sql script using MySQL with JDBC
- Java JDBC Access denied for user [closed]
- How to change MySQL timezone in a database connection using Java?
- preparedStatement syntax error
- LINQ for Java tool [closed]
- Convert BufferedInputStream into image [duplicate]
- Can Hibernate work with MySQL’s “ON DUPLICATE KEY UPDATE” syntax?
- Hibernate: Create Mysql InnoDB tables instead of MyISAM
- How can I use MySQL assign operator(:=) in hibernate native query?
- Invalid syntax error “type= MyISAM” in DDL generated by Hibernate
- How to connect Android with MySQL using Mysql JDBC driver [duplicate]
- runtime error: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- Should a database connection stay open all the time or only be opened when needed?
- How to correctly write UTF-8 strings into MySQL through JDBC interface
- No Database selected when retrieving from mysql website
- JDBC returning MySQLSyntaxError Exception with correct statement
- Connection Java – MySQL : Public Key Retrieval is not allowed
- Problems reading/writing UTF-8 data in MySQL from Java using JDBC connector 5.1
- When are connections returned to the connection pool with Spring JPA (Hibernate) Entity Manager?
- com.mysql.jdbc.PacketTooBigException
- scatter plot in jfreechart from database
- Easiest way to convert a Blob into a byte array