#73 Python Database Connection | MySQL

Поділитися
Вставка
  • Опубліковано 3 лис 2024

КОМЕНТАРІ • 549

  • @krishnajunk
    @krishnajunk 6 років тому +51

    I watched whole of these Python playlist and learnt the Python for FREE. Thanks a lot. Appreciate your teaching and work :-)

  • @jdiez7092
    @jdiez7092 4 роки тому +37

    Probably the best explanation of how to connect to MySQL ever !!

  • @meghanam7550
    @meghanam7550 3 роки тому +18

    I learnt python by seeing all your videos . Hats off to you sir 👏

  • @swadhikarc7858
    @swadhikarc7858 5 років тому +10

    Couple of years ago I used to be your channel fan for Java. However, now you're rocking in python. You're definitely a master of all trades. Kudos you talent

  • @darshaanaghicha8023
    @darshaanaghicha8023 2 роки тому +13

    One correction, if you are watching in 2022 @04:00 you might be getting "Authentication plugin 'caching_sha2_password' is not supported" error.
    Just uninstall mysql-connector & install mysql-connector-python.

  • @watchout1435
    @watchout1435 4 роки тому

    if your cmd cant find pip or pip3 just go to python's official website and download the latest version of python and then try pip on your cmd , worked for me

  • @kerthikeyan7346
    @kerthikeyan7346 3 роки тому +1

    really you are alien......helped me a lot everytime I search something I am ending up with your solution....its really working out for me....

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

    want to start by thanking you sincerely for all the effort you've put in-you're truly the best. After following your Python series, I feel confident that I've grasped all the key concepts. However, I'm wondering if you've covered Python scripting and Robot Framework somewhere, as I couldn't find any content on that in your channel. Could you please let me know if you've explained those topics? Thank you!

  • @sagarrao79
    @sagarrao79 5 років тому +4

    Pychram or Sublime error:
    if you have mysql 8.0.15 version , then you need to have mysql connector-8.0.15
    Open Pycharm go to File->Settings-> Preferences->Project->Python Interpreter inside Pycharm, and search for mysql-connector-python and select version as 8.0.15 from dropdown list and click in install.
    for Sublime:
    go to command prompt, uninstall any old mysql connector
    pip3 uninstall mysql-connector
    C:\Users\Sanju>pip3 uninstall mysql-connector
    pip3 install mysql-connector-python
    C:\Users\Sanju>pip3 uninstall mysql-connector-python

    • @gamkht
      @gamkht 5 років тому

      Thank you very much! I had the problem ' Authentication plugin 'caching_sha2_password' is not supported' and this fixed it for me

  • @kanishkmewal3885
    @kanishkmewal3885 3 роки тому +10

    Visual Studio is Baap! 🔥
    Using it since i was 13 years old

    • @Ian-pc2mn
      @Ian-pc2mn 3 роки тому +1

      how do
      you connect with vs

    • @abhinavthapliyal8322
      @abhinavthapliyal8322 3 роки тому

      tu kon hota hai be baap banane wala.

    • @News_Shorts-
      @News_Shorts- 3 роки тому

      @@abhinavthapliyal8322 hmm.. but even i use it

  • @roshnimehta9070
    @roshnimehta9070 3 роки тому

    Thanks a lot it helped me .I am trying from so many days I had seen lot of video but never work. But this video clear my problem.

  • @ValorantEdits
    @ValorantEdits 3 роки тому +9

    Who all are watching 1 day before Practical exam

  • @PavanKumar-by8dc
    @PavanKumar-by8dc 4 роки тому +1

    Inserting values into tables , after the line mycursor
    insert = ' ' ' INSERT INTO STUDENT VALUES ( 106 , ' PAVAN ' ) ' ' '
    mycursor.execute( insert)

  • @maitreyeedey5960
    @maitreyeedey5960 3 роки тому +1

    your videos are really helpful to me.. thank you very much

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

    I recommend people to first uninstall mysql-connector and than install mysql-connector-python as there should clash between both of than while importing library

  • @julianjohnmert8658
    @julianjohnmert8658 4 роки тому +11

    Hey Navin, when I start working and earning a salary I'm donating I promise. I mean I am totally straight but I have never loved another man this much.

  • @SumanthLazarus
    @SumanthLazarus 4 роки тому +7

    Thanks mate. What is the difference/purpose between using 'mysql-connector' vs 'sqlalchemy' ?

  • @GLDN06
    @GLDN06 3 роки тому +1

    For those students whose output isn't showing properly first install the correct packages properly. Download Pycharm community edition first then got to File then settings. Over there under python interpreter click on the plus icon on top and search mysql-connector-python. Download it and your good to go.!!!

    • @pro_fessor.
      @pro_fessor. Рік тому

      And showing, module 'mysql.connector' has no attribute 'connect'
      Any solutions.?

  • @GAMINGWITHDESTRYER
    @GAMINGWITHDESTRYER 4 роки тому +1

    If you guys getting error like me go to the folder where Python is installed press shift+RMB and click open PowerShell here and write the code below :
    C:\Users\thede\AppData\Local\Programs\Python\Python38> py -m pip install mysql-connector

  • @dathashiva
    @dathashiva 3 роки тому

    I'm a new user of ubuntu for installation of MySQL taken the whole day. Atlast it worked.

  • @nortonnnantikill403
    @nortonnnantikill403 5 років тому +16

    Well explained thank you very much Sir

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

    If anybody gets a dumb error try adding use_pure = True:
    mydb = mysql.connector.connect(host="localhost", user = "root", passwd = "password", use_pure = True)

  • @moinafsana5945
    @moinafsana5945 5 років тому +4

    Those who have facing connection problem need to install two pckg
    1st mysql-connector
    2nd mysql-connector-python
    *** if you are using workbench 8.0 CE

  • @공대생코딩하는
    @공대생코딩하는 5 років тому +15

    hello im korean student i had saw this video so i want to talk you very appreciate.

  • @Family_12362
    @Family_12362 Рік тому +1

    Super Explanation Sir👌👉.

  • @selcukdoven
    @selcukdoven 5 років тому +7

    Hi, Firstly I want to thank you for this useful video series. Could you please release the Oracle/Mango database connection and basic queries. A lot of people use these databases. Thank you so much.

  • @PavanKumar-by8dc
    @PavanKumar-by8dc 4 роки тому +1

    Thanking You for kind this Stuff and Encouragement...this is really best to everyone.. You are a real master, without skip any , and u thought as everything which is related to Python...

  • @agbojoraphael7868
    @agbojoraphael7868 6 років тому +15

    Great job Navin. Your series have been really helpful. I've learnt a lot. I'd appreciate if you can do also on Big data using python. Looking forward to it so much.

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

    I don't know anything about MySQL, so I got the message. I need to learn it, first I will finish this playlist and learning MySQL will be my next endeavour.
    A BIG thank you to the whole team behind this effort.

    • @MSAbhi-gj8pn
      @MSAbhi-gj8pn Рік тому

      Can you plz share from where you are learning SQL?

  • @shanuchauhan4814
    @shanuchauhan4814 6 років тому +1

    Best video on you tube ,Your Explanation is very good
    child can understand your tutorials easily

  • @arindammallick9034
    @arindammallick9034 5 років тому +4

    please make a video on python with mysql using xampp

  • @ryan.aquino
    @ryan.aquino 4 роки тому

    What is better for production builds? and large scale applications. Do we use ORM like SQLAlchemy? or just a connector. If performance is the metrics

  • @chaitanyakrishna9398
    @chaitanyakrishna9398 4 роки тому

    sir, I am a complete beginner in python. I am learning python from it's word meaning, from you. But this video creating a fear that I need some programming background to watch upcoming playlist videos. Is it true sir. If yes please help me .....sir

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

    Wow, you are an angel! Thanks for the teaching.

  • @krishnaKumar-zi6ct
    @krishnaKumar-zi6ct 4 роки тому

    Clear steps to establish connection and try initial queries. Thanks Navin!

  • @avisekdey2224
    @avisekdey2224 6 років тому +5

    Really nice sir. Content is very good and to the point.

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

    GOD sir ji : i watched both the videos , its much helpful

  • @rojertufani131
    @rojertufani131 3 роки тому

    Thank you so much sir.. I have run this code in VS code and it is still working

  • @wasteyourtime02
    @wasteyourtime02 3 роки тому

    this guy is the best i wish i had found this channel earlier

  • @sapl923
    @sapl923 5 років тому +1

    i am learning and understanding better than my whole month classes thanku sir

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

    Awesome and very easy to connect, only I struggle while installing mysql connector

  • @dudu_bubu14
    @dudu_bubu14 3 роки тому

    Superb sir Thank you so much without your video it is not possible to connect python with mysql

  • @omkartaur3887
    @omkartaur3887 5 років тому +3

    Your all series videos are awesome and brilliantly explained. Can you also please make tutorial on ' tkinter GUI ' ?

  • @1112sravani
    @1112sravani 6 років тому +2

    It would be really useful...Recently i have done some project for which I needed a video like this very badly.. I've had to watch so many videos to complete it..Nobody is as good as u

  • @vivekgupta5041
    @vivekgupta5041 3 роки тому

    Very useful and helpful video to get started with python and MySQL !!!

  • @nityasoni7433
    @nityasoni7433 3 роки тому +1

    Sir pls explain database connectivity with pycharm also....I m using pycharm from ur starting video

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

    this video was very successful for me

  • @premstein16
    @premstein16 5 років тому +29

    Navin, can't find the pip3 installation vdo which you where mentioning.

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

      I had the same situation, the way I solved was to go where python is located, in my case c:\users\myname\python\pip3 install mysql-connector, I hope this helps

  • @codingwithparamesh7496
    @codingwithparamesh7496 3 роки тому

    The video was very nice. All it compromises of useful informations.

  • @ayushrajput6284
    @ayushrajput6284 4 роки тому +1

    Sublime text 3 is love ❤️❤️
    I do all coding whether it be C, python, css etc all in one app... ✌️

  • @RajeshKumar-fu2cy
    @RajeshKumar-fu2cy 4 роки тому

    thank you for this video....please do video for oracle 19c with python .....if you have time

  • @Ivan_e9812
    @Ivan_e9812 4 роки тому +1

    Thank you so much! Simple and to the point! Worked like a charm!

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

    Great explanation

  • @amoghranganath4155
    @amoghranganath4155 5 років тому +1

    Sir, the best guide you are, simple and to the point

    • @amoghranganath4155
      @amoghranganath4155 5 років тому

      Sir, for Python, we need to do pip3 install mysql-connector-python

    • @PavanKumar-by8dc
      @PavanKumar-by8dc 4 роки тому

      @@amoghranganath4155 that is for installation in PyCharm , not for Sublime text

  • @Rocky-me7qh
    @Rocky-me7qh 6 років тому +3

    You are great sir

  • @salihaider6100
    @salihaider6100 5 років тому +3

    Make a video on beautifulsoup/webscrapping. Please.

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

    Thanks for uploading such an informative video

  • @Chhiling08
    @Chhiling08 6 років тому +1

    I always watch your video sir u r very good teacher 😊😊

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

    Hello it's really heplfuf.
    Could you please make a video one reading an excel file using python and then store the values in a tabular format in database.
    Please reply it's really important to me

  • @Family_12362
    @Family_12362 Рік тому +1

    Sir ,can we use Thonny IDE

  • @ashishanjana7403
    @ashishanjana7403 4 роки тому

    how to use sublime here do i need to install it first? if so, from where please guide me sir...
    thanks a ton for this series...lots of respect for you and your work...

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

    Very informative. Thank You!

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

    Great learning... It was great learning experience.

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

    Hello Sir. Great Video. Can you please make video on connecting MySQL with colab. I am facing challenges.

  • @himanshuchoudhary8222
    @himanshuchoudhary8222 5 років тому +1

    I'm very glad to see your video...and keep giving such kind of knowledge full of our study.......stay happy and blessed

  • @tanishq2766
    @tanishq2766 5 років тому +1

    Use the command mysql-connector-python rather than using mysql-connector while using the pip install....(if ypu are using the latest version of MySQL its 8.0.7 i guess)
    Regards:- Tanishq:)

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

      Den how to import the mysql module in code

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

      @@vanithas2701 import myql-connector

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

    Thank you great developer

  • @aadeshshinde9129
    @aadeshshinde9129 3 роки тому

    Oswaal book scan kiya to idar redirect kiya wow🤩🤩

  • @vaibhavsharma399
    @vaibhavsharma399 3 роки тому

    so will the procedure be same in case of connecting with a live database server?

  • @SamaresMandal
    @SamaresMandal 3 роки тому

    Nice video. Thanks. Please show the same for oracle also.

  • @vijaybhaskar689
    @vijaybhaskar689 3 роки тому

    This is great. I hope you the similar process for IBM DB2. If you have that video can you
    Please share 😊

  • @akhilratnachettri2982
    @akhilratnachettri2982 4 роки тому

    Thanks for the help.

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

    Great video and platform to learn quick and easily.

  • @briantoo4390
    @briantoo4390 3 роки тому

    wow well explained

  • @maimster4256
    @maimster4256 3 роки тому

    You're good and I like it!!

  • @monnika5
    @monnika5 4 роки тому

    Gr8 video helped alot for my practical

  • @vaishakhkp5612
    @vaishakhkp5612 5 років тому +1

    This is really helpful, could you please explain about posting data from a html for to the database for user registration and login using python.

  • @tmurari9452
    @tmurari9452 Рік тому +1

    Sir plz do database connection in pycharm

  • @harshadgowardhanbhai1846
    @harshadgowardhanbhai1846 6 років тому +5

    My Favorite HTML And CSS

  • @lakshit6429
    @lakshit6429 4 роки тому

    thankyou very very very muchhh sir i was too much confused with this concept

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

    Master navin reddy, Can you upload a video abot Django with Oracle DB

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

    Thanks for the video

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

    Thank you so much sir ,It was helped me a lot. ✨☺️Keep going.

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

    Navin Sir, It is wrong library wrong used in the video that is pip install mysql-connector.
    The correct library is pip3 install mysql-connector-python to connect mysql with python and pycharm.

  • @swethasai-qv5kj
    @swethasai-qv5kj 4 роки тому

    excellent information

  • @gaganadithya8581
    @gaganadithya8581 4 роки тому

    Sir please make videos on turtle and tkinter python...

  • @prabhakarvadakattu534
    @prabhakarvadakattu534 3 роки тому

    Which software are you using to record
    the videoo to get the dask top screen and your self at the same time. Please reply sir

  • @yigitgenc1734
    @yigitgenc1734 4 роки тому

    while putting in the "host" variable you put localhost there but if you were hosting this database on a website what were you supposed to put? The websites link or the ip address of that website?

  • @alaydyngholechragh5678
    @alaydyngholechragh5678 5 років тому

    hello
    one question
    which database i should use for python for create web application??
    a database with best speed an performance !!
    i use windows 10 .. and IDE Visual studio Code
    i want a database for python Which is not necessary to change it later to another database

  • @muzmmilpathan7781
    @muzmmilpathan7781 6 років тому

    Awesome sir you have unbelievable power

  • @razuahmedrafi8905
    @razuahmedrafi8905 3 роки тому

    so nice of you bro!

  • @thoyazpc7442
    @thoyazpc7442 4 роки тому

    sir can you plese make video how to connect oracle sql plus to pycharm......................................

  • @umamaheshkummari7987
    @umamaheshkummari7987 5 років тому +9

    description box link didn't help to solve pip3 not found error.Please help us.Thanks in advance.

    • @maniksayal2496
      @maniksayal2496 5 років тому +1

      hey uma I was also getting the same problem.
      To solve it just see the video of setting up the path video from this playlist and then try cmd prompt pip3/3.7(depends upon the version you are using) install MySQL-connector

    • @john16584
      @john16584 5 років тому +2

      please use this command on cmd ""pip install mysql-connector-python"" this will solve the issue.thanks

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

    thank you so much sir

  • @bindiyaroy8701
    @bindiyaroy8701 4 роки тому

    This is the best python tutorial I must say ...thank you sir

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

    Just fantastic..

  • @joansmichael1862
    @joansmichael1862 6 років тому

    navin sir,may know which notes or book should i refer for python from basics to advanced

  • @pranaygattu620
    @pranaygattu620 6 років тому

    thank you sir. the video quality was excellent , and you are having very excellent teaching skills as well as programming skills, and that's why we love navin reddy .

  • @monalichakrabortybtech4158
    @monalichakrabortybtech4158 4 роки тому

    thankyou sir

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

    can we use Xampp myphpadmin instead of MySQL workstation?