News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Cannot convert from MyBB 1.2 to SMF 1.1

Started by matt4, December 16, 2006, 03:29:56 PM

Previous topic - Next topic

matt4

SMF Version: SMF 1.1
Hi all,

I am trying to convert from mybb 1.2 to smf 1.1. I have installed smf in the directory below.

http://www.pastillesnetworks.com/smf [nofollow]

My conversion scripts are located below:

http://www.pastillesnetworks.com/forums/convert.php [nofollow]

http://www.pastillesnetworks.com/smf/convert.php [nofollow]

I uploaded them in both directories and I still get the same error when everything is set correctly. Could it be because the converter script is for mybb 1.1?

If so is there a mybb 1.2 script available?

Please provide some help on this. The error I get is:

Sorry, the database connection information used in the specified installation of SMF cannot access the installation of MyBulletinBoard 1.0. This may either mean that the installation doesn't exist, or that the MySQL account used does not have permissions to access it.

The error MySQL gave was: SELECT command denied to user 'matt4_smf'@'localhost' for table 'mybb_users'


Thanks for your help

matt4


J. Williams

Yes, I can provide you help but the conversion is risky.

From your primary error, matt4_smf has no permissions on your other database.

Joshua Jon Williams
Back in Action.

matt4

#3
Thanks, That stage worked although it cannot covert polls.

Converting topic notifications... Unsuccessful!
This query:

    INSERT INTO `matt4_smf`.smf_log_notify
    (ID_MEMBER, ID_TOPIC)
    VALUES ('2', '491'),
    ('2', '12'),
    ('3', '12'),
    ('2', '13'),
    ('2', '14'),
    ('2', '477'),
    ('2', '17'),
    ('2', '18'),
    ('3', '18'),
    ('2', '19'),
    ('3', '19'),
    ('2', '20'),
    ('2', '23'),
    ('2', '24'),
    ('2', '35'),
    ('2', '36'),
    ('2', '38'),
    ('22', '478'),
    ('2', '99'),
    ('2', '51'),
    ('2', '53'),
    ('2', '54'),
    ('3', '54'),
    ('2', '55'),
    ('3', '55'),
    ('2', '56'),
    ('9', '57'),
    ('2', '58'),
    ('2', '59'),
    ('2', '60'),
    ('2', '62'),
    ('2', '63'),
    ('2', '64'),
    ('2', '65'),
    ('2', '66'),
    ('2', '67'),
    ('2', '68'),
    ('2', '69'),
    ('3', '85'),
    ('28', '85'),
    ('2', '85'),
    ('2', '89'),
    ('2', '113'),
    ('28', '118'),
    ('2', '143'),
    ('2', '193'),
    ('2', '220'),
    ('2', '221'),
    ('2', '222'),
    ('2', '236'),
    ('2', '379'),
    ('2', '266'),
    ('2', '280'),
    ('2', '282'),
    ('2', '286'),
    ('2', '290'),
    ('2', '294'),
    ('2', '295'),
    ('2', '300'),
    ('2', '302'),
    ('2', '303'),
    ('2', '305'),
    ('2', '306'),
    ('2', '307'),
    ('2', '308'),
    ('2', '309'),
    ('2', '357'),
    ('2', '311'),
    ('2', '312'),
    ('2', '313'),
    ('2', '314'),
    ('28', '316'),
    ('2', '316'),
    ('2', '318'),
    ('2', '320'),
    ('2', '321'),
    ('2', '322'),
    ('2', '323'),
    ('2', '324'),
    ('2', '326'),
    ('2', '327'),
    ('2', '328'),
    ('2', '329'),
    ('2', '330'),
    ('2', '349'),
    ('2', '332'),
    ('2', '333'),
    ('2', '334'),
    ('2', '335'),
    ('2', '336'),
    ('2', '337'),
    ('2', '338'),
    ('2', '339'),
    ('2', '340'),
    ('2', '341'),
    ('2', '399'),
    ('2', '343'),
    ('2', '344'),
    ('2', '345'),
    ('22', '478'),
    ('2', '477'),
    ('2', '350'),
    ('2', '351'),
    ('2', '491'),
    ('2', '356'),
    ('2', '358'),
    ('2', '359'),
    ('2', '347'),
    ('2', '360'),
    ('2', '248'),
    ('2', '361'),
    ('2', '362'),
    ('2', '365'),
    ('2', '366'),
    ('2', '367'),
    ('2', '368'),
    ('2', '369'),
    ('2', '370'),
    ('2', '371'),
    ('2', '372'),
    ('2', '373'),
    ('2', '375'),
    ('2', '376'),
    ('2', '377'),
    ('2', '385'),
    ('2', '380'),
    ('2', '381'),
    ('2', '382'),
    ('2', '383'),
    ('2', '384'),
    ('2', '386'),
    ('2', '387'),
    ('2', '388'),
    ('2', '389'),
    ('2', '391'),
    ('2', '392'),
    ('2', '393'),
    ('2', '394'),
    ('2', '395'),
    ('2', '396'),
    ('22', '477'),
    ('2', '398'),
    ('2', '108'),
    ('2', '400'),
    ('2', '402'),
    ('2', '403'),
    ('2', '404'),
    ('2', '405'),
    ('2', '406'),
    ('2', '410'),
    ('2', '408'),
    ('2', '412'),
    ('2', '413'),
    ('2', '414'),
    ('2', '415'),
    ('2', '417'),
    ('2', '418'),
    ('2', '419'),
    ('2', '420'),
    ('2', '421'),
    ('2', '422'),
    ('2', '423'),
    ('2', '424'),
    ('2', '425'),
    ('2', '426'),
    ('2', '427'),
    ('2', '429'),
    ('2', '428'),
    ('2', '430'),
    ('2', '431'),
    ('2', '432'),
    ('2', '433'),
    ('2', '434'),
    ('2', '435'),
    ('2', '436'),
    ('2', '438'),
    ('2', '439'),
    ('2', '440'),
    ('2', '441'),
    ('2', '442'),
    ('2', '443'),
    ('22', '479'),
    ('2', '445'),
    ('2', '446'),
    ('2', '448'),
    ('2', '450'),
    ('2', '451'),
    ('2', '453'),
    ('2', '455'),
    ('2', '456'),
    ('22', '456'),
    ('2', '457'),
    ('7', '458'),
    ('2', '459'),
    ('22', '459'),
    ('2', '460'),
    ('2', '461'),
    ('22', '439'),
    ('2', '463'),
    ('22', '463'),
    ('2', '464'),
    ('2', '464'),
    ('2', '456'),
    ('2', '465'),
    ('2', '465'),
    ('2', '465'),
    ('2', '466'),
    ('2', '466'),
    ('2', '465'),
    ('2', '479'),
    ('2', '479'),
    ('2', '478'),
    ('2', '466'),
    ('2', '470'),
    ('2', '470'),
    ('2', '470'),
    ('2', '471'),
    ('2', '471'),
    ('22', '471'),
    ('2', '471'),
    ('2', '439'),
    ('22', '439'),
    ('2', '439'),
    ('22', '439'),
    ('2', '439'),
    ('2', '439'),
    ('22', '439'),
    ('2', '472'),
    ('2', '472'),
    ('2', '474'),
    ('2', '474'),
    ('2', '439'),
    ('2', '439'),
    ('2', '439'),
    ('22', '439'),
    ('2', '475'),
    ('2', '475'),
    ('2', '475'),
    ('2', '475'),
    ('2', '475'),
    ('2', '476'),
    ('2', '476'),
    ('2', '476'),
    ('2', '480'),
    ('2', '480'),
    ('2', '481'),
    ('2', '481'),
    ('2', '482'),
    ('2', '482'),
    ('2', '483'),
    ('2', '484'),
    ('22', '484'),
    ('2', '485'),
    ('2', '485'),
    ('2', '486'),
    ('22', '485'),
    ('2', '487'),
    ('2', '487'),
    ('2', '488'),
    ('2', '488'),
    ('2', '489'),
    ('2', '489'),
    ('2', '490'),
    ('2', '490'),
    ('2', '492'),
    ('2', '492'),
    ('2', '493'),
    ('2', '493'),
    ('2', '494'),
    ('2', '494'),
    ('5', '494'),
    ('2', '495'),
    ('2', '495'),
    ('2', '496'),
    ('2', '496'),
    ('22', '496'),
    ('2', '497'),
    ('2', '497'),
    ('2', '498'),
    ('2', '498'),
    ('2', '499'),
    ('2', '499'),
    ('22', '499'),
    ('2', '500'),
    ('2', '501'),
    ('2', '501'),
    ('2', '502'),
    ('2', '502'),
    ('2', '504'),
    ('2', '504'),
    ('22', '502'),
    ('22', '505'),
    ('22', '505'),
    ('2', '505'),
    ('2', '506'),
    ('2', '506'),
    ('2', '507'),
    ('2', '507'),
    ('2', '508'),
    ('2', '508'),
    ('2', '510'),
    ('2', '511'),
    ('2', '511'),
    ('2', '512'),
    ('2', '512'),
    ('22', '515'),
    ('22', '515'),
    ('2', '515'),
    ('5', '515'),
    ('2', '516'),
    ('2', '516'),
    ('2', '513'),
    ('2', '517'),
    ('2', '517'),
    ('2', '518'),
    ('2', '518'),
    ('2', '519'),
    ('2', '519'),
    ('5', '518'),
    ('2', '520'),
    ('2', '520'),
    ('2', '522'),
    ('2', '522'),
    ('2', '524'),
    ('2', '524'),
    ('2', '525'),
    ('2', '525'),
    ('2', '526'),
    ('2', '526'),
    ('2', '521');

