Last active
July 25, 2017 15:58
-
-
Save exit99/3e36346af84f7b172de6aec68a6a5422 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# init MYSQL | |
mysql = MySQL() | |
# Config MySQL | |
app.config['MYSQL_HOST'] = 'localhost' | |
app.config['MYSQL_USER'] = 'root' | |
app.config['MYSQL_PASSWORD'] = '1234' | |
app.config['MYSQL_DB'] = 'myflaskapp' | |
app.config['MYSQL_CURSORCLASS'] = 'DictCursor' | |
mysql.init_app(app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Config MySQL | |
app.config['MYSQL_HOST'] = 'localhost' | |
app.config['MYSQL_USER'] = 'root' | |
app.config['MYSQL_PASSWORD'] = '1234' | |
app.config['MYSQL_DB'] = 'myflaskapp' | |
app.config['MYSQL_CURSORCLASS'] = 'DictCursor' | |
# init MYSQL | |
mysql = MySQL() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try that channing