you can connect to the database in the local phpStudy environment, so why do you report an error when you put it on a network server?
the following is the request code:
there is no problem locally. Just get in touch with PHP for the first time .