How to connect Python with MySQL database?

Поделиться
HTML-код
  • Опубликовано: 12 янв 2025

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

  • @M.J.S-m7f
    @M.J.S-m7f Год назад +1

    this was helpful to download the connector. Thank You

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

    Thank you so so so much mam you are such a angel for me😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊

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

    Woooow well explained! thank you for making this video

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

    muchas gracias señorita😀

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

    Got this in recommended! Very well explained! Thank you! 👍

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

    Thanku mam....worth💓

  • @OK-ns1dm
    @OK-ns1dm 3 года назад +1

    I followed the steps from 10:33 but when I am trying to reconnect XAMPP, there was an error.
    Error: Apache shutdown unexpectedly.
    7:25:03 PM [Apache] This may be due to a blocked port, missing dependencies,
    7:25:03 PM [Apache] improper privileges, a crash, or a shutdown by another method.
    May I know how to fix this?

    • @OK-ns1dm
      @OK-ns1dm 3 года назад +4

      Update: It works ! My mistake. It should have been a space between cgi-script and py.
      Thank you for wonderful tutorial

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

      @@OK-ns1dm 👍

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

    The apache server is not working after adding the lines in config file

  • @rebeccadunne7207
    @rebeccadunne7207 10 месяцев назад

    where in my xampp file should I save the python file, with the database or in the htdocs with my website?

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

    great video madam. Can python be used to enter in the database table? or is it only for displaying the database table?

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

      We can perform all operations(insert,delete,update) in database using python. This link will be useful, ruclips.net/video/rHwHGeh4jz0/видео.html

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

      @@Trinitysoftwareacademy thank you very much

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

    Great video mam but i want to connect with real database not on localhost
    Can you tell me how to do it

  • @MJ-tn8tw
    @MJ-tn8tw 4 года назад +2

    Mam even after successfully installing mysql connector with pip the module is not importing while doing code

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

      Ok. Can you specify the error which you get? And also the python version you are using?

    • @MJ-tn8tw
      @MJ-tn8tw 4 года назад +1

      Python version I am using the 3.7 and pip 20.4 for my sql connector I installer using the command python -m get mysql-python-connector some thing like that it said it successfully installed but while running the same code after creating the database successfully in php my admin it is throwing module error for import mysql-python.connector something like that in the pycharm interface anyways tks for your reply mam
      also should pycharm location and python should be of same directory?

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

      @@MJ-tn8tw Pycharm location and python need not be in the same directory. that's not a problem. you can try installing, pip install mysql-connector-python-rf

    • @MJ-tn8tw
      @MJ-tn8tw 4 года назад +1

      @@Trinitysoftwareacademy okay mam thank you for time

  • @RoystonDsouza-bo2hs
    @RoystonDsouza-bo2hs 3 года назад +1

    Print("thank u ma'am")

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

    how will you make any row unique in registration form so that if user enters same username that's already registered in database mysql ,it shows error as ("already registered", "try different username")

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

    Is this really needed? Using SQLAlchemy Docs is enough! Just connect via that, and you are done

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

    To execute in Browser we need xampp otherwise its not needed!!!