# 1 Connecting Python and MySQL in IDLE/Jupyter Notebooks.

Поделиться
HTML-код
  • Опубликовано: 11 апр 2020
  • #PYTHON #MySQL #CONNECTION

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

  • @HammerHead129
    @HammerHead129 Год назад +4

    Thank you so much. This video is old and I ran into some bugs trying your method, but I managed to figure them out. Leaving this comment here in case I have to come back to it on a different computer.
    For the IDLE app: At about 2:53, you say to type "pip install mysql-connector", and unfortunately at the time of this comment, this is depreciated. Instead use "pip install mysql-connector-python". At 4:15 I noticed you did a ninja edit where you changed the "mydb = sql.connector" line to "mydb = sql.connect" and this is important. Finally, I was confused because I had multiple Python versions installed. 3.9, 3.10 and 3.11 (I know bad practice on my part). Make sure you are using the same version for both pip install and IDLE shell.
    For Jupyter Notebook: I ran into another error when I tried to run the mydb command, which was "mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported". To solve this, I created a cell and ran "pip install mysql-connector-python" prior to trying it again.

    • @aminatyusuff6921
      @aminatyusuff6921 Год назад

      You are beautifully blessed. You can't imagine how you just saved me from giving up when I'd barely started. 😊

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

      @@aminatyusuff6921 Thank you. Word of advice for whenever you run into bugs when programming: Try copying and googling the exact text of the error message. More likely than not, you'll find a solution on stackoverflow. You may have to do some trial and error.

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

    Very informative....thanks a lot for sharing :)

  • @kunalrajput8855
    @kunalrajput8855 Месяц назад

    Thanks bro lot of video I watched but you did it

  • @sheikhshahbaz2848
    @sheikhshahbaz2848 3 года назад +2

    I was in trouble as how to connect to mysql . But this video resolves it . These commands really work . Thankyou Shabbir for this awesome video....

    • @shabbirgovernor
      @shabbirgovernor  3 года назад

      Glad to help mate!🙂

    • @parthivdas5383
      @parthivdas5383 2 года назад

      @@shabbirgovernor sir I have a problem actually while writing the code in idle Here attribute error is being shown that mysp.connctor has no attribute connector how to fix this

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

    Thank you.
    Great video 😊

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

    after writing cd Scripts it still shows the system cannot find the path specified... what am I supposed to do now?

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

    thank you so much mate

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

    Many Many Thanks.... This video solved my problem. Thanks a lot.

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

    In my case it is showing connection refused error. Please help me how to resolve this issue.

  • @user-eh4xk7ze1n
    @user-eh4xk7ze1n 2 года назад

    3:09 how i can open thes pega

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

    Scripts -showing the system cannot find path

  • @AnalystInMaking
    @AnalystInMaking 2 месяца назад

    Thank you ❤

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

    tagri

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

    I am getting this error... Authentication plugin 'caching_sha2_password' is not supported
    when trying to create a connection between jupyter notebook and mysql....
    Kindly guide how to resolve

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

      I am getting the same error, did you ever resolve it, plz tell me how if you did.

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

    Mysql is connected toh jupyter but when i am using import mysql.connector in shell its showing module not found

    • @m38jazzsilver
      @m38jazzsilver 3 года назад

      The same here @Saksham

    • @sakshamsingh4699
      @sakshamsingh4699 3 года назад

      @@m38jazzsilver oh i found the solution to it...u just need to uninstall anaconda and python from ur pc then install python again but this tine add it to your PATH then download the module...it worked for me hope ur problem get solved
      Ohh and u can reinstall conda after it if needed

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

    Thanks Bro for the video. Do more videos like this.

  • @lavishsehgal5318
    @lavishsehgal5318 2 года назад

    it's showing no module named mysql and I have already installed the pip

  • @ankurr5803
    @ankurr5803 3 года назад +4

    😢 ERROR :No module named 'mysql.connector'

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

      pip install it

    • @ankurr5803
      @ankurr5803 3 года назад +3

      @@shabbirgovernor It is already installed. 😶

  • @manikantasai721
    @manikantasai721 Год назад

    I tried with : pip install mysql-connector-python it worked ..

  • @NikhilPal-zn8kp
    @NikhilPal-zn8kp 6 месяцев назад

    Sir pip command work nahi kar rahi