发新帖

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

axiuno 17天前 260

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)
温柔哥_1471106822 16天前
1
顶     
Detective Conan 10天前
2
怎么安装插件的
返回
HTTP/1.1 502 Bad Gateway Content-Type: text/html Connection: close Content-Length: 308 Date: Wed, 13 Dec 2017 01:38:44 GMT X-Via: 1.1 localhost.localdomain (random:505601 Fikker/Webcache/3.7.4) 502 Bad Gateway

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

Server: localhost.localdomain
Date: 2017-12-13 01:38:44

Fikker/Webcache/3.7.4