Cannot connect to MySQL - Socket Error (v2021)

Hi there,can you help me, my phpmaker 2021 can’t connect to MYSQL database.
it says “lost connection to MYSQL during query. Error on data reading from the connection: Socket Error Code: 10060($274C)”
but it can be accessed by using phpmyadmin or looker studio. Thanks

You may refer to the documentation: Database Setup → MySQLYou might also try: Tutorial - Connecting Remote MySQL/PostgreSQL using tunnel.php

Still not working, same error when using tunnel.php, even when passed the url test.

If you use MySQL on Linux, you may google “How To Troubleshoot Socket Errors in MySQL”.

i’m using windows server 2019

Then make sure you have configured your MySQL server to be connected by TCP/IP.