Install MySql 8.0.30 on Zsh Shell | zsh: command not found: MySql (Resolved) on MacOS M1/M2

preview_player
Показать описание
In this Video I will be showing you the Steps how you can Install MySql on your MacOS Machines M1/M2.
And If you are getting this kind of problem "zsh: command not found: mysql", Then I have also shown you how you can resolve that error by following the Steps in adding up the Path in Terminal.

MySQL Default Installation Location - /usr/local/mysql-8.0.30-macos12-arm64/bin

Terminal Commands -
Check Shell Installed on Machine - echo $SHELL

Check Shell Installed on your Machines - cat /etc/shells

Create Shell File =
Create Bash_Profile/ZSH ENV File - touch .bash_profile/touch .zshenv (Create Shell Depending upon Default Shell on your Machine)
We can also create .zprofile rather than .zshenv File.

Open Bash File - vi .bash_profile/vi .zshenv

Export Command for MySQL - export PATH=${PATH}:/usr/local/mysql-8.0.30-macos12-arm64/bin

Exit Terminal Command - exit

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 #shell #zshell #java
Рекомендации по теме
Комментарии
Автор

THANKS MATE!! I WAS HAVING TROUBLE WITH THIS FOR A DAY, I FORGET TO START THE MYSQL FROM SETTINGS.

ESTUDIO
Автор

Thankyou mate for the Solution. Really to the point video!

mohitjain
Автор

Thank you so much Prashant it was big help for me, keep making such videos
👍👍

ashutoshsingh
Автор

I appreciate this video! It helped me resolve my issue.😀

vaishnavimore
Автор

Thank you so much, after lots of video, this video solved my problem.

dorlyzr
Автор

how to import large datasets into mysql on Mac . please help

snehashekar
Автор

Please how do you open the new page? After I copy the Where: link, I l do not understand how do you open a new page because you pass very fast that step and you do not explain how you do it.

valbonamargjoka
Автор

Can you help me... I followed your steps but when I clicked on the pkg installer it says cannot be opened because it is from an unidentified developer. macOS cannot verify that this app is free from malware. so I can't get pass the download..

shannonlee
Автор

can you please tell which text editor are you using.

randhir
Автор

I followed the same path as ypu did. but it is showing the same problem command not found. can you help me?

harshvohra