com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Unknown command - mysql

I'm trying to create datasource for connection pooling mysql database in Websphere Application Server.
I've set the JDBC Provider, I set the
Implementation class name : com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
my mysql driver version is 5.1.6.
but I got this error while I try to connect the datasource:
The test connection operation failed for data source btn_itb_ds on server server1 at node qnode with the following exception: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Unknown command. View JVM logs for further details.
I have read this http://bugs.mysql.com/bug.php?id=38388 trouble shooting. But they just suggest to upgrade mysql driver version 5.1.X and I have do that. but I've got the same error.

Related

MySQL Workbench 8.0.26 data export SSL connection error 2026

I'm using MYSQL Workbench version 8.0.26 in my server dump in version 5.6.10. I already have the option in the Manage Server Connection "Use SSL = NO", but whenever i connect into it and try to EXPORT DATA, the process fails and the following error is presented:
mysqldump: Got error: 2026: SSL connection error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol when trying to connect
Already tried to reinstall or disabling the SSL again, but no success, still the same error, does anyone have any clue what can it be?

ERROR: Could not load database driver: VerticaEngineSpec

When i want to create a database connection from apache superset 2.0.0 on docker environment to vertica then i get this error
i already installed sqlalchemy-vertica-python library
my connection string is: vertica+vertica_python://user:passwd#host:port/db_name

Conn to Google Cloud SQL instance from CORE w/ proxy: A network-related or instance-specific error occurred. I CAN connect via mysql cmd

I begin by starting goole sql proxy by running following command:
./cloud_sql_proxy -instances=dauntless-gate-xxxxxx:us-central1:redacted-dev=tcp:3306
I SUCCESSFULLY connect from to it from running the following commands:
mysql --host=127.0.0.1 --user=sa --password=<redacted>
or
mysql --host=127.0.0.1 --user=sa --password=<redacted>
I attempt and fail to connect using ASP.net Core 2 w/ the follwing:
startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<UserContext>(opt =>
opt.UseSqlServer("Server=127.0.0.1:3306; User Id=sa;Password=<redacted>;"));
...
}
Error:
SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)
I also try with the following and get slightly different error:
startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<UserContext>(opt =>
opt.UseSqlServer("Server=127.0.0.1; User Id=sa;Password=<redacted>;"));
...
}
An unhandled exception occurred while processing the request.
SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)
An unhandled exception occurred while processing the request.
ExtendedSocketException: No such device or address
System.Net.Dns.InternalGetHostByName(string hostName)
"SQL Server" is the name for Microsoft's SQL server product, which is not the same as MySQL, which running on your instance. You will need to use the MySQL Connector/NET to connect. Check out this page for more specific guidance for Entity Framework.

Installation issues of Jasper Server CE 6.2 on MySQL

I'm trying to install Jasper Server CE 6.2 by following steps specified in JasperReports-Server-CP-Install-Guide.pdf file (3.2 Installing the WAR File Using js-install Scripts)
After updating default_master.properties, when I try test run using js-install-ce.bat test command, then I'm getting below error (extracted from log)
Error Details
do-install-upgrade-test:
[echo] Checking DBMS host and port:
[echo] About to validate port: mysql-db.company.com:3306
[echo] Port 3306 is OK
[echo] Done validating port: mysql-db.company.com:3306
[echo] Validating administrative database connection at jdbc:mysql://mysql-db.company.com:3306/mysql. Phase: [test]
[echo] For JDBC driver the artifactId and version properties are set:
[echo] maven.jdbc.artifactId=mariadb-java-client
[echo] maven.jdbc.version=1.1.2
[echo] Specified JDBC driver jar exists
[advanced-sql] Failed to connect: Could not connect: Access denied for user 'jasper_admin'#'%' to database 'mysql'
[echo] Connection failed:
[echo] SQLState: HY0000
[echo] Vendor specific error code: -1
[echo] Message: [Could not connect: Access denied for user 'jasper_admin'#'%' to database 'mysql']
BUILD FAILED
E:\Software-Downloads\jasperreports-server-cp-6.2.0-bin\jasperreports-server-cp-6.2.0-bin\buildomatic\bin\validation.xml:495: The following error occurred while executing this line:
E:\Software-Downloads\jasperreports-server-cp-6.2.0-bin\jasperreports-server-cp-6.2.0-bin\buildomatic\bin\validation.xml:376: The following error occurred while executing this line:
E:\Software-Downloads\jasperreports-server-cp-6.2.0-bin\jasperreports-server-cp-6.2.0-bin\buildomatic\conf_source\db\mysql\db.xml:65: The following error occurred while executing this line:
E:\Software-Downloads\jasperreports-server-cp-6.2.0-bin\jasperreports-server-cp-6.2.0-bin\buildomatic\bin\validation.xml:434: The following error occurred while executing this line:
E:\Software-Downloads\jasperreports-server-cp-6.2.0-bin\jasperreports-server-cp-6.2.0-bin\buildomatic\bin\validation.xml:470: Database doesn't exist. Treating problem with JDBC connection as unrecoverable
DB Details from default_master.properties file
# database type
dbType=mysql
# database location and connection settings
dbHost=mysql-db.company.com
dbUsername=jasper_admin
dbPassword=jasper_admin_password
# additional database parameters
# (uncomment these if you want non-default settings)
dbPort=3306
# JasperServer db name, sample db names
js.dbName=jasper
# sugarcrm.dbName=sugarcrm
# foodmart.dbName=foodmart
Note: User jasper_admin already exists in DB and this connection is tested successfully. Database jasper exists as-well.
I can't connect as root access! Please suggest me if there is any work-around.
Thanks a ton in advance for your help.
[update] In error log, I can see below error
Could not connect: Access denied for user 'jasper_admin'#'%' to database 'mysql'
but where I can see what code Jasper build scripts are using to verify this? because, I can connect to MySQL DB using same user via MySQL Client.
Issue was with MySQL user "jasper_admin". This user should have access to internal database mysql. Best case is try installing Jasper using MySQL "root" user.

WildFly 8 can't connect to MySQL after restart

My enviroment has the following servers: WildFly 8.0 and MySQL 5.5.32.
The database server is stopped and started every night for backup procedures. After that, I'm getting the following error in my WildFly Log:
09:52:38,136 ERROR [stderr] (default task-11) gate.error.APPLError: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
I have five configured datasources between these servers, but only one has this problem.
I'm not using JPA.