PDA

View Full Version : Convert data từ Fireboard sang Vbb



beodenls
09-01-2010, 22:20
Tình hình là có người bạn nhờ beo chuyển data của diễn đàn Fireboard sang Vbb
Hiện đang có file data của 4r Fireboard, dạng .sql.gz
Có đọc qua về Impex nhưng hầu như các bài đều hướng dẫn ko chi tiết nên beo mò mãi chưa được, có vài điều đang mắc:

1. Hiện mình chỉ giữ database của 4r Fireboard
2. Sau khi cài đặt mã nguồn vbb 3.8.4 lên host của mình, mình đã upload impex và database cần chuyển lên cùng file index.php của vbb
3. Nhưng chưa rõ phải khai báo như thế nào trong file config của impex, cụ thể như sau:

# TARGET - The target is the vBulletin database (where the data is going to)
#
####

$impexconfig['target']['server'] = 'localhost';
$impexconfig['target']['user'] = 'username';
$impexconfig['target']['password'] = 'password';
$impexconfig['target']['database'] = 'vbulletin_forum';
$impexconfig['target']['tableprefix'] = '';

# If the system that is being imported from uses a database,
# enter the details for it here and set 'sourceexists' to true.
# If the source data is NOT stored in a database, set 'sourceexists' to false

$impexconfig['sourceexists'] = true;

####
#
# SOURCE - The source is the old forum database (where the data is coming from)
#
####

# mysql / mssql
$impexconfig['source']['databasetype'] = 'mysql'; // mysql OR mssql
$impexconfig['source']['server'] = 'localhost';
$impexconfig['source']['user'] = 'username';
$impexconfig['source']['password'] = 'password';
$impexconfig['source']['database'] = 'source';
$impexconfig['source']['tableprefix'] = '';

Phần TARGET thì đơn giản rồi, vì mình khai báo theo file config.php của vbb
Còn phần SOURCE chưa rõ phải khai báo như thế nào cả, đã thử khai báo theo infor trong file configuration.php của Fireboard, nhưng đều báo "Connection to source server failed. Check username and password."
Ai rành về Impex thì giải đáp giúp beo nhé
Cảm ơn nhiều