Using GeoServer 2.22.1, I am running into a problem when I try to connect to a MySQL8.0.32 database. Both applications are running on the same Ubuntu 20.04.
The error message is : Unable to obtain connection: Cannot create PoolableConnectionFactory (access denied for user xxx#'localhost' using pwd: YES
Following this thread on MariaDB : Connection problem between GeoServer and MariaDB
I tried to add ?useSSL=FALSE after my db name but this leads to another error : Unable to obtain connection: Cannot create PoolableConnectionFactory (public key retrieval is not allowed)
I don't understand what's going on as useSSL set to false should prevent any key to be forsaken. I have looked into MySQL settings in the prompt using mysql --help cmd but I am unsure which setting I should change nor how to change it.
Many thanks in advance
Related
I got below error while try to migrate database from Mysql enterprise version 8.0.23-commercial even I grant all REPLICATION CLIENT, REPLICATION SLAVE to migration user I still got this error and also turn on binlog
[SOURCE_CAPTURE ]E: Error 1045 (Access denied for user 'migration'#'IP' (using password: YES)) connecting to MySQL server 'IP' [1020414] (mysql_endpoint_capture.c:297)
2021-09-28T17:46:20 [SOURCE_CAPTURE ]E: Errors in MySQL server binary logging configuration. Follow all prerequisites for 'MySQL as a source in DMS' from https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.html or'MySQL as a target in DMS' from
https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.MySQL.html [1020414] (mysql_endpoint_imp.c:778)
If migrate full load only via this endpoint it successfully this error found when full load + on going migration
To replicate database migration must use TCP/IP port. You should check this port and run database migration again.
I faced same issue while working on AWS DMS RDS mysql to MSK Kafka data migration. I resolved by configuring mysql source endpoint with Secure Socket Layer (SSL) mode verify-ca.
To get a certificate bundle that contains both the intermediate and root certificates for all AWS Regions, download from https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem.
You can valuvate your error in following doc
https://www.percona.com/blog/2019/07/05/fixing-a-mysql-1045-error/
I am using MySQL Workbench 8.0.18 previously I have installed latest version 8.0.19.
I have added the connectors in \apache-jmeter-5.1.1\lib
If I enter incorrect password then I get this error -- which is expected and correct - Cannot create PoolableConnectionFactory (Access denied for user 'root'#'localhost' (using password: YES))
And If I put incorrect db then I get this
This suggest JMeter is able to connect with MYSQL Workbench but keep getting the error
Cannot create PoolableConnectionFactory (Unknown character set index for field '255' received from server.)
I am able to connect to other MYSQL DB on cpanel DB with pretty much same connection strings.
Please help
This is what my JMETER JDBC Connection String
Execute SHOW VARIABLES command to view character_set_client and character_set_connection variables values:
SHOW VARIABLES LIKE 'char%';
and make sure that your characterEncoding is matching Java encoding
If you're absolutely sure that your connection string is fine then try do upgrade to the latest version of the Connector/J
More information: MySQL Database and JMeter - How to Test Your Connection
It was just a conflicting jar file of JDBC.jar was in my lib folder not sure why I needed and used for but as soon as I removed it connected successfully.
Hi I am trying to setup Owncloud with an external MySQL DB.
In MySQL server - I have changed bind-address= 0.0.0.0 , created a user and granted , flushed privileges.
Now i am able to connect to MySQL from CMD in Owncloud server.
When I try to setup getting an error
" Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1044] Access denied for user ‘oc_root2’#’%’ to database ‘owncloud’ "
Can some one please help.
You should consider using Nextcloud. This is more actively maintained, fully open source and has more features. Setting up Nextcloud via the command line works fine for me. I suggest that you use the setup-nextcloud.php script and everything should be automatic.
I'm unable to create a schema on freshly set-up MySql Cluster 7.4.7 on single windows machine. It fails with error ERROR 1044 (42000): Access denied for user ''#'localhost' to database 'my_schema'. What is it that I'm missing? During installation I was not asked for username and password for MySql, so what are the defaults?
Also to give detail on how I set-up (in case that is not proper), I following this tutorial and using default settings on new cluster wizard, I have been able to successfully run 2 Multithreaded data node (ndbmtd.exe), 1 Management Node (ndb_mgmd.exe), 2 SQL Node (mysqld.exe). I also stopped mysql server 5.5 running on my machine previously. Then, using command line and typing mysql I'm able to connect and show databases; result in 2 schemas:
information_schema
test
Thanks in advance.
After further trying, I've been able to get away with both the problems above:
Instead of create schema, I used create database and it worked.
By default there is no password. I'm able to connect with user as root without any password.
MySQL error:
Failed to Connect to MySQL at 12.34.567.890:3306 with user jsdbadmin
Lost connection to MySQL server at 'reading initial communication packet', system error: 61
Using:
Plesk, SuSE vServer, fresh installation: completly new about an half year ago.
Software:
Trying to connect via MySQL Workbench, current version.
Hostname: 12.34.567.890 (modified for privacy), also tried with domain
Port: 3306
Username: My DB user name, as specified in Plesk when DB was created.
Password: *************
Default Schema: feeds
Tried TCP/IP, TC/IP over ssh.
Searched online:
These settings are not the problem:
#skip-networking
#bind-address = 127.0.0.1
Both already commented out.
Do you have a Firewall blocking the connection ?
You can test by telneting to the mysql port.
you also need to allow the ip/user combos that are allowed to connect
e.g.
to add a new user
GRANT ALL ON jsdbadmin.* TO remoteadmuser#'12.34.567.890' IDENTIFIED BY 'PASSWORD';
or
to grant access to a specific ip
update db set Host='12.34.567.890' where Db='yourdatabase';
update user set Host='12.34.567.890' where user='jsdbadmin';
Another possible (really annoying) error is that the server's public ssh keys have changed since your last login or that you've never logged in to that server using SSH and therefore you must manually approve them.
To solve this:
$ nano ~/.ssh/known_hosts
Remove old server keys from the file. Save & exit.
Connect to the server manually (ie. from terminal) and approve saving the new keys
After successful login from terminal, retry the mysql connection over ssh.
That worked for me...