Fresh install of 4.5.2 MySQL DB Build Failure

Please help with some advice to get past the DB build connectivity road block.

After a fresh composer installation in /var/www/html/ss the "
vendor/bin/sake dev/build" run from /var/www/html/ss throws an error.

The error is: Couldn’t connect to MySQL database | No such file or directory at /var/www/html/ss/vendor/silverstripe/framework/src/ORM/Connect/DBConnector.php:64

MySQL connective with the .env settings works fine from MySQL command line.

Have not found any clues on debugging this issue. PHP is 7.3.4. MySQL 8.0.18, CentOS Linux 7.7.1908.

1 Like