The connection between the Docker Jenkins container and the MySQL container. The plug-in connection succeeded, but the application connection failed.

The host in the Audit to Database Plugin
URL in the

Jenkins container uses the name of MySQL container, or the private IP in the docker network has been connected successfully.
Java app, write in URL. If you use the container name, report
java.net.UnknownHostException: db (db is the name of MySQL container)
if you write a private address, report
java.net.SocketTimeoutException: connect timed out
two containers are connected in the same bridge network of docker

.
Apr.05,2021

successfully changed host in URL to host IP

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea9e88-1f94.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea9e88-1f94.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?