在Ubuntu 14.04 MariaDB 10.0.15下,运行包含mysql_connect()函数的PHP脚本提示以下Warning:
“mysql_connect(): Headers and client library minor version mismatch. Headers:50540 Library:100015”
Google了下,在stackoverflow发现只要卸载掉php5-mysql,安装php5-mysqlnd即可。
所谓mysqlnd,是指MySQL native driver,php.net上这样介绍mysqlnd:“MySQL Native Driver is a replacement for the MySQL Client Library (libmysqlclient)”
mysqlnd是一个用C写的、替换libmysqlclient的一个PHP扩展。mysqlnd之所以会出现其原因包括licence、性能等诸多方面:
A.libmysql驱动是由mysql AB公司(现在是oracle公司)编写, 并按mysql license许可协...
1.背景教育网一般提供了原生的IPv6支持,也就是说只要你电脑的操作系统支持IPv6,只要接入网络就能获得原生的IPv6地址。一般情况下,如果在接入教育网时使用了家庭路由器,那么就没办法获得原生的IPv6地址。针对这种情况,网件(Netgear)等产商在其原生的路由器固件中提供了针对这种情况的IPv6 穿透式解决方案(更多可参考这里)。在OpenWrt下可用6scripts也可用6relayd来解决,根据个人尝试经验,后者比较简单易用一些,下面介绍一下如何使用。
在具体环境上来讲,刷OpenWrt 官方版本之后 luci Web界面安装及PPTP客户端安装介绍了从OpenWrt官方下载更新配置路由器的一些工作,本篇介绍在此基础上通过6relayd配置穿透式IPv6。
2.方案2.1 6relayd介绍
官方网站:http://wiki.openwrt.org/doc/uci/6relayd
6relayd is a daemon for serving and relaying IPv6 management protocols to configure clients and...
迁移了Limesurvey到一台新机器上,Ubuntu 12.04,apt方式安装的Apache、MySQL等,在使用问卷的创建验证码&tokens时出现以下错误:
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘TYPE=myISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci’ at line 17
Google了一下,得到这个帖子http://bugs.limesurvey.org/print_bug_page.php?bug_id=4729,其中一个人回复到
I am running v.5.5.6 MySQL. I apologize for the mixup. But ‘Type’ has been obsolete for a while now, and this q...