-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
October CMS unable to connect to the database #5021
Comments
I think this is a problem for mysql 8+. Not sure if octobercms is tested on it |
@4nik3t what version of PHP are you using? See https://www.php.net/manual/en/ref.pdo-mysql.php, you have to use PHP 7.2 at least when using MySQL 8.0.4's new default authentication method (https://mysqlserverteam.com/mysql-8-0-4-new-default-authentication-plugin-caching_sha2_password/). You can also switch MySQL to using the legacy authenticator as recommended here: laradock/laradock#1390 (comment), but theoretically as long as you're running >= PHP 7.2 it should work fine. If it doesn't, you might need to switch to using the L6 branch of October (until it gets merged in a couple weeks) which would include the Laravel specific fixes for MySQL 8.0 here: laravel/framework#23948 |
@LukeTowers thanks for the info |
@shailendracool433 see above comment. |
This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
I'm struggling to connect mysql database named 'dbsg_october' to the OCTOBER CMS.
ALL my credentials are exactly same but this error.
The text was updated successfully, but these errors were encountered: