Install MySql 8.0.30 on Zsh Shell | zsh: command not found: MySql (Resolved) on MacOS M1/M2
HTML-код
- Опубликовано: 6 окт 2024
- 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 Download URL - dev.mysql.com/...
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.
Thankyou mate for the Solution. Really to the point video!
Thank you so much Prashant it was big help for me, keep making such videos
👍👍
Glad to hear that
Thank you so much, after lots of video , this video solved my problem.
I appreciate this video! It helped me resolve my issue.😀
You Made My Day!
Thank you so much:)
Thank you man! You helped me so much!
bro thank you
😀
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.
To open a new page in Mac - CMD + T, Link i have already shared in video desc.
Thanks, it works
Ty bro this very helpful for me 😊
Happy to help👍🏻
how to import large datasets into mysql on Mac . please help
command not found again showing
At which Step
Thankyou so much
can you please tell which text editor are you using.
BBEdit
@@prashantrana546 thanks
Thanks bhava
I followed the same path as ypu did. but it is showing the same problem command not found. can you help me?
Have you checked in System Settings MySQL is Installed or not, If yes Kindly exit and quit your terminal and then start mysql and try with the Command
@@prashantrana546 Yes it worked. i restarted the mac. Thank you so much.
Yeah Mate no worries👍🏻
Can you help me... I followed your steps but when I clicked on the pkg installer it says “mysql-8.0.32-macos13-x86_64.pkg” 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..
Shannon, if you're using MacOS Intel Based Chip, then you have downloaded the correct pkg, And you need to Just Allow the Popup after double clicking the .dmg file. As MacOS will ask on every downloaded file from Internet.
@@prashantrana546 Ok. Thank you!
Helpfull
I can't get .zshenv??
You can create one, Using vi zshenv, And then enter the data and save the file
Sir I have a bug in MySQL
What?
@@prashantrana546
It not showing tables in MySQL
And after quit from MySQL it showing
MySQL report for MySQLworkbench
@@OgguMohan1511Ok after, selecting specific database, it's not showing any tables, can you create a new one and then try
command not found again showing