XCode+Mac+MySQL版
2014-03-15 15:32
267 查看
3.项目配置
3.1 Header Search Paths加
/usr/local/include
/usr/local/mysql/include
3.2 Library Search Paths加
/usr/local/lib
/usr/local/mysql/lib
3.1 Other Linker Flags加
-lmysqlcppconn -lm -lmysqlclient -lz
4. Build Phases加入lib
5. 运行
So, what’s the cleanest solution? Specifically, one that avoids having to alter everything you ever write, just to get around a (hopefully soon fixed) bug in the MySQL installation?
Do this:
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
In other words, create a link from /usr/local/mysql/lib (actual location) to /usr/lib (the place MySQL goes looking).
3.1 Header Search Paths加
/usr/local/include
/usr/local/mysql/include
3.2 Library Search Paths加
/usr/local/lib
/usr/local/mysql/lib
3.1 Other Linker Flags加
-lmysqlcppconn -lm -lmysqlclient -lz
4. Build Phases加入lib
5. 运行
So, what’s the cleanest solution? Specifically, one that avoids having to alter everything you ever write, just to get around a (hopefully soon fixed) bug in the MySQL installation?
Do this:
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
In other words, create a link from /usr/local/mysql/lib (actual location) to /usr/lib (the place MySQL goes looking).
相关文章推荐
- mysql error 1301-1400
- mysql主从复制
- 64位win7装mysql解压版,个人记录
- mysql 错误2203 1061 及安装最后出现1067错误的解决办法
- mysql内置函数
- node.js学习笔记(3)-node.js结合mysql数据库实现的web项目中常见功能--登录验证、session传值、拦截器、ajax传值等
- Mysql启动错误1067解决办法
- MySQL和SQLite根据生日算年龄
- mysql 允许远程访问
- mysql配置中的一些重要参数
- Mysql提高分页查找速度
- Mysql插入优化
- 1. Class.forName("com.mysql.jdbc.Driver");//加载数据库驱动
- MySQL where in 排序
- MYSQL多实例配置与使用教程
- mysql分表研究
- Mysql 存储引擎中InnoDB与Myisam的主要区别
- Mysql中的事件
- mysql字符集问题
- 【斗医】【9】Web应用开发20天