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 broken - Not able to login after installation #2870
Comments
hi @sanjeev8386 , i've noticed that firefox will save the mysql username password instead of the openemr login on the setup page, suggest you try to reinstall |
Hey @stephenwaite , I have reinstalled it around 10-12 times but there is no change, always showing incorrect username or password. please do something for it. I have installed it through chrome browser.I am trying to install it through firefox. if it will not work i will get back to you. |
Hey @stephenwaite , I have reinstalled it through firefox but the result is same. |
hi @sanjeev8386 , what version are you trying to install? |
hi @sanjeev8386 , |
Hey @bradymiller I am using mysql 8.0.18 version, and I am also able to connect it with the database |
hi @sanjeev8386 , |
2 quick questions:
|
Also, What PHP version are you using? |
btw, this will be a good launching point into ensuring MySQL 8 support especially since next LTS ubuntu release (20.4) will be going to MySQL 8. |
Yep, some MySQL 8 weirdness going on:
This should be basically done here during installation: This is definitely concerning what else bugs could be looming in mysql 8. Will make it clear that OpenEMR does not work for MySQL 8 on the download page until we get fixed packages up. |
Did a install with gacl debug turned on and looks like this is the issue: So, appears this query is breaking in mysql 8: As MariaDB and MySQL diverge, guessing these things will keep cropping up. To avoid this, will add Mysql 8 along with all supported versions to travis functional testing (the functional testing is very limited, but it at least test login, which is failing on the mysql8 travis test i just added: I think i am going to add testing jobs for all supported versions of mariadb and mysql to try to prevent these issues (and will get even better when have more functional testing in place @zerai (hint, hint :) ). Doing this will likely bump up the travis test time from 10 min to 15 min, but maybe we can convince travis to give us a higher concurrent job limit (currently 5). And of course will figure out why this query is breaking in mysql 8. |
lol, |
btw, very interesting fact on this. Per the mysql docs: |
Brought in fix that is working well. It will also go into next 5.0.2 patch and will plan to rebuild the packages if MySQL 8.0.19 is not out yet (and confirm old code works on it). |
In case it helps the discussion, I had no problems with PHP 7.4.2 and MySQL 8 (other than PHP warnings during actual execution of OpenEMR code). However, when I downgraded to 7.3.14, it could not talk to MySQL 8 for the initial OpenEMR setup until I did Also, it looks like my observation is validated by @bradymiller 's screenshot from Travis tests that show PHP 7.3.x failing with MySQL 8. So hopefully what worked for me should work for others. I'm contributing to OSS discussions for the first time, let me know if you have any feedback. |
hi @sarafgaurav , Thanks for your observation, congrats on your first OSS discussion contribution, and welcome to the OpenEMR community! Here's an updated travis screenshot with a nice green checkmark for mysql 8: The But there was still this related bug in 7.4.1 here: I still need to set it even with PHP 7.4.2 on OpenEMR or weird things happen (such as in the docker that does the travis testing: https://github.com/openemr/openemr/blob/master/ci/apache_73_8/docker-compose.yml#L6-L7). Hopefully it will be sorted out before Ubuntu 20.4 gets released which will use mysql 8 by default. -brady |
Re: "Hopefully it will be sorted out before Ubuntu 20.4 gets released which will use mysql 8 by default." The more reason for us to get OpenEMR working with Mysql8. |
this is no longer needed in Mysql 8 |
Are we have any idea to avoid firefox save the MySQL username, password instead of the OpenEMR login username and password? |
good point @stu01509 , let's create a new install issue |
I would like to solve it, Please assign the issue to me after you created an issue. |
This issue has been automatically marked as stale because it has not had any recent activity within the past 90 days. It will be closed in 7 days if no further activity occurs. |
This issue has been automatically closed because it has not had any recent activity within the past 97 days. |
I have installed it using the installation instructions of linux, but after installation when I try to login, then it shows always invalid username or password, but i am using the correct one. Please help to fix this, i don't know php otherwise i will try to fix the source code.
The text was updated successfully, but these errors were encountered: