This is a work in progress and may not work correctly. Proceed with caution.
✅ macOS Sequoia 15.3 (Apple M1)
✅ macOS Monterey 12.7 (Intel Core i7)
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)
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.
This tutorial will guide you on how to install OCI8 for PHP8.3 using Oracle Instant Client arm64.
Run the command below if you haven't installed it on your machine.
xcode-select --install
Caution
Finally Oracle release Instant Client for arm64 architecture. Refer new tutorial How to install PHP OCI8 for macOS Ventura/Sonoma on Apple Silicon Macs (arm64 version) here.
Note
If your using macOS Monterey or below, please refer to How to install OCI8 on macOS (Monterey) M1 Processor with PHP 8.1
macOS Ventura and above, duplicating and renaming Terminal.app are disabled by Apple. In order to install the OCI8, we need to switch between arm64 and x86_64 architecture.
Note
If your using macOS Ventura or Sonoma, please refer to How to install PHP OCI8 for macOS Ventura/Sonoma on Apple Silicon Macs
Please note that all installations below must use Terminal with Rosetta:
This tutorial only tested with Ubuntu Server 20.04 configured by RunCloud.
Visit Oracle Instant Client website and download the following files: