Please house I need help to connect my python code to my MySQL databse file. I am using a Windows 10 laptop. Please see my code below.
import pymysql db = pymysql.connect('localhost', 'root', 'mypassword', 'sale')
Just with the code above, it releases an error message that says:
TypeError: init () takes 1 positional argument but 5 were given