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.

Menu