mysql
services won't start after 9.0.1 update
#5539
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 16 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.
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