Caused the error:

    Duplicate entry '22-478-0' for key 1


I deleted the data in the table and its still throwing a error.

Any help that can be given here please?

Thanks

matt4

Sorry for the bump. Need some help here please ;)

Oldiesmann

Have you verified that there's no duplicate data in your myBB favorites table?

matt4

There are lots of pages! 12 of them. I checked and as far as I could see I couldn't see no duplicates.

Is there anything that could be causing this?

Thanks for the help

Oldiesmann

I'm not sure what's causing it, but the easiest way to fix it is to change the INSERT statement in convert.php to INSERT IGNORE, which will force MySQL to ignore any errors that arise. The attached file should work better.

matt4

Thanks, but now it's attachments that's the problem :-[

QuoteSELECT pid AS ID_MSG, filedata, downloads, filename, filesize
FROM `matt4_mybb`.mybb_attachments
LIMIT 0, 500;

Is there anyway you could put a ignore for that too please?

Oldiesmann

What error are you getting for that? I don't think MySQL supports IGNORE for SELECT queries.

matt4

#10
Hi,

It's this...

SELECT pid AS ID_MSG, filedata, downloads, filename, filesize
FROM `matt4_mybb`.mybb_attachments
LIMIT 0, 500;


EDIT:

Unknown column 'filedata' in 'field list'


Thanks

Oldiesmann

Ok. Does MyBB store them as actual files then? It appears that the converter is expecting all the file info to be in the database.

Advertisement: