Piwigo更换服务器后由于数据库名称和密码不同,导致访问出错
处理方法
我们只需要在WEB文件目录找到local目录下的config目录里面的 database.inc.php 文件
修改下面数据库信息为新的即可。
<?php
$conf['dblayer'] = 'mysqli';
$conf['db_base'] = '数据库名';
$conf['db_user'] = '数据库用户名';
$conf['db_password'] = '数据库密码';
$conf['db_host'] = 'localhost';
$prefixeTable = 'piwigo_';
define('PHPWG_INSTALLED', true);
define('PWG_CHARSET', 'utf-8');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');