SQL With Python | Python Database Connectivity Tutorial | SQL Tutorial For Beginners | Simplilearn

Поделиться
HTML-код
  • Опубликовано: 27 июл 2024
  • 🔥 SQL Certification Course - www.simplilearn.com/sql?...
    🔥Full Stack Developer (MERN Stack): www.simplilearn.com/full-stac...
    🔥Full Stack Java Developer (Masters): www.simplilearn.com/java-full...
    🔥 Full Stack Developer - MEAN Stack - www.simplilearn.com/full-stac...
    🔥 Full Stack Java Developer - www.simplilearn.com/java-full...
    This video on SQL with Python will help you understand Python database connectivity. You will learn to connect a MySQL database with Python Jupyter Notebook. You will see how to write user-defined functions to create server connection, create a database and execute queries. In this SQL tutorial for beginners video, we'll explore some of the most crucial SQL commands using Python programming.
    00:00:00 Introduction to SQL With Python
    00:01:22 Import Libraries to Jupyter Notebook
    00:02:13 Define Server Connection in Jupyter Notebook
    00:07:45 Create MySQL Python
    00:12:50 Verify connection
    00:13:19 Connect Database
    00:16:35 Execute SQL Queries
    00:19:07 Create Database
    00:24:54 Insert Records in Database
    00:28:38 Read Queries and Display Results
    00:30:30 DDL and DML Commands (SELECT / HAVING / WHERE / ORDER / UPDATE / DELETE / GROUP BY)
    ✅Subscribe to our Channel to learn more about the top Technologies: bit.ly/2VT4WtH
    ⏩ Check out the SQL training videos: • What is SQL | Introduc...
    #SQLQithPython #PythonAndSQL #PythonDatabaseConnection #PythonAndSQLDatabaseConnection #PythonDatabseConnectivityTutotorial #SQLCourse #SQLTraining #Simplilearn
    What is SQL?
    SQL is a Structured Query Language to communicate with relational databases. Some of the popular databases available are MySQL, Oracle, MS SQL Server, and PostgreSQL. Using SQL with Python, you can store, retrieve, update, delete and manipulate data. You can permit users to perform specific tasks on tables, procedures, and views.
    ➡️ About Post Graduate Program In Data Analytics
    This Data Analytics Program is ideal for all working professionals and prior programming knowledge is not required. It covers topics like data analysis, data visualization, regression techniques, and supervised learning in-depth via our applied learning model with live sessions by leading practitioners and industry projects.
    ✅ Key Features
    - Post Graduate Program certificate and Alumni Association membership
    - Exclusive hackathons and Ask me Anything sessions by IBM
    - 8X higher live interaction in live online classes by industry experts
    - Capstone from 3 domains and 14+ Data Analytics Projects with Industry datasets from Google PlayStore, Lyft, World Bank etc.
    - Master Classes delivered by Purdue faculty and IBM experts
    - Simplilearn's JobAssist helps you get noticed by top hiring companies
    - Resume preparation and LinkedIn profile building
    - 1:1 mock interview
    - Career accelerator webinars
    ✅ Skills Covered
    - Data Analytics
    - Statistical Analysis using Excel
    - Data Analysis Python and R
    - Data Visualization Tableau and Power BI
    - Linear and logistic regression modules
    - Clustering using kmeans
    - Supervised Learning
    👉 Learn More at: www.simplilearn.com/pgp-data-...
    🔥Caltech Data Analytics Bootcamp(US Only): www.simplilearn.com/data-anal...
    🔥🔥 Interested in Attending Live Classes? Call Us: IN - 18002127688 / US - +18445327688

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

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

    🔥Full Stack Developer (MERN Stack): www.simplilearn.com/full-stack-developer-course-mern-certification-training?NHkRgWzTI&
    🔥Full Stack Java Developer (Masters): www.simplilearn.com/java-full-stack-developer-certification?NHkRgWzTI&
    🔥 Full Stack Developer - MEAN Stack - www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training?NHkRgWzTI&
    🔥 Full Stack Java Developer - www.simplilearn.com/java-full-stack-developer-certification?NHkRgWzTI&

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

    🔥 IITM Pravartak Professional Certificate Program In Full Stack Development - MERN (India Only): www.simplilearn.com/full-stack-developer-course-and-certification-iitm-pravartak?TempLink1&Comments&
    🔥Post Graduate Program In Full Stack Web Development: www.simplilearn.com/pgp-full-stack-web-development-certification-training-course?TempLink1&Comments&
    🔥 Full Stack Developer - MEAN Stack - www.simplilearn.com/full-stack-web-developer-mean-stack-certification-training?TempLink1&Comments&
    🔥 Full Stack Java Developer - www.simplilearn.com/java-full-stack-developer-certification?TempLink1&Comments&

  • @pulsereality806
    @pulsereality806 3 года назад +21

    You could explain behind the scene mechanisms rather than reading everything you type like wat is not null, why were the arguments passed inside the connectors etc... still gave u a thumbs up for some of the new info I got from the video

  • @JJ-wx3nd
    @JJ-wx3nd 2 года назад +5

    If I know how to use SAS SQL to manipulate dataset, is there a way to run the SAS code through Python? (so that I can save some time by not learning Python data manipulation code)?

  • @bukkarayasumdramramakrisha7902
    @bukkarayasumdramramakrisha7902 2 года назад +2

    Thanks for the information

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

      Hope you enjoyed our video! We have a ton more videos like this on our channel. We hope you will join our community!

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

    Thank you so much for giving fulfilled information about MySQL Using Python
    Thanks Again....

  • @onkarpb2216
    @onkarpb2216 Год назад +3

    how to connect the sql workbench and jupyter note book

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

    Error: 'Authentication plugin 'caching_sha2_password' is not supported '
    I'm getting this error at @7:54

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

    how to write a connection for SQL and i have fixed my sql on window Authentication . Please guide me to write a code to connect my SQL with Jupyter

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

    first again? also i like python

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

    Hello there

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

      Hi, Simplilearn provides online training across the world. We would be happy to help you regarding this. Please visit us at www.simplilearn.com and drop us a query and we will get back to you! Thanks!

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

    On minutes 7:57 i got this error message ~ Error: '1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)' ~

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

      "Hi,
      Please check this link to resolve the issue stackoverflow.com/questions/21944936/error-1045-28000-access-denied-for-user-rootlocalhost-using-password-y"

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

    12:45 when I run it I get this:
    cursor = connection.cursor()
    AttributeError: 'NoneType' object has no attribute 'cursor'

    • @mimichfury6329
      @mimichfury6329 2 года назад +5

      I fixed it. The problem was simple. I put all these functions that are meant to be run seperately in one .py file, and when I run it, All functions are run. When that happens, it goes over "connection=None" And that messes up the functions after it. Hence the Error NoneType attribute.
      Here's how I wrote the code for it to work in 1 .py file:
      import mysql.connector
      from mysql.connector import Error
      import pandas as pd
      ##################### SQL #######################
      # MAKE SURE PASSWORD IS CORRECT ON LINE "connection = mysql.connector.....
      connection = None
      try:
      connection = mysql.connector.connect(host="localhost", user="root", passwd="root")
      except Error as err:
      print(f"Error: '{err}'")
      # Create 'studentdb.db'
      def create_database(connection, query):
      cursor = connection.cursor()
      try:
      cursor.execute(query)
      print("Database created successfully")
      except Error as err:
      print(f"Error: '{err}'")
      create_database_query = "Create database studentdb"
      create_database(connection, create_database_query)
      #=========================AFTER CONNECTION HAS BEEN MADE AND studentdb.db IS CREATED, The database can be used========================
      #Connect to studentdb.db
      try:
      connection = mysql.connector.connect(host="localhost", user="root", passwd="852122", database="studentdb")
      print("MySQL database connection established")
      except Error as err:
      print(f"Error: '{err}'")
      cursor = connection.cursor()
      sql_queries = """
      # PUT SQL QUERY HERE
      '""
      cursor.execute(sql_queries)

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

    can u provide source code page?

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

    With all due respect, your typing is really irritating to follow, almost no word is written in one chance . But the video is good.

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

      Thank you for bringing this to our attention. We’re sorry you had a bad experience. We’ll strive to do better

  • @mikedeitel8920
    @mikedeitel8920 2 года назад +2

    ITS NOT BLOODY WORKING -- "Authentication plugin '{0}' is not supported".format(plugin_name))
    mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported