赞
踩
在flask项目中为了连接数据库出现以下错误
从mysql安装路径的lib目录下将相应的依赖库建立软链接到/usr/local/lib/下 sudo ln -s /usr/local/mysql/lib/libmysqlclient.21.dylib /usr/lib/libmysqlclient.21.dylib
sudo ln -s /usr/local/mysql/lib/libmysqlclient.21.dylib /usr/lib/libmysqlclient.21.dylib