Let's start by stopping the currently running MySQL database.
$ sudo systemctl stop mysql.service
Next, create set proper permission to the folder to be used by MySQL process to store and access socket file.
$ sudo mkdir -p /var/run/mysqld
Let's start by stopping the currently running MySQL database.
$ sudo systemctl stop mysql.service
Next, create set proper permission to the folder to be used by MySQL process to store and access socket file.
$ sudo mkdir -p /var/run/mysqld
Sources:
This tutorial only tested with Ubuntu Server 20.04 configured by RunCloud.
Visit Oracle Instant Client website and download the following files:
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:
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.
In Terminal, there is no automatic detection for missing Rosetta to run older architecture command line tools.