When trying to run the upgrade function of flask_migrate after initializing a new db, I get this error (in Ubuntu 18.04):
OperationalError: (2002, "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)")`
Before that I connect through mysql.connector.connect()
Which information is needed to maybe solve this problem?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…