Issue
So first of all I'd like to say I have very little knowledge about how servers work and how mysql databases are actually used on a windows computer. I just have some basic knowledge about database and how to use some sql queries. Also I think I have resolved this issue, but I am confused about what actually happened
The problem:
I downloaded a local WAMP server for my web programming class and I was able to login to the mysql with phpMyAdmin at first. But for whatever reason now this would happen everytime:
After reading through various threads and trying a few things I came to this solution(though none of those threads had this exact solution shown and explained well):
- I go to search and type in run
- I type in services.msc and run it
- I find "MySQL80" and see that it is running. So I right click it and click "Stop"
- go to wampserver icon in taskbar and click restart all services
- go back to login screen for phpMyadmin and the login works now
So my guess as to what is wrong: A few semesters ago I downloaded mysqlworkbench and used it for a different class. According to the services.msc when I click properties on "MySQL80" it shows path to executable "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe". My wampserver is located "C:\Wamp64" so maybe there are 2 different databases on my computer trying to use the same port (3306?) and since the "MySQL80" service runs automatically, it prevents the wamp from signing in? I found that setting the "MySQL80" to disabled instead of automatic allows me to sign into wamp mysql when restarting my computer without doing those steps
Can anyone clarify what was actually happening? Will I now not be able to use mysqlworkbench until I start the service again? should I get rid of that service "MySQL80"? Thank you
Solution
The specific error message you're seeing when trying to log in through phpMyAdmin means that your PHP version is not compatible with the new authentication method used by your MySQL server. I believe MySQL made the change with version 8.0.11, but most documentation says it was applied start with MySQL version 8.0. To access a MySQL version newer than that, you must use a PHP version 7.4 or newer.
However, your assessment is correct; based on the paths you have two MySQL versions running on the same system, which will cause conflicts. WAMP comes with its own MySQL (in C:\Wamp64
), and you also have installed MySQL on your own (to C:\Program Files\MySQL\MySQL Server 8.0
). At best, you should select one to disable from starting automatically, but the best solution is to remove one (you should, of course, first export any existing data as a .sql file so you can import it to the one you leave behind). Since you're using WAMP, I would suggest removing the official standalone MySQL 8.0, because otherwise you'll have to spin up your own webserver and PHP instances to replace what you remove with WAMP.
You're certainly able to turn each one on or off manually or run them on different ports so that they'll both start at the same time, but I don't see that you need such complexity on your system.
Answered By - Isaac Bennetch
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.