How to Install MySQL on macOS (using a DMG File)

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 162

  • @clipsbyczar
    @clipsbyczar 2 роки тому +17

    Somehow you are the only person to show how to set up servers with 0 confusion. I appreciate you so much.

  • @leticia.3445
    @leticia.3445 Рік тому +4

    This video literally saved my life!! Been trying to install it for quite some time and couldn't make it work, but your tutorial guided me through every step. Thank you so much for this video!!

  • @raghadabushammalah4925
    @raghadabushammalah4925 2 роки тому +5

    Everything went well until the terminal step, in the first method I got a message that such file doesn't exit, same for the bash profile, what should I do ??

    • @DatabaseStar
      @DatabaseStar  2 роки тому +1

      I've seen a few people leave comments with bash profile errors. I'm not sure what it would be, other than checking that the command is correct. Otherwise searching on Google is probably better.

  • @melissasibihwanamugoya1705
    @melissasibihwanamugoya1705 2 роки тому +2

    Hi, I run the path configuration of bash profile but command not found error persists. I got the exact error you got at 6:53 when you rerun the mysql -u root -p command. my terminal is running zsh, what should I do? Already tried the suggestion in one of the comments that says run open - e .zshrc instead. I wasn't.t sure where to place the configuration line so I placed that at the bottom, saved and rerun the sql root command. same issue arises. Please help! not able to do any of my work.

    • @DatabaseStar
      @DatabaseStar  2 роки тому

      Oh that's annoying it's not working. I'm not sure what else to try, my knowledge of solving these bash problems is pretty limited unfortunately...

    • @rub.p
      @rub.p 2 роки тому +8

      Change the opening the terminal: Terminal -> Options -> Opening terminal -> /bin/bash instead of /bin/zsh -> restart terminal

    • @premkrish8530
      @premkrish8530 2 роки тому +6

      If .bash_profile doesn’t exist in your system files you can create one by typing this command "touch .bash_profile" in the terminal. Then add this code to your .bash_profile file: "export PATH=${PATH}:/usr/local/mysql/bin/ "and Command + S to save the change that you just made to the .bash_profile file and that is enough to add MySQL to your paths.

    • @kettennuir
      @kettennuir 2 роки тому

      @@premkrish8530 thanks bro, helped a lot

    • @IamKayeLaGrone
      @IamKayeLaGrone 2 роки тому

      @@rub.p Thank you this helped!

  • @genesis1831
    @genesis1831 2 роки тому +2

    I'm sorry but when I do the .bash_profile part on 6:30 it’s still saying not found

    • @DatabaseStar
      @DatabaseStar  2 роки тому

      Ah, I'm not sure what else to do. Some other people have had similar comments that they still get this error.

    • @36umangchorariaxis22
      @36umangchorariaxis22 Рік тому

      yeah me too

  • @sabrinahe9678
    @sabrinahe9678 2 роки тому +4

    I did exactly what were said in this video but installation got stuck and it could not progress to configuration..... Maybe I should try Homebrew.

    • @DatabaseStar
      @DatabaseStar  2 роки тому +1

      That’s odd. Yeah if there are no solutions when you Google the issue you could try home brew.

  • @humairaaakthar5340
    @humairaaakthar5340 Рік тому +3

    When I write the name of the MySQL tool or try to open .bash_profile, neither work by saying no such file and .bash_profile does not exist.

    • @DatabaseStar
      @DatabaseStar  Рік тому

      Oh I’m not sure why that would be the case

  • @tuan.hoang_
    @tuan.hoang_ Рік тому +2

    Thank you for the detailed walkthrough. I came across your video because I couldn't figure out why typing "mysql" in the terminal didn't work. So I guess the installer doesn't add the binary location to the PATH variable.
    A little suggestions, I think you can just put "/usr/local/mysql/bin" to the PATH, because there's a symlink in "/usr/local" that points directly to the "mysql-8.0.28-macos..." folder.

    • @DatabaseStar
      @DatabaseStar  Рік тому

      Glad you liked the video! And thanks for the tip about adding to the PATH, I'll keep that in mind.

  • @hudamg6642
    @hudamg6642 2 роки тому +5

    I have an issue, I followed your steps but at the end of installing it gets stuck and stays for hours saying "Install time remaining: Less than a minute". Can you please tell me why this is happening and what I need to fix?

    • @dylanv711
      @dylanv711 2 роки тому

      Could be that you're running the wrong version of MYSQL for your OS.

    • @DatabaseStar
      @DatabaseStar  2 роки тому

      Hmm I’m not sure why it’s staying stuck for hours. Perhaps Dylan’s suggestion is the cause.

    • @agustintumminello8415
      @agustintumminello8415 2 роки тому +2

      same, did you find a solution?

  • @devangshukla9592
    @devangshukla9592 Рік тому +4

    love u bro...u best...my career started because of u

    • @DatabaseStar
      @DatabaseStar  Рік тому

      Wow thanks! I’m glad you started a career! What’s your role at the moment?

    • @devangshukla9592
      @devangshukla9592 10 місяців тому

      i m a student@@DatabaseStar

  • @ClayVogt
    @ClayVogt 4 місяці тому

    So, I'm very new to databases & programming, and downloading to teach myself more. The problem I'm having following this tutorial is that I'm not running bash. I'm running zsh. where do I find my .zsh profile to set my path?

    • @DatabaseStar
      @DatabaseStar  3 місяці тому

      Oh I’m not sure actually, I’m not that familiar with zsh

  • @kellyk9876
    @kellyk9876 2 роки тому +2

    I had a problem "“mysql-8.0.21-macos10.15-x86_64.pkg” can’t be opened because Apple cannot check it for malicious software ". I resolved by clickind control + clicking the icon.

    • @DatabaseStar
      @DatabaseStar  2 роки тому +1

      Ah good to know you resolved it.

    • @imogen206
      @imogen206 2 роки тому +1

      Thanks so much

    • @kellyk9876
      @kellyk9876 2 роки тому

      @@imogen206 anytime!

    • @tuan.hoang_
      @tuan.hoang_ Рік тому

      You can also right click on it, then click "Open". Should works the same.

  • @mram1690
    @mram1690 Рік тому

    Hi while installing mysql in MacBook Pro it is showing successfully wait a minute like this showing running mode only

  • @thaihuns9172
    @thaihuns9172 2 роки тому +1

    I keep getting an error pop-up that the ".pkg" cannot be opened because it is from an unidentified developer. There is no allow option. I have tried all possible solutions that I could find on the internet including trying "Open Anyway" from under security settings which doesnt do anything as I get the same error message when I click on Open Anyway. Suggestions please?

    • @DatabaseStar
      @DatabaseStar  2 роки тому

      Hmm I've seen that error before, but the solutions I found online worked for me (the Open Anyway that you mentioned). I can't think of anything else that could help resolve this error.

  • @adityakaushik941
    @adityakaushik941 2 місяці тому

    Mysql is working on my terminal but no application is showing in System preferences like you showed

    • @DatabaseStar
      @DatabaseStar  2 місяці тому

      Oh that's strange, I'm not sure why that is.

  • @pnikamvlogs9931
    @pnikamvlogs9931 Рік тому

    System perference not show in macbook air , so how can i found system perference?

  • @amintorabi3955
    @amintorabi3955 11 місяців тому

    the directory will not appear , also installation with this way dosent work for me

    • @DatabaseStar
      @DatabaseStar  11 місяців тому

      Which directory does not appear? Why doesn’t the installation work for you?

  • @DrSeanKennedy-k2b
    @DrSeanKennedy-k2b 6 місяців тому

    Great video - nice and simple. Easy to follow. Thanks very much!

  • @tostoncito
    @tostoncito Рік тому

    I followed your steps but when running 'mysql -u root -p' I get this message 'ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)'. I am inputting the password correctly, what might be the issue?

    • @DatabaseStar
      @DatabaseStar  Рік тому

      Hmm maybe the MySQL database is not running. Or maybe there are some special characters that are not accepted in the password.

  • @NarutoUzumaki-tw1uq
    @NarutoUzumaki-tw1uq 2 роки тому

    When installing on my mac10 there was no option to configure after installation it was just summary and close. How can I fix hthis?

    • @DatabaseStar
      @DatabaseStar  2 роки тому

      Oh that’s odd. I’m not sure why that would have happened.

  • @destined4greatness2
    @destined4greatness2 Місяць тому

    Just the help I needed!! Thank you!!

    • @destined4greatness2
      @destined4greatness2 Місяць тому

      But unfortunately, "bash doesn't exist." Says I'm using .zsh and so far from the comments there isn't a fix for this.

    • @DatabaseStar
      @DatabaseStar  Місяць тому

      You're welcome!

  • @valentina2375
    @valentina2375 2 роки тому +1

    is it normal for the 'installing' step to take more than 30 minutes?

    • @DatabaseStar
      @DatabaseStar  2 роки тому

      I don't think so, I think it was a few minutes for me. You could try cancelling and retrying.

  • @benjcheah3031
    @benjcheah3031 Рік тому

    Thank you so much for your wonderful and simple to understand explanation. U r da man!!

  • @jordanrowland2760
    @jordanrowland2760 Рік тому

    Thank you, this was very clear and succinct and helped a lot

  • @WheresMaDrop
    @WheresMaDrop 2 роки тому

    After installing and tried opening it on system preference, this "You can’t open MySQL preferences pane because it doesn’t work on an Intel-based Mac." popped up.
    How do I solve this issue? Pls help!

    • @DatabaseStar
      @DatabaseStar  2 роки тому

      Oh I've never seen that before. Hopefully Google has some answers (I'll look at it myself too)

  • @maihoang-pg7cx
    @maihoang-pg7cx 2 роки тому

    Thank you so much for posting this amazing video, it helps me so much with my homework

  • @theboo1071
    @theboo1071 2 роки тому

    I did all of this and it worked but how do I actually open the community server app. I can’t seem to find it

    • @DatabaseStar
      @DatabaseStar  2 роки тому

      The "community server" is something that runs in the background. It isn't an application that you need to open. There is a way to start and stop it, using either the Preferences on MacOS, or the Terminal, but it should be running automatically.
      If you want to do some work with the database (e.g. add data to the database), you'll need an SQL Editor such as MySQL Workbench.

  • @juliettevila3640
    @juliettevila3640 2 роки тому

    Merci beaucoup pour cette vidéo. J'étais tellement habituée à utiliser les containers Docker que votre vidéo a était super utile, et vous expliquait très bien. Je vous remercie.

    • @DatabaseStar
      @DatabaseStar  2 роки тому

      Thanks, I'm glad you liked the video!

  • @aaradhyaa_02
    @aaradhyaa_02 Рік тому

    how to open the terminal app?

    • @DatabaseStar
      @DatabaseStar  Рік тому

      You can find it in the Applications folder or by opening Spotlight and searching for Terminal.

  • @sameersh4h
    @sameersh4h 11 місяців тому

    Hi! tried following the video (great video btw) and I managed to install MySQL but later when i tried to start the server from system preferences, it asked for the system password (for me its touch id) which worked as normal and then the server starts for a second but then stops. The red light turns green for a second and then becomes red again. I don't know why this happened. Any suggestions?

    • @DatabaseStar
      @DatabaseStar  11 місяців тому

      Thanks! I remember this happening to me once but I don't remember the solution. Could you have two MySQL installations on the one computer? Perhaps there is another MySQL installation running on the same port number, and then the service that you start immediately stops because there is a port issue.
      If not, then I would suggest Googling it, I think that's what I did last time.

  • @akamoosh218
    @akamoosh218 Рік тому

    I followed your exact steps. It didn't work for me. I run Mac OS Ventura 13.4

    • @DatabaseStar
      @DatabaseStar  Рік тому

      Oh no, what issue are you having?

    • @akamoosh218
      @akamoosh218 Рік тому

      The problem was my terminal wasn’t in .bash, it was .zsh. So I had to paste the MySQL file into the .zprofile instead of .bash. If that’s makes since. Sorry I’m not the most computer savvy.

  • @SportSquadd
    @SportSquadd Рік тому

    Can you please tell what should I do now. I mean i have everything with Terminal etc I downloaded SQL from terminal what now. I mean what's next after this Terminal process. Now how can I work on SQL Workbench. I mean I am done with this process what should I do next. Can you please tell me or anyone in the comment section please.

    • @DatabaseStar
      @DatabaseStar  Рік тому

      Did you download MySQL using the Terminal? If so, next you can download MySQL Workbench and install it, which will let you interact with the SQL database. Then, you can create a new connection to the database within MySQL Workbench, probably using a hostname of localhost and the username of root.

    • @SportSquadd
      @SportSquadd Рік тому

      @@DatabaseStar I did my sql workbench telling me again and again that my password is incorrect and don't know how can I reset my password so please I really need help I can't work on my sql Workbench I am a new student so that's why I really need help

  • @sangtt8304
    @sangtt8304 2 роки тому

    This video is helpful for me. Thanks for your sharing

  • @shayaangilani5855
    @shayaangilani5855 2 роки тому

    hi, from what year would an imac be classed as older? Mine is 2017 so dont know whether to do x86 or ARM

    • @DatabaseStar
      @DatabaseStar  2 роки тому

      I think the new CPUs came into macs around 2020 so if it’s 2017 it would be the x86

  • @wicakradityo1734
    @wicakradityo1734 Рік тому

    very good tutorial, i appreciate it mate.

  • @bi-visuals2022
    @bi-visuals2022 Рік тому

    Excellent tutorial, thank you!

  • @robmonkriedlinger
    @robmonkriedlinger 2 роки тому

    Thank you so much for this! Massive help to me.

  • @kyliannmcqueen2881
    @kyliannmcqueen2881 Рік тому

    Hi, I am running macOS Big Sur 11.7.7. After following all the steps for Mac installation I keep receiving this error when finally trying to open mysql from terminal: dyld: Symbol not found: __ZTTNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE
    Referenced from: /usr/local/mysql/bin/mysql (which was built for Mac OS X 12.0)
    Expected in: /usr/lib/libc++.1.dylib
    in /usr/local/mysql/bin/mysql
    How can I get past this?

    • @DatabaseStar
      @DatabaseStar  Рік тому

      Hi, I'm not sure what that error means unfortunately...

  • @justasomebody442
    @justasomebody442 Рік тому

    bash profile is not opening

    • @DatabaseStar
      @DatabaseStar  Рік тому

      Oh I’m not sure how to resolve that. But I can see others have had issues with this.

  • @idhiarhidenyefa9566
    @idhiarhidenyefa9566 2 роки тому

    the configuration isn't clear enough so I didn't get the direction for there

    • @DatabaseStar
      @DatabaseStar  2 роки тому

      Which configuration did you want to know more about?

  • @hads8916
    @hads8916 2 роки тому

    what address should we add to the text file?

    • @DatabaseStar
      @DatabaseStar  2 роки тому

      Is there an address shown in the video for the file?

  • @royhammett4221
    @royhammett4221 2 роки тому

    That's a great video, very easy to understand thank you

  • @bloom6874
    @bloom6874 Рік тому

    video was too good but still didn't work for me :( may be path variables are not getting saved properly .. don't know :(

    • @DatabaseStar
      @DatabaseStar  Рік тому

      Oh that’s a shame it doesn’t work. Hope you get it fixed soon

    • @bloom6874
      @bloom6874 Рік тому

      @@DatabaseStar yeah :(

  • @susanzooz
    @susanzooz 2 роки тому

    soooo useful thank you so much. you saved my day :)

  • @inputname000
    @inputname000 Рік тому

    Hi, please help me. I have installed Mysql just like the tutorial but I couldnt find mysql in system preference (settings) therefore I cant initialize database nor do anything. The problem seems new so there are not many topics about that

    • @DatabaseStar
      @DatabaseStar  Рік тому

      Oh that's strange! There may be a way to start it using Terminal if you don't see it in the settings.

    • @mahidharnaraharisetty4212
      @mahidharnaraharisetty4212 Рік тому

      I hope you were able to already solve it but I just restarted the system and it appeared shortly after

  • @yooncosta3447
    @yooncosta3447 2 роки тому

    thank you so much!! very helpful !!

  • @varunahlawat9013
    @varunahlawat9013 2 роки тому +1

    6:50 same error I got, but you trimmed the error part in this video. My 8 minutes wasted

    • @DatabaseStar
      @DatabaseStar  2 роки тому

      Hey, what do you mean by "trimmed the error part"? The error you get can be resolved by adding that path to the bash profile?

  • @karaoke00
    @karaoke00 Рік тому

    it works well for me. Thank you

  • @divsyntax9720
    @divsyntax9720 2 роки тому

    Thanks!! This in combo with your home Brew vid got mines working! Subd!!! But, the serve still shows red when in sys prefs, however, I think I'm connected via the mysql server in terminal???

    • @DatabaseStar
      @DatabaseStar  2 роки тому +1

      Good to hear! If it's still red you may need to start the mysql server. You could do this in the System Preferences I believe.

    • @divsyntax9720
      @divsyntax9720 2 роки тому

      @@DatabaseStar I tried that, mines still red for some reason. Also it’s a brand new Mac book pro so I haven’t had it long enough to screw some stuff up…😅 I’ve only installed XCode, MYSQL and MAMP(it’s not running). And yes, I restarted it multiple times. It turns green for a second then back to red…🤷🏾‍♂️

    • @jiaqili5930
      @jiaqili5930 Рік тому

      @@divsyntax9720 SAME!!! Have you solved this problem yet?

    • @divsyntax9720
      @divsyntax9720 Рік тому

      @@jiaqili5930 Sadly, no I have not.

  • @MrBrady95
    @MrBrady95 11 місяців тому

    I notice Homebrew now issues warnings to upgrade to the "newest version of MacOS to ensure compatibility." How ironic that a CLI tool that resembles the experience of using a computer from the 1980's would tell you that. Lol. I don't want to upgrade at this time so I guess Homebrew doesn't work for me.

    • @DatabaseStar
      @DatabaseStar  11 місяців тому

      Oh that's a little annoying! I haven't updated my macOS either so I might get the same errors if I try.

  • @uminhtetoo
    @uminhtetoo Рік тому

    Thank you so much for sharing.

  • @mukundvashisht6226
    @mukundvashisht6226 Рік тому

    hey man great video it is just that .bash_profile was not in my directory

  • @haythamaldamen3578
    @haythamaldamen3578 Рік тому

    Wonderful learning video Thanls

  • @anigrig1719
    @anigrig1719 2 роки тому

    I followed the steps, but I don't understand where do I get the line from bin folder?

  • @listentothewordofgod
    @listentothewordofgod 2 роки тому

    Thank you so much for your help.
    Joao Silva - Brazil
    Best Regards,

  • @Karrnfr
    @Karrnfr 2 роки тому

    Thanks alot Man

  • @caroubes
    @caroubes 2 роки тому

    Thank you!

  • @ricardok3595
    @ricardok3595 Рік тому

    tks for share!

  • @shrabonisinha
    @shrabonisinha Рік тому

    It works

  • @yummyAmyy
    @yummyAmyy 2 роки тому

    so I guess with this video, you don't need docker anymore right? because I have watched so many videos and most of them suggest using docker 🥲

    • @DatabaseStar
      @DatabaseStar  2 роки тому +1

      That’s right. You don’t need docker to run this. Docker is popular as you’ve seen but it’s not required.

    • @yummyAmyy
      @yummyAmyy 2 роки тому

      @@DatabaseStar thank you databasestar

  • @ShirleyLab
    @ShirleyLab 11 місяців тому

    when i open the bash profile file, it looks different than yours, and i still wrote the path line there,,,it does not work and i don know why :(

    • @DatabaseStar
      @DatabaseStar  11 місяців тому

      Oh that’s odd. Perhaps the file is in a different location. I’m not sure why it won’t work unfortunately

  • @JeremyCooper-si8xj
    @JeremyCooper-si8xj 2 роки тому

    How do I generate the terminal? Please help.

    • @DatabaseStar
      @DatabaseStar  2 роки тому

      You can open the terminal from the Applications folder, or by running "terminal" from within Spotlight.

  • @idanlalush4589
    @idanlalush4589 Рік тому

    Thanks a lot for the clarifications