Skip to content
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

Closed
shailendraDev7 opened this issue Apr 2, 2020 · 5 comments
Closed

October CMS unable to connect to the database #5021

shailendraDev7 opened this issue Apr 2, 2020 · 5 comments

Comments

@shailendraDev7
Copy link

I'm struggling to connect mysql database named 'dbsg_october' to the OCTOBER CMS.
ALL my credentials are exactly same but this error.

image

image

@aniket-magadum
Copy link
Contributor

I think this is a problem for mysql 8+. Not sure if octobercms is tested on it

@LukeTowers
Copy link
Contributor

LukeTowers commented Apr 2, 2020

@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

@aniket-magadum
Copy link
Contributor

@LukeTowers thanks for the info

@LukeTowers
Copy link
Contributor

@shailendracool433 see above comment.

@github-actions
Copy link

github-actions bot commented Jun 2, 2020

This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days.
If this issue is still relevant or you would like to see it actioned, please respond and we will re-open this issue.
If this issue is critical to your business, consider joining the Premium Support Program where a Service Level Agreement is offered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants