vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   MySQL4 - MySQL5 migration woes (https://vborg.vbsupport.ru/showthread.php?t=194264)

Promoking 10-22-2008 11:40 AM

MySQL4 - MySQL5 migration woes
 
I searched the forums and did not find relevant info so if this is a repeat I apologize.

Just created a new db using MySQL5 and migrated my previous db MySQL4 data into it. I've edited includes/config.php to refelect the new db however, vb never connects.

Are there other files that need to be modified or any other steps I need to take to access the new MySQL5 db?

Thanks!

-Brian

punchbowl 10-22-2008 11:44 AM

Can you post the error message? Can you connect to the db with phpadmin or anything else?

Promoking 10-22-2008 01:03 PM

phpMyAdmin connects fine. The error is thus:

Database error
The database has encountered a problem.

And then tells me to refresh or try again. Not much help. My collation on the new db is:

latin1_general_ci

Could that have anything to do with it?

the only changes I made to includes/config.php are:

dbname
servername
port

username and password remain the same

Ideas?

Thank you

punchbowl 10-22-2008 01:13 PM

Have a look here http://www.vbulletin.com/forum/project.php?issueid=5627

not the answer but you may be onto something re collation

Promoking 10-22-2008 01:26 PM

Hmm... lots of good info in there - thank you.

is: latin1_bin = latin1

Thanks

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

Naw that didnt work :(

Should be a simple thing right? BTW im using vb3.6.8 right now but plan to upgrade as soon as this db thing is fixed

System:

vb 3.6.8
MySQL client version: 5.0.45
php 4.2.1 (I think )

Steps:

1) Created a new db using mysql5 (tried various char sets "latin1_general_ci" default)
2) Migrated the existing db4 to the new one (checked with phpMyAdmin)
3) created a new user and password just to eliminate any potential conflicts
4) Updated my includes/config.php file
- dbname
- servername
- port

but I get a simple "The database has encountered a problem" error when try to access the forum.

Help?

Thank you

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

Solved....

I got this back from my hosts tech support:

" It seems that Vbulletin does not understand the "localhost:/tmp/mysql5.sock" syntax used to connect to a MySQL 5 database.

To circumvent this restriction, please edit the vBulletin configuration file (includes/config.php), and add the following line to the beginning:

ini_set('mysql.default_socket', '/tmp/mysql5.sock');

You will need to use

localhost

for the database host. "

Thanks for all your help... maybe this can benefit others in the future if they upgrade older mysql4 db's to mysql5

Cheers

-Brian

Marco van Herwaarden 10-23-2008 09:29 AM

I have never seen a host where such an edit was needed.

Allnick 11-10-2008 09:24 PM

I've had exactly the same problem at the weekend.
Unfortunately, I only found this thread after hours of frustration.

I was given the exact same code from my hosts tech support.
Just added it to the beginning of config.php, and problem solved.


All times are GMT. The time now is 04:42 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.01048 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete