修改数据库驱动为 pdo_mysql,解决 Deprecated: mysql_connect(): The mysql extension is deprecated ... 提示 4.0

axiuno 3月前 627

mysql_connect() mysql_query() 等系列函数在 PHP 高版本被建议使用 PDO::MySQL 代替。

警告字符串:

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /www/web/xdy/public_html/ls/xiunophp/xiunophp.min.php on line 40


Xiuno 默认都支持,只需要修改 conf/conf.php 中的 db type 为 'pdo_mysql',即可。


最新回复 (2)
返回
发新帖
HTTP/1.1 502 Bad Gateway Content-Type: text/html Connection: close Content-Length: 332 Date: Mon, 26 Feb 2018 03:08:59 GMT X-Via: 1.1 3.75.45.59.broad.bx.ln.dynamic.163data.com.cn (random:439440 Fikker/Webcache/3.7.4) 502 Bad Gateway

502 Bad Gateway - Cann't Connect To Upstream Server By SSL Read

Server: 3.75.45.59.broad.bx.ln.dynamic.163data.com.cn
Date: 2018-02-26 03:08:59

Fikker/Webcache/3.7.4