Connecting to MySQL from Command Line on macOS and Linux by Spring Framework Guru September 22, 2022, 1:24 am 506 Views 22 Comments Learn how to connect to MySQL from the command line under macOS (OSX) and Linux operating systems. This video is from my online course SQL Beginner to Guru: MySQL Edition. Checkout the full course here! Twitter Facebook Telegram Copy Link See more Previous article Apple: iPhone 14 series supported eSIM has many benefits when traveling Next article POCO M5 220$ Helio G99: Gaming Test Genshin Impact, ToF, Pubg New State 22 Comments Thank you so much !!! Thank you !!!This solution perfectly works 🙂 I was trying to connect to mysql but was always getting zsh: mysql command not foundyour vedio helped me to do it in one go thank you so much thanks homeslice you are bayas I don't like your video if you want money then keep your video to udemy What password do we use? Dude thank you so much after a long search finally worked. thanks🙏 where can I find the password for the root user? It really helps me a lot. Thank u sir Worked like a charm Thanks it worked well ! Thank you so much! It was really precise and useful. Omfg thx ALOT OMG! Life saver!!! Thank you! 😀 Thanks! it's very useful. tysm Thanks for this, Mr. Guru. The solution works perfectly. But it is ephemeral, lasting only for the current shell session. I believe the alias has to go in the .bash_profile or .zsh file in one's home directory for it to persist, . Those files are for people using the bash or the Z shell, respectively. If you don't know what you're using–and it might be a surprise if you've updated your MacOS to Catalina–type echo $0 in the terminal. Then edit the appropriate config file. You can close the terminal window and re-open a new one, or type source .bash_profile or source .zsh to update the current shell instance. You should be all set from then on. Very useful video. Thank you so much!! Very nice style and you cover the important points. Maybe expanding on how to solve for the mysql "alias" problem would help too. alias mysql=/usr/local/mysql/bin/mysqlmysql –user=root -pmysql -u root -p'root' -h 127.0.0.1 -P 3306 -D local Is there anyway we can set it up so we dont have to make alias everytime we use?