Linux服务器
- 重置数据库的root账号密码
- cat /var/log/mysqld.log |grep 'password'
- SET PASSWORD = PASSWORD('123456');
- set global validate_password_policy=0;
- set global validate_password_length=1;
- ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;
- flush privileges;
- 扩展
- Flask-SQLAlchemy
- yum -y install mysql-devel gcc gcc-devel python-devel
- mysqlclient=1.3.14 (出错弄了好久,原来是版本和mysql不匹配)
Windows平台
- 以管理员身份运行Pycharm
- 扩展
- Flask-SQLAlchemy
- mysqlclient