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.1lib
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
2
Answers
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.
Execute SHOW VARIABLES command to view
character_set_client
andcharacter_set_connection
variables values:and make sure that your
characterEncoding
is matching Java encodingIf 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