-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
MySQL 8.0.11 removed support for old_password #833
Comments
The |
@passcod unfortunately we don't support mysql 8.0 at this time. Our documentation doesn't clarify that at the moment and I'll update it, but from the looks of it a decent amount of things were changed/removed in 8.0 that might cause issues not only with Ghost-CLI, but also with Ghost itself (see: mysqljs/mysql#1959) I'm going to close this issue for now, when we've figured out how exactly to support MySQL 8.0 and we've ensured it works in Ghost itself, we can reopen and fix the issue. |
Fair enough. Just another note that we're now running on MySQL 8. It's not in production and we'll migrate down if necessary, but so far there's been no issue. I edited the setup script to skip the separate password hashing to get up and running, but that was it. |
@passcod hmm that’s good to know - thanks for sharing! |
Lack of mysql 8 support is unfortunate - FYI this prevents ghost use/consideration for Australian federal & state government workloads where there is a requirement to use the latest version. |
Hi, @passcod - I am currently running into the same issue. Would you mind sharing the modified setup script? Since you last posted, have you noticed any drawbacks? I am just trying to run a personal website. Switched over to another server that's running Ubuntu 20.04 (instead of 18.04) and I only seem to have access to different versions of MySQL 8, nothing below that. Many thanks! |
It's been two years, this has been trashed for a long time, sorry! |
No worries! Have a way around it :) |
Could you share? Having the same issue |
Sure! I worked with someone else on this as well, but my "step" in the process was to say "no" to creating a user in the newly made database during the setup. We manually added a user after that, but I don't know if the developer working on that portion of things did anything special with the user we added - I will ask him, just in case. |
@kasindhu, here is the response from my partner: Then manually created a ghost user by manually executing the steps done by the code at: Ghost-CLI/extensions/mysql/index.js Line 83 in 9cb3138
Those are:
Then, manually replaced the mysql user/password from the root user to the user manually created in the file """ Let me know if you have any questions! |
@acburdine 2 years... |
I'm experiencing the same behavior. Still unfixed? |
@ferdi2005 @manuelfedele Unfortunately, there's still an open issue/pr on the upstream mysql driver adding some fixes for MySQL 8 authentication: mysqljs/mysql#2233 I can try and add some smart detection of mysql versions, and have the "old_passwords" bit not run on MySQL 8, but my suspicion is that we'll need to make other updates to the mysql queries we're running as part of the setup process. Also of note - see this comment: TryGhost/Ghost#11625 (comment) about the general support of MySQL 8 in Ghost itself. I can try experimenting a bit with MySQL 8 to see if I can get something working, but it may end up being the case that we need to wait until the node mysql driver is updated. |
note for those watching this issue - I'm working on adding tentative support for MySQL 8 + ubuntu 20.04 support, tracked in #1265 if all goes well, should be able to get that support released sometime this week. |
for those watching this ticket - just released Ghost-CLI 1.15.0 which includes support for Ubuntu 20 LTS as well as MySQL 8. Feel free to raise an issue if you see any problems with it 😄 |
Steps to Reproduce
This error message:
This is because MySQL 8.0.11 removed the
old_passwords
variable! See here: https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_old_passwordsLog file
ghost-cli-debug-2018-10-02T03_29_13_544Z.log
Technical details
Bug submission checklist
Please fill out this checklist to acknowledge that you followed the requirements to submit a bug report.
The text was updated successfully, but these errors were encountered: