MySQL CREATE USER - GRANT Privileges // Tips from a Self Taught Developer

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • In this tutorial, as a self-taught developer, I explain how to insert a user into the MySQL database, with all privileges required to become a "superuser". I also show you how you can remove the user from the database with the DROP command.
    MySQL - CREATE USER with GRANT Privileges in Terminal // Tips from a Self Taught Developer
    #mysql #php #programming #SelfTaughtDeveloper #davidsvideos

Комментарии • 117

  • @devashishsaxena8354
    @devashishsaxena8354 4 года назад +6

    just spent half a day searching how to create new user on mysql, but perfected it in minutes from this video. Thank you for your help.

  • @Halom8co
    @Halom8co 5 лет назад +2

    This video is so good, thank you for your help 5 years later!

  • @enriquedb666
    @enriquedb666 2 года назад +1

    Thanks so much, i needed to grant PROCESS privileges i didnt know how to doit...saved my day.

    • @thornwebdesign
      @thornwebdesign  11 месяцев назад +1

      You're very welcome! I'm thrilled to hear that my tutorial helped you with granting PROCESS privileges and saved your day. 😊
      If you have any more questions or if there's anything else related to MySQL or any other topic you'd like to learn about, feel free to ask. Learning and helping each other is what it's all about!

  • @lucascortooms3457
    @lucascortooms3457 6 лет назад +2

    YOU SAVED ME SO MUCH TIME. Thank god i've been looking for 3 hours now. Nice tutorial man.

  • @Rac00n
    @Rac00n 4 года назад +2

    I know it's an old video but thank you. I just started learning mysql and this helped a ton

  • @playboycity
    @playboycity 11 лет назад +1

    Thanks that was great you have helped me solve a problem of removing a user which had been bugging me for months

  • @dereknugent5897
    @dereknugent5897 10 лет назад +1

    Many thanks very handy revision... Very much appreciated!

  • @marcopierrefernandezburgos3116
    @marcopierrefernandezburgos3116 9 лет назад +1

    Thank you for you very explicit instructions.

  • @techwithdenzel
    @techwithdenzel 2 года назад +1

    Awesome, I 'm also starting off as self-taught.

    • @thornwebdesign
      @thornwebdesign  11 месяцев назад +1

      That's great to hear that you're starting off as a self-taught learner too! It's an exciting journey filled with endless possibilities. 😃
      I'm curious to know, what specific area of self-taught learning are you diving into? Are there any particular challenges or topics you're keen to explore, or any resources you've found particularly valuable on your self-education path? Let's chat about your experiences and share insights!

  • @nazmulhossain9440
    @nazmulhossain9440 3 года назад +1

    Thank you very much. I am very happy watched for this video.

  • @masny683
    @masny683 6 лет назад +6

    Hi, im from poland, thank you for help me. Love you! really this help me. ;)

  • @paracha3
    @paracha3 9 лет назад +2

    Very detailed and concise.

  • @johnstephengabula5795
    @johnstephengabula5795 2 года назад +1

    thanks for the video, waiting for a link to the next video

  • @yuriyelkin580
    @yuriyelkin580 Год назад +1

    David, thanks!

  • @ExD3aD
    @ExD3aD 8 лет назад +1

    Thanks so much. God bless you!

  • @vishnu4486
    @vishnu4486 4 года назад +1

    Thanks you very much bro...❤️

  • @INDIGITALPOINTindigitalpoint
    @INDIGITALPOINTindigitalpoint 7 лет назад +1

    thank you for your time

  • @basilzimba5273
    @basilzimba5273 3 года назад +1

    Well explained. Thank you very much.

    • @thornwebdesign
      @thornwebdesign  3 года назад +1

      Thanks for the nice comment, and also for the feedback, I am glad that you liked it.

  • @advancewebdevelopment9802
    @advancewebdevelopment9802 Год назад +1

    Super

  • @avocadolujan1072
    @avocadolujan1072 2 года назад +1

    Great your contents!! Keep it up!!

    • @thornwebdesign
      @thornwebdesign  11 месяцев назад

      Your encouragement keeps me going. 🚀

  • @aviontics
    @aviontics 3 года назад +1

    good tutorial

  • @vinodpal2780
    @vinodpal2780 7 лет назад +1

    thank u sir, very much helpfull video

  • @mohankrishna3825
    @mohankrishna3825 3 года назад +1

    Thank you. You voice is just sounded like Jason Santham.

    • @thornwebdesign
      @thornwebdesign  11 месяцев назад +1

      Blimey, cheers for the compliment, mate! You reckon I should audition for the next action flick alongside Jason Statham? 🎬🤣

  • @jeremydeubanks
    @jeremydeubanks 7 лет назад +1

    Extremely helpful. Thank you !

  • @saptarshimondal9063
    @saptarshimondal9063 3 года назад +1

    Thank you very much

  • @bibhutibhusansahoo3350
    @bibhutibhusansahoo3350 4 года назад +1

    Yes, It is helpful. worked for me thanks

  • @mismis3153
    @mismis3153 6 лет назад +1

    You Just saved me big time thank you very much

  • @WolfSolo1
    @WolfSolo1 5 лет назад

    Thank you a lot for the detailed tutorial and information.

  • @GabrielAHOG
    @GabrielAHOG 2 года назад +1

    Thank you!

    • @thornwebdesign
      @thornwebdesign  11 месяцев назад

      Stay tuned for more content, and thanks for being a part of our community!

  • @sandwichtube
    @sandwichtube 5 лет назад +1

    Thanks this solved my problem. I’m not sure why all of the websites I visited used different commands that didn’t work.

  • @ThaReportar
    @ThaReportar 8 лет назад +1

    awesome tutorial ! helped me a lot ! Thanks

  • @KoljaMineralka
    @KoljaMineralka 11 месяцев назад +1

    You need a separate chapter on best practices for db user administration, when create and use read only user etc or user for use by scripts only

    • @thornwebdesign
      @thornwebdesign  11 месяцев назад +1

      Thank you for watching my video on MySQL user administration and for your thoughtful comment. I'm delighted to see your interest in best practices for database user management, including the creation of read-only users and users for script usage.
      Your suggestion is a fantastic idea, and I wholeheartedly agree that these topics deserve a dedicated chapter. It's crucial to understand the finer details of user privileges and the secure management of database access. Rest assured, I will be creating a separate chapter to address these best practices, catering to the needs of both beginners and experienced developers.
      In the meantime, keep an eye on my channel for more in-depth content on database administration and other related topics. Your input is invaluable, and it motivates me to keep delivering high-quality, informative content.
      Thank you for being a part of our learning community, and stay tuned for more insights and tutorials!
      Warm regards,
      David

  • @gilbertgmoney7386
    @gilbertgmoney7386 9 лет назад +1

    Thanks for the video. I learned a few things. Will you please do a video where you explain host...local host...etc. I'm confused with that topic. Thanks Again.

  • @xicheung7867
    @xicheung7867 9 лет назад +1

    User:james - he's so badass. Lol. Great tutorial.

  • @DefinitelyNotAGeek
    @DefinitelyNotAGeek 3 года назад +1

    very good video, you help me to much :D

  • @coolpickings
    @coolpickings 6 лет назад +1

    learning kali apache2 mysql and hvwa many thanks from a noob :D

  • @mohamedrifthy6222
    @mohamedrifthy6222 11 лет назад +1

    nice tutorial but your explanation is very fast i couldn't understand but nice. And i have a question can you explain me?
    The question is "How to make my database in more secure?" AND what are the security types in MySQL database?

  • @katon361
    @katon361 5 лет назад +1

    thank you very much!!!

  • @BC99
    @BC99 Год назад +1

    Thanks

  • @briandacallos4234
    @briandacallos4234 5 лет назад +1

    thanks it really helped me !

  • @nawin00001
    @nawin00001 6 лет назад

    I like this video david thank you

  • @danz5760
    @danz5760 5 лет назад +1

    THANK YOU!

  • @VaheGharibyan
    @VaheGharibyan 7 лет назад +1

    I am looking for a topic about privileges. Is it possible to set grant privileges for a column ?
    From a user dependencies, sql return not all columns.
    Like a table grant api * . * , is possible set column privileges like that * . * . *

  • @carlosgaleanohn
    @carlosgaleanohn 5 лет назад

    TY your video help me so much!

    • @thornwebdesign
      @thornwebdesign  5 лет назад +1

      Thanks for the feedback, it's my pleasure.

  • @smitachoudhuri8924
    @smitachoudhuri8924 4 года назад +1

    thank you.

  • @dominiclapitan8466
    @dominiclapitan8466 6 лет назад

    This is so helpful. Thank you!

  • @Matthew.1994
    @Matthew.1994 7 лет назад +1

    how can i let others outside from my internet (not LAN, just via internet) connect to the database? they always tget that they are not allowed to connect. how can i make a global user where all people, that i give my programm (created with visual studio), can connect ?

  • @lualsilva
    @lualsilva 4 года назад +1

    Hi, im from Brazil, thank you help me with: "error 1410 (4200): you are not allowed to create a user with grant"

  • @DennisAllard
    @DennisAllard 3 года назад +1

    Apparently if you do not supply the -u option to the mysql command, the default value is the user name of the logged-in OS user?

  • @rajatsaha891
    @rajatsaha891 5 лет назад +2

    Hi David,
    When I'm trying to GRANT ALL to a new user created, from root it's showing "You are not allowed to create a user with Grant". Can you help?

    • @thornwebdesign
      @thornwebdesign  4 года назад

      Maybe this could help?
      stackoverflow.com/questions/50177216/how-to-grant-all-privileges-to-root-user-in-mysql-8-0

  • @gingerbreadman3108
    @gingerbreadman3108 6 лет назад +1

    what if my terminal says that mysql dosent exist?

  • @batmandarknite3972
    @batmandarknite3972 10 лет назад +1

    thank you :)

  • @MartinKangPlus
    @MartinKangPlus 6 лет назад +1

    thanks

  • @niiadjeisowah
    @niiadjeisowah 7 лет назад +5

    Hello @david, after creating the user, how do you set the password ?

    • @naxbinkhan9346
      @naxbinkhan9346 5 лет назад +2

      idenified by 'password'

    • @baltazar0007
      @baltazar0007 5 лет назад +1

      password was the password he made

    • @thornwebdesign
      @thornwebdesign  3 года назад +1

      sorry for the late response. Either way thanks for the feedback and sorry for not answering, I hope that you found the answer.

  • @yesmangunera9574
    @yesmangunera9574 4 года назад +1

    ERROR 1133 (42000): Can't find any matching row in the user table

  • @the_abduvakhob
    @the_abduvakhob Год назад +2

    class

    • @thornwebdesign
      @thornwebdesign  11 месяцев назад +1

      very grateful for your thoughts.

  • @jeetu7459
    @jeetu7459 8 лет назад +1

    ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'david_home'

    • @ThePerrocraft
      @ThePerrocraft 8 лет назад

      Check username and password.
      quote:
      "mysql -udavid -p"
      Enter your password:"yourpasswordhere"

  • @mkhan6021
    @mkhan6021 4 года назад +1

    Can database root user change password for David?

    • @thornwebdesign
      @thornwebdesign  4 года назад +1

      The root user or any user can do everything if it has the correct grant privileges.

  • @BlueSpirit006
    @BlueSpirit006 5 лет назад +1

    Could someone tell me how to connect with this terminal to another hosting

    • @thornwebdesign
      @thornwebdesign  5 лет назад +1

      Could you explain it a bit further. Do you mean how to connect to a remote mysql server with a terminal?

    • @BlueSpirit006
      @BlueSpirit006 5 лет назад +1

      I mean i have a game hosting, it's called samp and it works with mysql and it's has it's own base and everything

  • @vilenationgaming
    @vilenationgaming 3 месяца назад

    I followed this and it appears that I was able to add a user and set permissions (not sure how to view permissions) but when I try to log into the workbench with the new user account I get Access Denied for user 'username'@'servername' (using password: YES). Can you help?

    • @thornwebdesign
      @thornwebdesign  3 месяца назад

      Yes, watch the video again

    • @vilenationgaming
      @vilenationgaming 3 месяца назад

      @@thornwebdesign I did. Still getting error.
      WHen using select host, user from mysql.user; I see the user and when using SHOW GRANTS FOR 'USER'@'localhost'; I see the permissions.
      But when trying to access the MYSQL workbench GUI, I get the error above.

  • @georgev1980
    @georgev1980 7 лет назад +2

    how would i view password of a user in mysql

    • @mobiletraderkpk
      @mobiletraderkpk 6 лет назад

      select user,password from mysql.user;

    • @naxbinkhan9346
      @naxbinkhan9346 5 лет назад

      select authentication_string from mysql.user ;
      but the password is in increpted form

  • @kabiras.2274
    @kabiras.2274 6 лет назад

    thanksssss

  • @Cimex090
    @Cimex090 8 лет назад +1

    what's the password for mysql -p ?

    • @scherezade-sdh4168
      @scherezade-sdh4168 8 лет назад

      +Cimex090 If you're using XAMPP, just set it manually.

  • @chaweb1234
    @chaweb1234 4 года назад +1

    doesnt work

  • @Mocka-yf4ez
    @Mocka-yf4ez 4 года назад

    lots of adds

    • @thornwebdesign
      @thornwebdesign  4 года назад

      Not going to apologise for it, but the bills have to get paid. Watch all my videos will help. Thanks for the feedback.

  • @ollyonearth
    @ollyonearth 9 лет назад +1

    Thanks so much. God bless you!

  • @avocadolujan1072
    @avocadolujan1072 2 года назад +1

    Great your contents!! Keep it up!!

    • @thornwebdesign
      @thornwebdesign  11 месяцев назад +1

      I'm here to help, and your feedback is greatly appreciated.