Home » People & Blogs » How to Install MySQL 8.0.30 on MAC OS M1/M2

How to Install MySQL 8.0.30 on MAC OS M1/M2

Written By Prashant Rana on Thursday, Sep 29, 2022 | 05:39 AM

 
In this Video, We're going to see How We Can Download & install MySQL 8 on MAC OS M1/M2 Machines. To Download the MySQL Installer URL - https://dev.mysql.com/downloads/mysql/ MySQL Default Installation Location - /usr/local/mysql-8.0.30-macos12-arm64/bin Terminal Commands - Check Shell Installed on Machine - echo $SHELL Create Bash_Profile/ZSH ENV File - touch .bash_profile/touch .zshenv (Create Shell Depending upon Default Shell on your Machine) Open Bash File - vi .bash_profile/vi .zshenv Export Command for MySQL - export PATH=${PATH}:/usr/local/mysql-8.0.30-macos12-arm64/bin MySQL Commands - First We Need to Open the Terminal and Write MySQL Command - mysql -u root -p Command to Check Databases - show databases; SQL Command to Create Database - create database database_name; Use Specific Database - use database_name; #mysql #sqlserver #sql