mysql
services won't start after 9.0.1 update
#5539
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 20 replies
-
This is due to Homebrew never releasing a MySQL 8.4 version and you can only upgrade to 9.0 from 8.4. My fix:
|
Beta Was this translation helpful? Give feedback.
-
Does it means what everyone who previously had mysql, installed by brew, will run into it? For the most of the users it's safe now to make something like
to avoid autoupdate to the 9.0, and spend weekends to safe upgrade, because right now I already lost the half of the day. |
Beta Was this translation helpful? Give feedback.
-
Just for completeness' sake ... I had found this in
In case it helps to identify the problem, for anyone who runs into this, as well. MySQL does not allow the 8.4 version to be skipped and is obviously able to detect that. |
Beta Was this translation helpful? Give feedback.
-
To revert to mysql 8.3: export HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_FROM_API=1
brew update
curl -o "$(brew formula mysql)" https://raw.githubusercontent.com/Homebrew/homebrew-core/579f331b486821a037eccd3cb36832b18141b5b3/Formula/m/mysql.rb
brew reinstall mysql (this will leave your brew repo with uncommitted modifications which |
Beta Was this translation helpful? Give feedback.
-
mysql 8.4 is now available: brew services stop mysql
brew install [email protected]
brew services start [email protected] and then you should be able to just stop/start to migrate to 9, if you want to brew services stop [email protected]
brew services start mysql |
Beta Was this translation helpful? Give feedback.
-
So here's the short answer. The long winded one is just above. I went from 8.3 to 9.0.1 and everything stopped. mysql> SELECT user, host, plugin FROM mysql. user WHERE plugin = "mysql_native_password"; FLUSH PRIVILEGES; then for each user you want to alter.. (all of them?) ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'xxxxxxxx'; Check them all with; and it works. |
Beta Was this translation helpful? Give feedback.
-
see my post here. It’s this problem exactly.
#5539
…----------
Robert Chalmers (YouTube Creator)
***@***.***
***@***.***
On 7 Aug 2024, at 14:46, konnano ***@***.***> wrote:
Try editing $(brew --prefix)/etc/my.cnf
—
Reply to this email directly, view it on GitHub <#5539 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AA6KCQV7OVYYKQ3UFFUFW7TZQIQLTAVCNFSM6AAAAABL7FWH42VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMRWGUYDQMA>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
I got this error yesterday when trying to connect to my mysql database after getting it running. There is a lot of conflicting information on the web due to how you download mysql, versions, which OS you’re on, etc. The steps below worked for me, and can probably work for you, too! However, you will need to install HomeBrew if you don’t have it already.
Above remove mysql will not remove databases, So you can easily run the above commands.
Once you installed the latest version of mysql then try to see the folder of mysql installation by running
It should show like this one "/opt/homebrew/bin/mysql"
This has resolved socket and PID error for me. Thanks |
Beta Was this translation helpful? Give feedback.
-
Didn't ask for 9 Wound up with 9 anyway, without being offered a choice Discovered when my projects stopped working, because mysql failing Hombrew situation normal, all fcked up, again With any other package manager, I have to jump through some hoops to be sure a major version upgrade is actually the desired outcome and result. Not brew. How many issue reports and discussions spawned from this? |
Beta Was this translation helpful? Give feedback.
This is due to Homebrew never releasing a MySQL 8.4 version and you can only upgrade to 9.0 from 8.4.
My fix:
/usr/local/mysql-8.4.2-macos14-x86_64
)<path to mysql>/bin/mysqld_safe --datadir=$(brew --prefix)/var/mysql
(e.g./usr/local/mysql-8.4.2-macos14-x86_64/bin/mysqld_safe --datadir=$(brew --prefix)/var/mysql
)mysqladmin shutdown
brew services start mysql