当前位置:首页 > 操作系统 > MacOs

彻底解决“mysql_config not found”问题(适用Mac,Linux)

如题。

准备

要确认mysql已经安装,可以使用

brew install mariadb

或者 

sudo apt install mariadb

 或者

sudo yum install mariadb

配置 

locate mysql_config

 查找文件位置

ln -s /usr/local/mysq/bin/mysql_config /usr/local/bin/mysql_config

建立链接

npm install mysqlclient

重新安装

完成

 


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!