Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
547 views
in Technique[技术] by (71.8m points)

mysql - Jmeter showing error : Cannot create PoolableConnectionFactory (Access denied for user 'shubham@localhost'@'118.185.61.226' (using password: YES))

When i have created a JDBC request sampler in jmeter and used jmeter connection configuration element and when i try to create a connection with DB following error is showing again and again can anyone please give me resolution for this?

Error : Cannot create PoolableConnectionFactory (Access denied for user 'shubham@localhost'@'115.248.185.130' (using password: YES))

I am also attaching the screenshot of the error :

THis is the error showing

Configuration element screen shot :

THis is the JDBC configuration element screenshot where ipofDB is my db ip

Can anyone please help me resolving this issue ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It is more about MySQL configuration rather than JMeter. The error you're getting means that shubham user is not allowed to connect from 115.248.185.130 host.

So:

  1. First of all you have incorrect JDBC URL, looking into Connection URL Syntax it should be in form of:

    protocol//[hosts][/database][?properties]
    

    most probably you need to remove phpmyadmin from your URL

  2. Execute the following query on MySQL server side:

    GRANT ALL ON ipofDB.* TO shubham@'%' IDENTIFIED BY 'your password' WITH GRANT OPTION;
    

    This will allow access not only from localhost and 115.248.185.130, but also from any other host just in case you will go for Distributed Testing

References:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...