ideas around zipcode notes on flask

README.md 1.5KB

Notes On Python/Flask

Ideas around python/flask labs and lectures:

Python 3

brew install python gets python3 on your mac The Hitchhiker’s Guide to Python for fascinating information on your new Best Friend, python (3)

Docker

once installed, and the mysql is running:

$ docker exec -it mysql bash

bash-4.2# mysql -uroot -ppassword
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 46
Server version: 5.7.21 MySQL Community Server (GPL)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> CREATE USER 'yourusername'@'%' IDENTIFIED BY 'yourfavoritepassword';
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON * . * TO 'yourusername'@'%';
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye
bash-4.2# exit
exit

Now you can use yourusername with a a password of yourfavoritepassword in the MySQLWorkbench to view, change and edit your database(s). The MySQL is at localhost:3306