Not Solved [Error Message] MyBB not connecting to mysql database
#4
Not Solved
https://www.php.net/manual/en/mysqli.construct.php about mysqli::_construct (also applied to mysql_connect that is used by MyBB) says:
Quote:passwd

    If not provided or NULL, the MySQL server will attempt to authenticate the user against those user records which have no password only. This allows one username to be used with different permissions (depending on if a password is provided or not).
Seems for mysqli_connect, it's different from mysql_connect where PHP will try to use no password if an empty string is passed.

So, as @.m. has suggested, set a password for your user.

However, MyBB should have made it clear whether or not an empty password for database is applicable.


OK. I tried installing a MyBB instance on PHP 7.1.33 + MySQL 5.7.28 (with mysqli) on Windows, with an empty password. It's working.

Will OP try to check if that user has relevant privileges on that database?
Could be wrong but worth a try.
Reply


Messages In This Thread
RE: MyBB not connecting to mysql database - by noyle - 2019-12-23, 06:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)