Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-23-2017, 04:19 PM
dchan dchan is offline
 
Join Date: May 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default ImpEx and database issue

Hi

I do understand ImpEx is no longer a supported plugin but I am still looking for a little help.

I am attempting to import some data from a postgreSql database (huddler).

I have set up a new vbulletin server to do this test.

Windows 2012
PHP 5.6.3
mysql 5.7
vbulletin 4.2.5

Everything seemed to install properly.

I downloaded the latest ImpEx from github, and modified the Impexconfig.php as recommended, put each of the files in the directories that are suggested

I open the admincp and installed the Impex xml.

I now have the import tab on the left. I click through to the import, it asks me for the passcode. I enter it and get a "success" and "redirecting"

And then I get a dialog box that says

mysql error: link-id == false, connect failed.

and here I'm stuck.

I have gone around several directions trying to get past this connect error and I must be missing something somewhere.

I have enabled the Mysql extension even though it's not supported.
I've tried modifying the Impexconfig to try to use mysqli even though that's not supported.

All seem to result in the same error.

can anyone give me some guidance on this. What to try?

Thanks.
Reply With Quote
  #2  
Old 05-23-2017, 04:28 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I checked the code of Impex and it seems that it will show that error when it can't connect to the MySQL server.

You might be able to see more detailed information if you modify db_mysql.php and replace @mysql_connect with mysql_connect. (remove the @ symbol)
Reply With Quote
  #3  
Old 05-23-2017, 04:43 PM
dchan dchan is offline
 
Join Date: May 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. not seeing anywhere showing "@mysql_connect"
It looks like the whole db_mysql.php has @mysqli_
as it's settings.

BTW, Thanks for the very fast suggestion.

Will continue to look.
Reply With Quote
  #4  
Old 05-23-2017, 05:55 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't see this?
https://github.com/vBZachery/vbimpex...mysql.php#L137


Regardless, the @ symbol suppresses errors so removing that will show a more detailed error.
Reply With Quote
  #5  
Old 05-23-2017, 06:25 PM
dchan dchan is offline
 
Join Date: May 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

after going round and round, I must be looking at one of the changed files.

Luckily I did save the original download. Checking

Thanks

--------------- Added [DATE]1495571410[/DATE] at [TIME]1495571410[/TIME] ---------------

Thanks for that. One step closer.

Very much appreciate it.

--------------- Added [DATE]1495571803[/DATE] at [TIME]1495571803[/TIME] ---------------

Now that I have the importer working, If I want to build my own script, I would try to find one that closely matches the tables of the database I currently have, (was a postgresql from huddler) and work out what tables to search and cross reference the tables to the mysql database in vbulletin?
Reply With Quote
  #6  
Old 05-25-2017, 11:20 AM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

google is your friend

https://www.vbulletin.com/forum/foru...connect-failed
Reply With Quote
  #7  
Old 05-25-2017, 10:44 PM
dchan dchan is offline
 
Join Date: May 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brandon Sheley View Post
past that part. Now working on getting ImpEx to transfer the data.

DC
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03812 seconds
  • Memory Usage 2,214KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete