2022-03 Python Flask-MySQL LAB
2022-03 Python Flask-MySQL LAB
Instalacion Python Flask+MySQL (To use pip3 please follow commands below):
https://www.youtube.com/watch?v=CX7eoK7Ku8M
with no password, if this doesn't work, try with the random passw:
Look for the random password in the server error log.
$ mysql -u root –p
Exercise
Add Article
Edit Article
Delete Article
Disponible en https://www.mysql.com/products/workbench/
mysql -u root -p
mysql> CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' WITH GRANT
OPTION;
mysql> CREATE USER 'username'@'%' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
References
• Flask: http://flask.pocoo.org/
• Getting Started With Flask: https://scotch.io/tutorials/getting-started-with-
flask-a-python-microframework#toc-file-structure
• Instal MySQL: https://www.linode.com/docs/databases/mysql/how-to-
install-mysql-on-centos-7/
• Python Flask from Scratch: https://www.youtube.com/watch?
v=zRwy8gtgJ1A&t=1239s
• MySQL Workbench
https://www.mysql.com/products/workbench/