CBSE Class 12 Informatics Practices Question 31 of 70

Importing/Exporting Data between CSV Files/MySQL and Pandas — Question 12

Back to all questions
12
Question

Question 12

Which of the following libraries let you establish a connection with a MySQL database from within Python ?

  1. mysql.connector
  2. Pymysql, sqlalchemy
  3. pandas
  4. numpy
Answer

mysql.connector, Pymysql, sqlalchemy

Reason — The libraries mysql.connector, PyMySQL, and SQLAlchemy all enable to establish connections with MySQL databases from within Python.