一、mysql官网查
二、pymysql
(flask用该驱动连接时可能会有warning,无大碍)
例:'mysql+pymysql://root:root@localhost/myblog?charset=utf8'
三、mysql-connector
(nice)
例:'mysql+mysqlconnector://root:root@localhost/myblog?charset=utf8'
一、mysql官网查
二、pymysql
(flask用该驱动连接时可能会有warning,无大碍)
例:'mysql+pymysql://root:root@localhost/myblog?charset=utf8'
三、mysql-connector
(nice)
例:'mysql+mysqlconnector://root:root@localhost/myblog?charset=utf8'