Hi,
I have obtained the following error when connecting to a database from an external host:
Can not connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I have a website in an external domain and I try to access a database that I have at home. I have a fixed IP in the connection where the database is.
I have Wampserver in windows 10 installed and it works perfectly locally and remotely. The problem appears only when I access from the web that is in an external domain.
WampServer Version 3.1.3 64bit
______________________ Versions used ______________________
Apache 2.4.33 - PHP 7.2.4
MySQL 5.7.21
MariaDB 10.2.14
PHP 5.6.35 for CLI (Command-Line Interface)
Regards,
Anoxe
I have obtained the following error when connecting to a database from an external host:
Can not connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I have a website in an external domain and I try to access a database that I have at home. I have a fixed IP in the connection where the database is.
I have Wampserver in windows 10 installed and it works perfectly locally and remotely. The problem appears only when I access from the web that is in an external domain.
WampServer Version 3.1.3 64bit
______________________ Versions used ______________________
Apache 2.4.33 - PHP 7.2.4
MySQL 5.7.21
MariaDB 10.2.14
PHP 5.6.35 for CLI (Command-Line Interface)
Regards,
Anoxe