create user 'www-data'@'localhost' identified by 'www-data';
grant select, insert, update, delete on awesome.* to 'www-data'@'localhost' with grant option;
#用上面两句代替脚本中的
grant select, insert, update, delete on awesome.* to 'www-data'@'localhost' identified by 'www-data';
alienation
评论区和我自己遇到的问题
1:sql脚本报错,这个是因为高版本sql创建用户时的语句变了
2,pool没有loop参数,这个的话仿照之前写个loop就行了
3.出现Keyerror,这个非常正常,就是这么设计的,在实际注册的时候这些参数都是会输入的,没有在测试里输入的参数在实际网页上会输入none,然后取默认值。
4.pymysql.err.IntegrityError: (1062, "Duplicate entry 这个是因为没有删除之前已经save的记录导致的
5,RuntimeError: Event loop is closed,这个正常的,函数执行后loop被closed了