How to Install & configure Mysql on a Mac

  Рет қаралды 27,261

ITVidz

ITVidz

Күн бұрын

In this video you will learn how to download, install, configure and run the free version of Mysql on a Mac using Mysql Workbench GUI. You will also learn how to create a user and grant the user privileges, setup a Mysql connection for new users and much more. You will also learn how to startup and shutdown the Mysql server.
This video can be shared using • How to Install & confi...
Download Mysql community server at dev.mysql.com/downloads/mysql/
Download Mysql Workbench at dev.mysql.com/downloads/workb...
Follow the video carefully to setup and run your own instance on your operating system.

Пікірлер: 92
@richarddoughty335
@richarddoughty335 4 жыл бұрын
Thank you, I have been trying all day to get this installed until I found you video and it worked perfectly. I am new to Mac.
@ITVidz
@ITVidz 4 жыл бұрын
Great!
@christianadaniel2751
@christianadaniel2751 4 жыл бұрын
Thank you, very helpful
@Natali-bu4rb
@Natali-bu4rb 2 жыл бұрын
Thank you. Your video is really useful.
@alexandrmefisto1724
@alexandrmefisto1724 2 жыл бұрын
Thank you!) it was useful for me)
@svvij
@svvij 4 жыл бұрын
Good Work...Many thanks :)
@latifyanar2853
@latifyanar2853 4 жыл бұрын
thank you very much, very good explanation.
@ITVidz
@ITVidz 4 жыл бұрын
Thanks
@patienceora150
@patienceora150 4 жыл бұрын
Thankyou this helped a lot
@ITVidz
@ITVidz 4 жыл бұрын
Great
@alfredabate3176
@alfredabate3176 3 жыл бұрын
Thank you so much. Blessings!
@sainiranjan40
@sainiranjan40 3 жыл бұрын
Hello, at 7:23 I am getting "command not found: mysql" error. Tried to quit the terminal and launched new terminal but same error comes up. Please help!
@OlaDevine
@OlaDevine 3 жыл бұрын
Thanks for this wonderful work and may God continue to increase and bless you hand work.
@jserr9682
@jserr9682 3 жыл бұрын
THANK YOU !!!!!!!!!! SO MUCH!!!!
@victoryvictorious633
@victoryvictorious633 4 жыл бұрын
Thank u! :)
@ITVidz
@ITVidz 4 жыл бұрын
Sure
@JoseVargas-jn9we
@JoseVargas-jn9we 4 жыл бұрын
Thanks!!! Its works on Mac OS Catalina !!!!
@ITVidz
@ITVidz 4 жыл бұрын
Great!
@DiyaSabharwall
@DiyaSabharwall 4 жыл бұрын
Is there a way to do this without messing with the terminal? I’m not very tech savvy and I’m very anxious about messing with terminal it seems complicated
@akzholbeisenbayev2478
@akzholbeisenbayev2478 3 жыл бұрын
THANK YOOOOU!!!!!!
@albertopinna5372
@albertopinna5372 2 жыл бұрын
hi there, thanks for your video. would you be available for 1h consultation about do the settings on my mac please?
@alejandrocalzada9832
@alejandrocalzada9832 4 жыл бұрын
Awesome!
@ITVidz
@ITVidz 4 жыл бұрын
Thanks!
@Lorenzo-1810
@Lorenzo-1810 4 жыл бұрын
How I can unlink the soft link created using line command ln -s /usr/local/mysql/bin/mysql /usr/local/bin thank you
@stevengamelieu8340
@stevengamelieu8340 4 жыл бұрын
hi ! i've a problem with my mysql installation. After ran #sudo ln -s /usr/localhost/msql/bin/msql /usr/local/bin# all things is ok! , but when ran # mysql -u root -p# it shows me # command not found : mysql . please what should i do to finalise my installation ?
@ITVidz
@ITVidz 4 жыл бұрын
Hello Steve, the reason you are getting the error message is because the /usr/local path is not yet written to your bash profile. So, you should first edit the bash profile to include that path, then try to login again. Perform any of the following on terminal Open a terminal window and type in the code below, then enter on your keyboard Sudo nano /etc/paths Add the following lines to that file. To insert such changes, press i on your keyboard, then use the down arrow to screw down to a new line and insert the two changes below /usr/local/mysql/bin /usr/local/mysql/support-files To save and exit, press esc on your keyboard, then :wq! Then enter. After this step, restart your terminal and proceed with the installation as shown in the video.Video link is again included here for you@
@evander_9518
@evander_9518 4 жыл бұрын
Earnest IT Thanks my g!
@gravelessForever
@gravelessForever 4 жыл бұрын
@@ITVidz THANK YOU SO MUCH
@mch-223
@mch-223 3 жыл бұрын
@@ITVidz I want to die bruh it won't save and exit
@sruthithandoju2627
@sruthithandoju2627 4 жыл бұрын
could you pls make an other video which consisting of how to include that sudo.etc path into bash profile clearly
@ITVidz
@ITVidz 4 жыл бұрын
Hi Sruthi, please note that to install applications on your computer using "sudo or Supper user" you need to have admin privileges to the device in which you are using. Otherwise, it will be impossible if you don't have such privileges. If you are the admin user of your Mac, all you have to do is to change from z shell to bash shell. I will make a video on that as well
@plantatree5144
@plantatree5144 4 жыл бұрын
Heyyy might you know what should I do wenn I got "Unhandled exception: 'caching_sha2_password'" when I was trying to create an admin account ?
@ITVidz
@ITVidz 4 жыл бұрын
Hi Zhang. Use the link below to review Mysql documentation section that speaks specifically about caching_sha2_password issue you are facing. I hope this helps. dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-data-dictionary-changes
@DiyaSabharwall
@DiyaSabharwall 4 жыл бұрын
I got ‘xxx is not in the sudoers file. This incident will be reported’ after I entered password in terminal. Why is this happening??
@dcsquad430
@dcsquad430 4 жыл бұрын
Hi Earnest IT, Can you please help me with my previous request? I am having trouble with setting up the terminal. I have provided you a copy of the error message I got from the terminal console. Thanks
@ITVidz
@ITVidz 4 жыл бұрын
see my reply to your original comment.
@microhandsltd
@microhandsltd 2 жыл бұрын
Your video was very clear but alas didn’t work for me. I find that under my /usr folder is an alias called mysql which point to a folder named as the mysql installation dmg file. So the command sudo on -s /usr/local/mysql/bin/mysql/bin/mysql /usr/local/bin does do anything.MySQL workbench works fine and I can create a new database but MySQL won’t work from Localhost which means MyAdmin can’t be used to administer MySQL. I’m stuck.
@nimcoibrahim3733
@nimcoibrahim3733 2 жыл бұрын
I'm stuck too, did you figure out how to solve that
@kaabrustam3485
@kaabrustam3485 4 жыл бұрын
it doesnt work for zsh, "mysql -u root -p" says "zsh: command not found: mysql", please help me oout.
@ITVidz
@ITVidz 4 жыл бұрын
Ok. Change your default shell back to bash, install the mysql, then change it back to Z shell. Steps Change Zsh to bash: copy and paste this on terminal, then hit enter: chsh -s /bin/bash Change bash back to Zsh: Copy and paste this on terminal after you have installed mysql, then hit enter: chsh -s /bin/zsh
@yuseldazauma661
@yuseldazauma661 Жыл бұрын
Help me. MySQL workbench packages require Big Sur (11.1 or newer) now:(
@ITVidz
@ITVidz Жыл бұрын
Here is an updated video on MySQL if you are on windows. kzfaq.info/get/bejne/pruandZem7DDpok.html
@natuhhlie
@natuhhlie 4 жыл бұрын
Hi ! When I use *sudo ln -s /usr/local/mysql/bin/mysql/bin/mysql /usr/local/bin* and type in my password, my terminal returns ln: /usr/local/bin/mysql: File exists. I then try to do mysql -u root -p and it returns zsh: command not found: mysql What should I do? I tried changing the default shell back to bash, install the mysql, then change it back to Z shell.
@ITVidz
@ITVidz 4 жыл бұрын
On macOS Catalina, open terminal and try the following. Sudo nano /etc/paths With that file open, add the following to the bottom of the file. To do this, just click the (i) key on your keyboard to activate insert action. /usr/local/mysql/bin Safe the file by pressing esc, then :wq! Close and reopen the terminal window, then try running: mysql -u root -p Hopefully, this should work.
@mch-223
@mch-223 3 жыл бұрын
@@ITVidz add what ? I have exactly the same issue
@mikaelwalker5880
@mikaelwalker5880 4 жыл бұрын
Everything has worked perfectly so far, but for some reason "show dadtabases;" in the workbench didn't cause anything to happen. Am I supposed to click on something? I hit enter and nothing pops up.
@ITVidz
@ITVidz 4 жыл бұрын
Hi Mikael, directly above the show databases; command are two execution signs that you can click to run that sql code. when you do, you should see a list of databases within your instance.
@MsHappilyNaturelle
@MsHappilyNaturelle 4 жыл бұрын
if i'm using xampp which localhost will show me the phpadmin page?
@ITVidz
@ITVidz 4 жыл бұрын
Hi Valerie, you have to set that up. Use the article or link to guide you in the process www.richardcastera.com/blog/how-to-setup-a-local-web-server-on-your-computer-using-xampp/
@carlfinkbeiner7850
@carlfinkbeiner7850 4 жыл бұрын
Hey! I've gotten through all these steps, but when I try to execute the "mysql -u root -p" command I receive a message in terminal stating "-bash: mysql: command not found". Can you provide any guidance here?
@ITVidz
@ITVidz 4 жыл бұрын
Try to add aliases to your shell's resource file to make it easier to access mysql and mysqladmin from the command line, then try to connect as root using the Mysql -u root -p. The syntax to add alianses to bash is as follows: alias mysql=/usr/local/mysql/bin/mysql alias mysqladmin=/usr/local/mysql/bin/mysqladmin Even better, add /usr/local/mysql/bin to your PATH environment variable. You can do this by modifying the appropriate startup file for your shell. For more information, see Section 4.2.1, “Invoking MySQL Programs”. If this don’t work, use this link dev.mysql.com/doc/refman/8.0/en/dynindex-command.html to review other options for Mysql Documentation especially the bash section.
@ITVidz
@ITVidz 4 жыл бұрын
Hi Carl, if the solution I provided earlier does not work, use this one instead. Open terminal and install MySql using the command below brew install MySql Then click enter on your keyboard Once that is done, login to MySql as root using MySql -u root -p Then inter your root password. This should work.
@priyanshus6108
@priyanshus6108 4 жыл бұрын
@@ITVidz still not working dude i tried
@ITVidz
@ITVidz 4 жыл бұрын
@@priyanshus6108 If you do not have admin access to your computer, you will not be able to succeed with such installation. Another reason, could be that the software on your system is not up to date or something. So, check that and retry. Also, macOS Catalina now uses Zshell instead of bash, so check for compatibility of MySql with that shell, then try installation again. It could be a host of reasons why you are not able to install and configure MySql on your system
@viniciuscardoso5271
@viniciuscardoso5271 4 жыл бұрын
Hello Carl This is the problem with your $PATH: /usr/local//usr/local/mysql/bin/private/var/mysql/private/var/mysql/bin which probably doesn't exist. Instead you want ${PATH}:/usr/local/mysql/bin. So do export PATH=${PATH}:/usr/local/mysql/bin. do this export and you see working
@eunjincho9058
@eunjincho9058 3 жыл бұрын
I did exactly what you told us, but at 7:31 it says zsh: command not found: mysql what should I do? I've been on this for hours now :(
@amandeepthakur7847
@amandeepthakur7847 3 жыл бұрын
same problem, can u tell me how to fix it
@manavrajesh3493
@manavrajesh3493 3 жыл бұрын
Same problem
@SoumalyaVarma
@SoumalyaVarma 4 жыл бұрын
in terminal it is showing that "sudo in - command not found " what should i do ???????
@ITVidz
@ITVidz 4 жыл бұрын
Hello Varma, please note that it is not "sudo in" it is "sudo LN" lower case, not i as in ink, but l as in link. Also, note that there is a space before the last section of the command. I have re-written it here so you can just copy and paste on your terminal window: sudo ln -s /usr/local/mysql/bin/mysql/bin/mysql /usr/local/bin; then cmd enter on your computer.
@yuneeshaediriweera5030
@yuneeshaediriweera5030 Жыл бұрын
I cant type anything after the first command. Cursor isnt working wat to do?
@ITVidz
@ITVidz Жыл бұрын
If your cursor is not working, try to use the backspace button on you keyboard or restart your computer and try again
@dcsquad430
@dcsquad430 4 жыл бұрын
Hi Earnest, I came across your video on KZfaq. I am trying to access the Mysql in my terminal. I am following the process you recommenced and I am getting the below error. Can you please assist me and let me know what to do. I am completely lost and I cannot access the database in my terminal. Please see the below code. I entered my computer password after typing in the sudo code, then it says file exists ( I really don't understand that). Then I type mysql - u root -p and the system says command not found. I am lost. davidd.christie@Davids-MacBook-Pro ~ % sudo ln -s /usr/local/mysql/bin/mysql /usr/local/bin Password: ln: /usr/local/bin: File exists davidd.christie@Davids-MacBook-Pro ~ % mysql -u root -p zsh: command not found: mysql davidd.christie@Davids-MacBook-Pro ~ %
@ITVidz
@ITVidz 4 жыл бұрын
Hi Davidd, use this link and try option 3 that starts with sudo sh -c 'echo stackoverflow.com/questions/10577374/mysql-command-not-found-in-os-x-10-7
@dcsquad430
@dcsquad430 4 жыл бұрын
Earnest IT : Hi Earnest IT, thanks for getting back to me. I’ve tried option 3 and that doesn’t work. I really don’t know where to turn or what to do. It’s simply not working.
@goodtime8007
@goodtime8007 4 жыл бұрын
7:31 it showed me “command not found”
@timderkekskeks4590
@timderkekskeks4590 3 жыл бұрын
@Soja 2 Me too. Have you solved it?
@timderkekskeks4590
@timderkekskeks4590 3 жыл бұрын
Solved It: I forgot to link the mysql.exec with my usr/local/bin folder. Link it via: "sudo ln -s /usr/local/mysql/bin/mysql /usr/local/bin"
@pemadechen6982
@pemadechen6982 3 жыл бұрын
@@timderkekskeks4590 Thank you very much
@messironaldo1708
@messironaldo1708 3 жыл бұрын
@@timderkekskeks4590 You're the best! Thank you very much!
@faiqahaider8296
@faiqahaider8296 3 жыл бұрын
@@timderkekskeks4590 how did you link it? I am having the same problem
@paritashah2324
@paritashah2324 4 жыл бұрын
ln: /usr/local/bin: File exists . THIS IS WHAT I GET after typing "sudo ln..etc" - after that it doesnt ask for any password can you please help
@ITVidz
@ITVidz 4 жыл бұрын
Hi Parita. Please use this path on your terminal window. Just copy and paste it as it is. ln -s /usr/local/mysql/bin/mysql/bin/mysql /usr/local/bin Then press CMD inter on your Mac You should receive an option to inter the password for your computer. If the mysql bin directory already exist in you environment, you may consider setting the password for that directory using: mysqladmin -u root password Newpassword or try connecting to mysql using: mysql_secure_connection. If none of this works, then I will presume that the current version of you Mac software may not allow you to install and configure the application or you may not have the necessary admin privileges to install and configure applications in your environment. I hope this was helpful.
@ITVidz
@ITVidz 4 жыл бұрын
I omitted sudo in my initial response, so, just copy the path below to terminal, then cmd inter: sudo ln -s /usr/local/mysql/bin/mysql/bin/mysql /usr/local/bin
@paritashah2324
@paritashah2324 4 жыл бұрын
@@ITVidz Thank you very much I appreciate!! I got it to work!!
@midohegazi5986
@midohegazi5986 4 жыл бұрын
@@ITVidz sir i have the same problem and it keeps on saying file exists and im the admin and unique user of my pc . any suggestion? thnx alot
@ITVidz
@ITVidz 4 жыл бұрын
@@midohegazi5986 File exists means you already have the file on your computer. Now, the default MySql installation installs to /usr/local/mysql which is not in your path, specifically the MySql client is installed at /usr/local/mysql/bin/mysql. You can specify it exactly to launch the client by using this path: /usr/local/mysql/bin/mysql -u root I hope this helps.
@peterpowers7215
@peterpowers7215 4 жыл бұрын
When I double click the download package, I get this: "mysql-8-0-20-macos10.15-x86_64.pkg" can't be opened because Apple cannot check it for malicious software. This software needs to be updated. Contact the developer for more information. I'm using MacOS 10.15.4 on a new iMac
@ITVidz
@ITVidz 4 жыл бұрын
Use the mysql website and follow the video to download the recent software package for mysql.
@mohamedyansane6595
@mohamedyansane6595 4 жыл бұрын
just go to your package folder mysql-8-0-20-macos10.15-x86_64.pkg and make a right click on it then open it it will work
@belidehitesh8586
@belidehitesh8586 4 жыл бұрын
its giving me illegal action when i try to enter my password in terminal
@puneetagarwal1662
@puneetagarwal1662 3 жыл бұрын
Same issue. Is your issue resolved?
@niveditha-7555
@niveditha-7555 3 жыл бұрын
it shows"
@asenkkwan1343
@asenkkwan1343 4 жыл бұрын
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) after i try this command mysql -u root -p
@ITVidz
@ITVidz 4 жыл бұрын
Hi Asenk Kwan, your access was denied because you are using either a guest account, probably with or without root privileges. Us this link from stack overflow and try solution 76. stackoverflow.com/questions/10299148/mysql-error-1045-28000-access-denied-for-user-billlocalhost-using-passw
@asenkkwan1343
@asenkkwan1343 4 жыл бұрын
@@ITVidz okey thanks bro... i try
@jush6130
@jush6130 4 жыл бұрын
is he saying My-SEQUEL ?
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 787 М.
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 6 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 81 МЛН
Mac Fanboy Tries ARM Windows Laptops
31:40
Snazzy Labs
Рет қаралды 188 М.
Richard Stallman Talks About Ubuntu
6:10
TFiR
Рет қаралды 1,4 МЛН
Absolute BEGINNER Guide to the Mac OS Terminal
17:03
Percy Grunwald from TopTechSkills
Рет қаралды 745 М.
I Built my own Power Supply (don't do it)
11:18
Linus Tech Tips
Рет қаралды 634 М.
Java Is Better Than Rust
42:14
ThePrimeTime
Рет қаралды 150 М.
Installing MySQL Database On MacOS | Install the Right Way Step By Step Guide
12:13
EmbarkX | Learn Programming
Рет қаралды 29 М.
CrowdStrike IT Outage Explained by a Windows Developer
13:40
Dave's Garage
Рет қаралды 2 МЛН
OpenSSH for Absolute Beginners
23:00
Veronica Explains
Рет қаралды 102 М.
SQL Tutorial for Beginners [Full Course]
3:10:19
Programming with Mosh
Рет қаралды 11 МЛН
SQL vs NoSQL or MySQL vs MongoDB
21:30
Academind
Рет қаралды 1,8 МЛН
НОВЫЕ ФЕЙК iPHONE 🤯 #iphone
0:37
ALSER kz
Рет қаралды 231 М.
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 16 МЛН
BEKMOBILDA Tecno Camon 30 smartfoni🔥🤩 #bekmobil
1:01
Bekmobil shorts
Рет қаралды 2,3 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 488 М.
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2,2 МЛН