For several years I have had a Freebsd 11.3 FAMP jail on a Truenas box for local website development (not a Truenas plugin, but a FAMP jail I created from scratch). A bunch of Wordpress sites sitting next to each other, accessible by the their respective directory paths sitting in the server root. When setting up Wordpress, using PhpMyAdmin or different plugins that need database access, I have always been able to use "localhost" when specifying database credentials.
Yesterday I upgraded the jail to 13.1 in one sweep and then ran
However, on the command line inside the jail I can successfully connect to mysql and view databases using
What might be causing this?
MariaDB was a point release upgrade from 10.4.12 to 10.4.26.
Yesterday I upgraded the jail to 13.1 in one sweep and then ran
pkg upgrade
, mainly in order to upgrade php73 to php74. Since then I cannot use "localhost" anymore. I get errors saying cannot connect to database. I have had to change "localhost" to "127.0.0.1" when specifying credentials and then it works. For instance, in the wp-config.php that lives in each site's root folder and holds database credentials for the site in question. "localhost" always worked in that file but now I need to change it to "127.0.0.1" and then the site loads.However, on the command line inside the jail I can successfully connect to mysql and view databases using
mysql -h localhost -u root -p
. What might be causing this?
MariaDB was a point release upgrade from 10.4.12 to 10.4.26.