![]() |
Importing MYSQL Column Data for VBCredits from other Database?
Greetings, here's what my problem is:
I have just recently imported my board from SMF to VB with Implex, working great. Of course it couldn't take the credit information with it. In my SMF board the table Members (same as the table User in VB pretty much) had two columns called money and moneyBank going along with each member's row. Now in VB I installed the mod VBCredits which put in the columns credits and credits_saved corresponding to each user's row. What I want to do is take the data from the money row from my old forum and put it in the new credits row in my new forum.. and the same for moneyBank & credits_saved.. They are basically the same exact thing just different names. I'm inexperienced with SQL queries or importing/exporting data with specific columns like this so if anyone could help that would be amazing. |
If you have questions/problems with a modification or style, then please post in the thread (or support forum/board) about that modification/style. Best chance to receive a reply from either the author or another member using the same modification/style.
|
Quote:
|
Well we don't have any knowledge of the database stucture used in these modifications, they are really the only ones that can give a correct answer.
|
Quote:
|
I believe what he is asking is pretty straightforward in the sense that it doesn't matter which modification he is using.
The point being made is that both structures are the same just the 2 columns are names differently. On one side, the 2 columns has all the data and the other has none. To the original poster, one avenue you might want to try is export the 2 tables using phpmyadmin, open them up in a spreadsheet and copy the data over from one file to the other. Then import back using phpmyadmin. This is of course assuming that the userids in both tables match up, if not, you might need to do some 'massaging'. I would test this out on a test install first. There are probably much better ways of doing this but you'll need a helpful coder here to get you going. Cheers, Regs. --------------- Added [DATE]1219333529[/DATE] at [TIME]1219333529[/TIME] --------------- I should add that when I say copy the data over, I mean just the 2 columns, not everything :) |
Quote:
|
If you have no experience with MySQL then you may want to consider hiring someone to do it for you. If there was an easy answer, someone would have given it by now. My best guess would be that you'd need to use an "UPDATE" possibly with a join (if thats possible in update queries).
|
Quote:
That's all I want.. all these mod makers and such do a lot more & harder SQL things I'm sure so really don't think it would be worth spending money on.. seems like a 5 minute job for someone that actually knows how to do it.. really only want this to save me from putting in the data manually for each user.. |
Quote:
[sql] update vbdatabase.user u, otherdatabase.credittable o set u.newfield1=o.oldfield1, u.newfield2=o.oldfield2 where u.userid=o.userid [/sql] |
All times are GMT. The time now is 02:30 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|