I installed MySQL with pip install mysql-connector-python.
But for connecting in Python I don't know what password to use.
mysqldb=mysql.connector.connect(host="localhost",user="",password="",database="")
Don't use password, just use host. https://dev.mysql.com/doc/connector-python/en/connector-python-connectargs.html
(Btw. this is just connecting package, you need MySql server too - https://pypi.org/project/MySQL-python/)
username and password."host if it's running on localhost (aka 127.0.0.1), but one has to provide user and password.
root