Skip to content

Instantly share code, notes, and snippets.

View syahzul's full-sized avatar
😑
burnout

Syahril Zulkefli syahzul

😑
burnout
View GitHub Profile
@syahzul
syahzul / how-to-fix-mysql-not-running-on-macos-sequoia-15x.md
Created October 9, 2024 14:22
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)

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.

@syahzul
syahzul / how-to-install-php-oci8-for-macos-ventura-sonoma-and-above-on-apple-silicon-macs-arm64-version.md
Last active January 6, 2025 16:43
How to install PHP OCI8 for macOS Ventura/Sonoma on Apple Silicon Macs (arm64 version)

How to install PHP OCI8 for macOS Ventura/Sonoma on Apple Silicon Macs (arm64 version)

This tutorial will guide you on how to install OCI8 for PHP8.3 using Oracle Instant Client arm64.

1. Install Command Line Tools for Xcode

Run the command below if you haven't installed it on your machine.

xcode-select --install
@syahzul
syahzul / how-to-install-php-oci8-for-macos-ventura-sonoma-and-above-on-apple-silicon-macs.md
Last active November 6, 2024 02:38
How to install PHP OCI8 for macOS Ventura/Sonoma on Apple Silicon Macs - outdated

How to install PHP OCI8 for macOS Ventura/Sonoma on Apple Silicon Macs - outdated

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.

@syahzul
syahzul / how-to-install-oci8-on-macos-monterey-m1-processor-with-php-81.md
Last active May 10, 2024 20:21
How to install OCI8 on macOS (Monterey) M1 Processor with PHP 8.1
@syahzul
syahzul / Laravel-Sail-with-PHP81-and-Oracle-OCI8.md
Last active August 17, 2022 05:11
Laravel Sail with PHP8.1 and Oracle OCI8

Laravel Sail with PHP8.1 and Oracle OCI8

Step 1

Install Laravel Sail in your current project

composer require laravel/sail --dev
@syahzul
syahzul / how-to-completely-uninstall-vscode-on-macos-big-sur.md
Last active July 24, 2021 13:28
How to completely uninstall VSCode on macOS Big Sur

Remove Extensions

To remove only the extensions, run the the following command:

rm -rf ~/.vscode

Now all the extensions will be removed, and you can start from scratch to install the one you need.

@syahzul
syahzul / How-To-Install-OCI8-on-RunCloud-Ubuntu-20.04.md
Last active June 14, 2024 11:01
Install PHP OCI8 on RunCloud Ubuntu 20.04

How To Install OCI8 on RunCloud Ubuntu 20.04

This tutorial only tested with Ubuntu Server 20.04 configured by RunCloud.

Step 1

Visit Oracle Instant Client website and download the following files:

  • instantclient-basic-linux.x64-19.9.0.0.0dbru.zip
  • instantclient-sdk-linux.x64-19.9.0.0.0dbru.zip
@syahzul
syahzul / how-to-install-oci8-on-macos-10.15-catalina-with-php-7.3-7.4-homebrew.md
Last active May 10, 2024 20:22
How to install OCI8 on macOS 10.15 (Catalina) with PHP 7.3 or 7.4 (Homebrew)

How to install OCI8 on macOS 10.15 (Catalina) with PHP 7.3 or 7.4

Requirements

  • Homebrew
  • Command Line Tools for Xcode
  • PHP 7.3 or 7.4 via Homebrew

Preparation

@syahzul
syahzul / install-node.js-v13-and-npm-on-linux-mint-19.2.md
Last active December 1, 2019 16:53
Install Node.js v13 and NPM on Linux Mint 19.2 (Tina)

How to install Node.js 13.x and NPM 6.x on Linux Mint 19.2 (Tina)

Download the file

First, we need to download the file on our computer.

wget https://deb.nodesource.com/setup_13.x

Update entry