IDEA failed to connect to virtual machine msqlserver

the database to the right of idea cannot connect to the mysql service in the virtual machine

the same step is used to install a mysql service on the cloud server, but the connection to the virtual machine will fail, and it should not be a problem with the driver version. The error message is as follows:


the error message looks like a network that is not connected to the virtual machine, but I can ping the same virtual machine in the cmd of windows.
in addition, login to the mysql account has been authorized. I hope to have some experienced guidance. Thank you!

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Jun.22,2022

Port firewall of mysql on virtual machine is open

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-1eb153a-2348.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-1eb153a-2348.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?