hanging at "at com.mysql.jdbc.Driver.(Driver.java:63)" (no replies)
We use mysql-connector-java-commercial-5.1.16-bin.jar, Our code like below public static void init (String className, String connString) { // This is a recommended hack to prevent JVM errors. No...
View ArticleWhere to write a file in Tomcat 8 and Servlet /JSP on my Hard Disk ? (no...
Hi all, I want to write my.properties file. My query is that “In which path it should be created”. I have installed glassfish on my Linux 14.04 machine on this path: /opt/glassfish4 and created the...
View ArticleFlush Hosts Didn't Work (4 replies)
I am a complete MySQL newbie. I've taken two training course but have very little in the way of hands-on experience but have been given responsibility for a MySQL installation that was configured for...
View ArticleoooBase Multi User Base Reports not Locking / Staying with user...
I have upgraded an OpenOffice Base to serve to Multi Users from MYSQL on my Local but Remote Server to a number of terminals set up to connect a Open Office Base front-end via JDBC The server is a...
View ArticleDriverManager.getConnection is too slow in linux (1 reply)
Hello, I'm Jack and using MySQL for my study. i'd like to ask a question i found today. before get started, my environment like this. MySQL server version : 5.2.8-MariaDB os: Windows ?? Java...
View Articlejava tutorial (no replies)
javaTpoint provides easy and point to point learning of various tutorials such as Java Tutorial, Core Java Tutorial, Android, Design Pattern, JavaScript, AJAX, SQL, Cloud Computing, Python etc....
View Articlephp points (no replies)
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.
View Articlecharacter set encoding bug in connector 5.1.36/5.1.37? (no replies)
I have a java app that puts tweets into mysql. On 5.1.36/5.1.37 when i try to insert something with an emoji, e.g. U+1F603, it throws an exception, namely: Incorrect string value: '\xF0\x9F\x98\x83'...
View ArticleMySQL/JDBC connectivity issue (1 reply)
I have three RHL (2) and CentOS (1) environments, at disperse locations with MySQL 5.5.42 or higher installed. I am able to make MySQL DB connection using SSH via MySQL workbench and putty both. But...
View ArticleDetect datetime precision (1 reply)
I am looking for someway to tell the difference between datetime and datetime(3) using the JDBC DatabaseMetaData. I tried the following rs = connection.getMetaData().getColumns(null, null, tableName,...
View ArticleRules of thumb for field sizes? (no replies)
When designing tables, are there rules of thumb for field sizes? At the moment, while I am designing my Java application I defined my (for example) address table as: CREATE TABLE address (add_id int...
View ArticleNOLOCK for multiple tables (3 replies)
Hi, I am trying to apply NOLOCK syntax for my extraction query why because i am trying to load millions of records using one of the ETL tool called as PDI. in this case i am trying to retrieve data...
View ArticleIs jdbc replication driver slower than normal jdbc driver ? (4 replies)
Hi, I configured jdbc replication driver for mysql replication. But, It was slower than normal jdbc driver. Is it right? jdbc replication driver is slower than normal jdbc driver? Is there any options...
View Articleclass not found error (no replies)
I have installed the newest jdbc driver for mySQL. It appears in my .classpath <classpathentry kind="lib" path="src/lib/mysql-connector-java-5.1.38-bin.jar"/> I can establish a connection to my...
View ArticleJDBC: Can't access DB that I can get with MySQL Workbench (5 replies)
I am having trouble connecting to my datasource using JDBC. I have a database server running on a bluehost machine, and I am giving myself remote IP access via my IP address. On my client machine, I...
View ArticleDatetimes after a server timezone move (2 replies)
We have a legacy database containing many DATETIME columns, and is configured in the PST timezone. We intend to migrate this database to UTC (Amazon RDS). Using the 5.1.38 connector, a test database...
View ArticleInsert if exists (4 replies)
I'm trying to test my Java application. To accomplish this I run a script that should insert a test account in the database, if it not exists. If it exists, I want it to update fields (to the first...
View ArticleJDBC neglects SET GLOBAL sql_mode = '' settings (2 replies)
I have a query that used to work at older MySQL versions but stops functioning on version 5.7 due to the "sql_mode=only_full_group_by". I bypassed this error by writing sql_mode = '' in my.cnf. Now...
View ArticleConnector/J query JSON Type as String using character-set iso-8859-1? (no...
The mysql json data type after 5.7.8 is great, but when I select the json column from java, it's not utf8mb4 what I want, it's always iso-8859-1.I must convert it to utf8 by new...
View ArticleHow to write java code to get the version info of Mysql connector/J (2 replies)
There is some bug for some version of MySQL connectors/J. And we want to write some code to protect it or avoid to use this version of MySQL connector/J. Is there any java code example that we can get...
View Article