The efficiency of php connecting to remote server mysql is too slow, how to solve it?

linux server, a master server, the speed of using
tp5 to connect to the website opened by mysql, is too slow, how to solve it?
skip_name_resolve
this part of the code has been added
clipboard.png

Sep.01,2021

depends on whether the link between your two servers is slow. If it's slow, there's nothing you can do about it. Or put the mysql on the web server, or change the server in the same computer room to do the mysql server.

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