This is the Python code where I am establishing a database connection. But I am getting a type error in my code. Please tell me what is the issue.
import pymysql
connnection = pymysql.connect("localhost", "root", "", "dbname")
Error:
Traceback(most recent call last):
File "c:/Users/Dell/Desktop/Full Code/COllectUrls.py", line 21, in <module>
connnection = pymysql.connect("localhost", "root", "", "dbname")
TypeError: _ init _() takes 1 positional argument but 5 were given