请选择 进入手机版 | 继续访问电脑版

百花论坛

搜索
查看: 3420|回复: 0
收起左侧

discuz3.2 backup several db using ucenter

[复制链接]

管理员

63

主题

72

帖子

70 小时

在线时间

管理员

Rank: 5Rank: 5

积分
1598
发表于 2018-11-28 14:12:28 | 显示全部楼层 |阅读模式

今すぐ登録、素晴らしい風景が広がります。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
Problem:

Tables which are using non-main database cannot be backup.


related sources:

source\class\class_core.php
define DB class

\source\class\discuz\discuz_database.php
extend from db_driver_mysql.php
database related functions

source\class\db\db_driver_mysql.php
database related functions

source\class\discuz\discuz_admincp.php
backup


Solution:

Add two lines bellow into function sqldumptable to make sure that db can be reconnected to the right db.
$table1=str_replace($_G['config']['db'][1]['tablepre'], '',$table);DB::table($table1)





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|百花网 - 在日华人的论坛 ( Copyright (C) 2015 Flowers Corporation. All Rights Reserved. )

GMT+9, 2024-3-29 13:55 , Processed in 0.034809 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表