Logo

dev-resources.site

for different kinds of informations.

How to Fix MySQL Not Running on macOS Sequoia 15.0

Published at
11/1/2024
Categories
mysql
macos
Author
syahzul
Categories
2 categories in total
mysql
open
macos
open
Author
7 person written this
syahzul
open
How to Fix MySQL Not Running on macOS Sequoia 15.0

If you've recently upgraded to macOS Sequoia 15.0 and are experiencing issues with MySQL not running, you're not alone. This guide will walk you through the steps to resolve this issue, especially if you're upgrading to MySQL version 9 or above.

You might encounter error messages like this:

ERROR 2002 (HY000): Can't connect to local server through socket '/tmp/mysql.sock' (2)
Enter fullscreen mode Exit fullscreen mode

The root cause lies in the significant architectural changes introduced in MySQL 9.0. Upgrading directly from older MySQL versions (pre-8.4) to 9.0 or later often bypasses crucial compatibility steps, leading to startup failures.

Here's the solution, broken down into actionable steps:

Stop MySQL 9.x

Stop the existing MySQL service: If you have a currently running MySQL service (even if it's malfunctioning), stop it first:

brew services stop mysql
Enter fullscreen mode Exit fullscreen mode

Install MySQL 8.4

We need to install MySQL 8.4 on our machine.

brew install [email protected]
Enter fullscreen mode Exit fullscreen mode

Start and Stop MySQL 8.4

Briefly start and then stop the MySQL 8.4 service. This crucial step performs necessary database migrations and prepares the system for the final upgrade.

brew services start [email protected]

brew services stop [email protected]
Enter fullscreen mode Exit fullscreen mode

Start MySQL 9.x

Now, start your desired MySQL version (9.0 or later). It should now launch correctly:

brew services start mysql
Enter fullscreen mode Exit fullscreen mode

Remove MySQL 8.4

Finally, you can safely remove MySQL 8.4 from your system.

brew remove [email protected]
Enter fullscreen mode Exit fullscreen mode

By following these steps, you can resolve the MySQL startup problem on macOS Sequoia 15.0.

macos Article's
30 articles in total
Favicon
Building a BLE Real-Time macOS Menu Bar App
Favicon
From Core Audio to LLMs: Native macOS Audio Capture for AI-Powered Tools
Favicon
New version for my osxiec project
Favicon
Setting Up NeoVim + LazyVim on My New Mac Mini M4 đŸ’ģ✨
Favicon
Mixing Objective-C and C++ in macOS to Build a Camera-Based Barcode Scanner
Favicon
🚨 Attention Docker Users on Mac 🚨
Favicon
Fixing docker's malware warning on macOS Sequoia
Favicon
🚨 Attention Docker Users on Mac 🚨
Favicon
Developing on MacOS - Best practices
Favicon
How to Transfer PostgreSQL Database from Local to Supabase on macOS
Favicon
Customize iTerm
Favicon
Using Vim Navigation (h, j, k, l) as Arrow Keys on Mac with Karabiner-Elements
Favicon
How to Run Safari Browser without CORS Restriction
Favicon
A python script to uninstall pkg on MacOS
Favicon
Synchronized 变量在不同操äŊœįŗģįģŸįš„ä¸åŒčĄŒä¸ē
Favicon
How to Build a macOS Barcode Scanner App Using SwiftUI and C++ Barcode SDK from Scratch
Favicon
Transform Your Terminal with eza: The Upgrade ls Deserved
Favicon
The Ultimate Hack to Simplify Ctrl and Cmd Shortcuts Between Windows and Mac
Favicon
ā¸­ā¸ąā¸žāš€ā¸”ā¸—āš€ā¸§ā¸­ā¸ŖāšŒā¸Šā¸ąāšˆā¸™ Container runtime Colima
Favicon
Resolving MongoDB Error When Starting with Homebrew on macOS
Favicon
Allowing any app on macOS
Favicon
Installing Go on Windows 11 in One Command
Favicon
How to Run Google Chrome without CORS Error
Favicon
Hot Keys on Mac
Favicon
Must-have apps and services in 2024
Favicon
App Permissions on macOS Sequoia
Favicon
Proxy macOS traffic + spoofDPI of direct connections
Favicon
Hacking WKWebview and WebContainers // or WebContainers are we there yet?
Favicon
How to Fix MySQL Not Running on macOS Sequoia 15.0
Favicon
How to Set Up MySQL to Autostart on macOS: A Step-by-Step Guide for Developers

Featured ones: