摘要:
添加配置:确定使用的mysql版本,如果为5.0以上的版本需要在mysql的配置文件 (windows下my.ini,linux下my.cnf)中添加如下代码:[mysqld]skip-name-resolve注意配置完成后重启mysql服务,5.0一下的就不需要添加了。分配权限:这里我们建议单独创建一个用户,不要使用root用户,这个用户最好是指定需要连接的计算机。代码如下:MySQL> use MySQL; Database changed MySQL> grant all privileges on *.* to ‘yourUser’@'%' identifi 阅读全文
摘要:
PHP.ini默认配置下,用file_get_contents读取https的链接,就会如下错误:Warning: fopen() [function.fopen]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?解决方案有:1.windows下的PHP,只需要到php.ini中把extension=php_openssl.dll前面的;删掉,重启服务就可以了。2.linux下的PHP,就必须安装openssl模块,安装好了以后就可以访问了。 阅读全文
摘要:
mssql:SELECT * FROM tablename WHERE CHARINDEX('10', power) 0mysql:SELECT * FROM tablename WHERE locate('10', power) 0注:tablename:表名 ;'10':包含的值;power:字段 阅读全文