JBOSS 5.1 connect with MySQL 5.7 over SSL/TLS - mysql

I have an ejb application deployed in JBOSS 5.1 Application server which connects to MySQL 5.7. I am using datasource as below
<local-tx-datasource>
<jndi-name>MyDataSource</jndi-name>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<connection-url>jdbc:mysql://localhost:3306/myejbtest</connection-url>
<user-name>myuser</user-name>
<password>mypass</password>
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
How can I make this connection over SSL/TLS?
Note:
I tried following below links but couldn't get it working:
https://developer.jboss.org/thread/273512
https://docs.cpanel.net/knowledge-base/security/how-to-configure-mysql-ssl-connections/

Related

ZKTime Web cannot connect to MySQL

I installed Xampp and lauchd the Apache and MySQL services. After that, while installing the ZKTIME + WEB 2.0 and configuring the server to connect to MySQL DB, it says Unknown Error
Is there a way to fix this?
If you are connecting to OLD version DB then please note that Old and New version DB schemas are different. I am getting same error.
If you try to connect after installation through WDMS server Management. Connection will be made but the WEB portal won't work because of schema difference.

Spring Boot Connection to MySQL on remote SSH server

I am trying to connect to MySQL server at remote machine using spring-boot application.properties but it is failing with error o.s.b.a.orm.jpa.DatabaseLookup: Unable to determine jdbc url from datasource.
My database URL is in the correct format. Remote Server requires ssh connection and I have connected it successfully using MySQL Workbench. For connection via spring-boot app, I checked solutions and implemented JSCH solution as explained in post:
Spring Boot SSH Mysql? but still no success.
Remote Server SSH port is 202 instead of default 22. Any help on how to connect DB?
Please refer information mention here -
here
or
stackoverflow page

Connect to Azure MySQL Database using MySQL Workbench

I have a Web App running on Azure. I can connect to the DB with Visual Studio and sending/retrieving data on my app works fine.
However, I can not connect to the MySQL db using MySQL Workbench.
The error that I have is
Lost connection to MySQL server at 'reading initial communication packet', system error: 54
I have whitelisted my IP on the azure portal and opened the port 1433 on my computer. I don't understand why can't I connect using MySQL Workbench while having no problem with Visual Studio.
EDIT:
Here is how i have setup MySQL Workbench:
And Here is my Azure portal:
I'm using port 1433 because that is the port given on the Azure Portal, but also in this tutorial: Connect to Azure DB using MySQL Workbench
Ok - now that you included screenshots: You're trying to use MySQL Workbench to connect to a SQL Database (which is SQL Server as a service, not MySQL).
Edit: 8/15/2017
Azure now offers Azure Database for MySQL which is currently in public preview.
In your specific case, you created a SQL Database, which cannot be manipulated with MySQL Workbench.

GSA do not connect to the database that use specal instance

We are working on a GSA project. We are using GSA version 7.2 and Connector database adapter 3.2.4. The problem we are facing is that:
- We are crawling data from a MSSQL database 2008 R2. Instance of database is not the default. That is not the instance 'SQLEXPRESS'. And GSA do not connect to the database.
Have you added JDBC connection URL: DB_HOST_NAME_OR_IP:1433;databaseName=Database Instance Name

Disable MySQL secure_auth client option with ZeosLib

I'm trying to connect to a remote MySQL server and i get this exception error:
*Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)*
I'm tried to disable the "secure_auth" option by adding the string "MYSQL_SECURE_AUTH=false" to the TZConnection properties, but i get the same error.
I'm using ZeosLib 7.0.4 and Delphi 7. The server has MySQL 5.0.95
Problem solved!
The server is MySQL 5.0.95 (secure_auth disabled) and I was using libmysql.dll 5.6.11 (secure_auth enabled by default). Placing the libmysql.dll 5.0 in the app folder solved it.
I don't understand yet why i can't change the "MYSQL_SECURE_AUTH" at TZConnection.properties.