regexr icon indicating copy to clipboard operation
regexr copied to clipboard

Fix mysqli error when deploying

Open f0rb1d opened this issue 5 years ago • 1 comments

When deploying without this fix, the website would show a mysqli connection error on PHP 7.4. Removing unnecessary arguments fixes this issue.

f0rb1d avatar Dec 03 '20 15:12 f0rb1d

I took a different approach to fix this, and instead added the missing macros in Config.php:

define('DB_PORT', 3306);
define('DB_SOCK', '');

Since Config.php is a config file, this resolves the issue without having to modify the source code, and also provides the ability to connect to the DB over a socket or a different port if needed.

skaven81 avatar Apr 02 '21 21:04 skaven81