PPK
immortal3000
PPK
Кто может помочь с этими запросами?Eliar писал(а): -----------------------------------------------------------------------------------------------------------------
insert into php3_torrent.phpbb_tracker_files (id, size) select attach_id, size from test_convert.bb_bt_torrents
-----------------------------------------------------------------------------------------------------------------
UPDATE php3_torrent.phpbb_tracker_files, test_convert.bb_attachments_desc
SET
php3_torrent.phpbb_tracker_files.filename = test_convert.bb_attachments_desc.real_filename
WHERE php3_torrent.phpbb_tracker_files.id = test_convert.bb_attachments_desc.attach_id
-----------------------------------------------------------------------------------------------------------------
UPDATE php3_torrent.phpbb_users, test_convert.bb_bt_users
SET
php3_torrent.phpbb_users.user_passkey = test_convert.bb_bt_users.auth_key,
php3_torrent.phpbb_users.user_uploaded = test_convert.bb_bt_users.u_up_total,
php3_torrent.phpbb_users.user_downloaded = test_convert.bb_bt_users.u_down_total
WHERE php3_torrent.phpbb_users.user_id = test_convert.bb_bt_users.user_id
-----------------------------------------------------------------------------------------------------------------
insert into php3_torrent.phpbb_tracker_torrents (id, info_hash) select attach_id, info_hash from test_convert.bb_bt_torrents
-----------------------------------------------------------------------------------------------------------------
UPDATE php3_torrent.phpbb_tracker_torrents, test_convert.bb_bt_torrents
SET
php3_torrent.phpbb_tracker_torrents.post_msg_id = test_convert.bb_bt_torrents.post_id,
php3_torrent.phpbb_tracker_torrents.topic_id = test_convert.bb_bt_torrents.topic_id,
php3_torrent.phpbb_tracker_torrents.poster_id = test_convert.bb_bt_torrents.poster_id,
php3_torrent.phpbb_tracker_torrents.times_completed = test_convert.bb_bt_torrents.complete_count,
php3_torrent.phpbb_tracker_torrents.size = test_convert.bb_bt_torrents.size,
php3_torrent.phpbb_tracker_torrents.added = test_convert.bb_bt_torrents.reg_time
WHERE php3_torrent.phpbb_tracker_torrents.id = test_convert.bb_bt_torrents.attach_id
-----------------------------------------------------------------------------------------------------------------
Boec
lisik
PPK
Boec
а можно инструкцию?Boec писал(а):Вот переписывал скрипт переноса данных с torrentpierВот конвертор правельный для torrentpierINSERT INTO ppkbb3cker.bt_tracker_files (id, size) SELECT attach_id, size FROM torrentpier.bb_bt_torrents;
UPDATE ppkbb3cker.bt_tracker_files, torrentpier.bb_attachments_desc
SET ppkbb3cker.bt_tracker_files.filename = torrentpier.bb_attachments_desc.real_filename
WHERE ppkbb3cker.bt_tracker_files.id = torrentpier.bb_attachments_desc.attach_id;
UPDATE ppkbb3cker.bt_users, torrentpier.bb_bt_users
SET ppkbb3cker.bt_users.user_passkey = torrentpier.bb_bt_users.auth_key,
ppkbb3cker.bt_users.user_uploaded = torrentpier.bb_bt_users.u_up_total,
ppkbb3cker.bt_users.user_downloaded = torrentpier.bb_bt_users.u_down_total
WHERE ppkbb3cker.bt_users.user_id = torrentpier.bb_bt_users.user_id;
INSERT INTO ppkbb3cker.bt_tracker_torrents (id, info_hash) SELECT attach_id, info_hash FROM torrentpier.bb_bt_torrents;
UPDATE ppkbb3cker.bt_tracker_torrents, torrentpier.bb_bt_torrents
SET
ppkbb3cker.bt_tracker_torrents.post_msg_id = torrentpier.bb_bt_torrents.post_id,
ppkbb3cker.bt_tracker_torrents.topic_id = torrentpier.bb_bt_torrents.topic_id,
ppkbb3cker.bt_tracker_torrents.poster_id = torrentpier.bb_bt_torrents.poster_id,
ppkbb3cker.bt_tracker_torrents.times_completed = torrentpier.bb_bt_torrents.complete_count,
ppkbb3cker.bt_tracker_torrents.size = torrentpier.bb_bt_torrents.size,
ppkbb3cker.bt_tracker_torrents.added = torrentpier.bb_bt_torrents.reg_time
WHERE ppkbb3cker.bt_tracker_torrents.id = torrentpier.bb_bt_torrents.attach_id;
http://depositfiles.com/files/e4q7ywrw6
Sergj
Код: Выделить всё
Общая ошибка
SQL ERROR [ mysql4 ]
Table 'forum.bb_forum_prune' doesn't exist [1146]
SQL
SELECT f.forum_id, f.forum_name, f.cat_id, f.forum_desc, f.forum_status FROM bb_forums f LEFT JOIN bb_forum_prune fp ON f.forum_id = fp.forum_id GROUP BY f.forum_id, f.forum_name, f.cat_id, f.forum_desc, f.forum_status ORDER BY f.cat_id, f.forum_order
BACKTRACE
FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()
FILE: install/convertors/functions_phpbb20.php
LINE: 193
CALL: dbal_mysql->sql_query()
FILE: install/install_convert.php(1003) : eval()'d code
LINE: 5
CALL: phpbb_insert_forums()
FILE: install/install_convert.php
LINE: 1003
CALL: eval()
FILE: install/install_convert.php
LINE: 203
CALL: install_convert->convert_data()
FILE: install/index.php
LINE: 405
CALL: install_convert->main()
FILE: install/index.php
LINE: 282
CALL: module->load()
mike1808
PPK