vous devez utiliser MYSQL_HOST
, MYSQL_USER
, MYSQL_PASSWORD
et MYSQL_DB
directives de configuration :http://flask-mysqldb.readthedocs.org/en/latest /#configuration
app.config['MYSQL_USER'] = 'root'
app.config['MYSQL_PASSWORD'] = '1234'
app.config['MYSQL_DB'] = 'EmpData'
app.config['MYSQL_HOST'] = 'localhost'