To establish the Python-MySQL connection, connect() method is used with…

2023

To establish the Python-MySQL connection, connect() method is used with certain parameters or arguments. Which of the following is not a parameter/argument used with connect() method? Python-MySQL संबंध (connection)

  1. A.

    user / user

  2. B.

    password / password

  3. C.

    database / database

  4. D.

    table / table

Attempted by 1130 students.

Show answer & explanation

Correct answer: D

The connect() method in Python-MySQL uses several parameters to establish a connection, including host, user, password, and database. These parameters are required to authenticate and specify the target database.

The parameter 'table' is not used in the connect() method because table names are not part of the connection setup. Instead, tables are referenced in SQL queries after the connection is established.

Therefore, the parameter that is not used with the connect() method is 'table'.

Explore the full course: Rssb Senior Computer Instructor