Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
AD Gallery 52
SyntaxHighlighte... 51
Newsletters v4.03 112
Facebook Like Box 125
Newsletters v4.02 57
Metro 164
Facebook Connect 171
Shoutbox Panel 127
Redactor for PHP... 106
MI Floating Side... 109
Facebook Login/R... 154
Avatar Studio v2.03 179
Relationship Sta... 98
Sexual Orientati... 116
Fisherman 143
Popular Addons
iTheme2 5801
Arise 5790
User Control v1.23 4619
Event Calendar 4050
Photowidget panel 3888
Radio-Theme red2... 3356
Highslide Gallery 3313
CSS/JavaScript D... 3229
Facebook Connect... 2985
Dynamic Menu 2893
Slideshow Lightb... 2721
L-AMANT 2659
Enigma 2636
2Dark 2606
Black 2579
View Thread
Who is here? 1 guest(s)
 Print Thread
Fetch users from v6 db?
Tubaplayer
Hi!
Is there a way to get the user data from an existing v6 site to a new v7 site? Or do I have to make a new v6 site, import the user data from the old one, and then upgrade the new site to v7? I just want the user data, not all the other content..

P
 
mojkan
I've been thinking about the same.

Wouldn't it be possible to write a script that upgrades a database, without having to create an entire site each time Smile For us who run both v6 and v7 and want the test site (v7) to use for instance forum threads, posts and users from v 6, that would make the work much easier.

Maybe an infusion where you point to a database and the infusion converts the database to v 7 standards Smile
 
Tubaplayer
Good idea, but not the same thing that I have in mind. I'm not talking about running the sites side by side, sharing info from the db. What I need is to be able to switch from the old v6 site to the new v7 site (currently running in a sub folder on the same domain), and bring all the user data (basically the user registration data and the profile info) to the new site. Permanently.

A bonus would be if I could import the photo album, but that's not so important. I can do that manually on one of many rainy days in Bergen (Norway's rainy city).

I don't need/want forum threads, posts, news, articles etc.
 
Matonor
Upgrading the site and then backing up & restoring the data you want is the easiest way. It takes 5 minutes so I doubt anyone would write a script to do that.
Impossible things are there to be made possible
 
kneekoo
Tubaplayer, if all you want is to upgrade to v7 on your website then follow Matonor's advice. After that we can easily help you to empty your news, forum and the other tables. That's probably the smallest problem you could get into. Smile


mojkan, why complicate your life with custom imports/exports? Try this:

1. Install the same v6 version you have on the first site to your second location.

2. Make a backup of your v6 (Admin Panel -> System Admin -> Database Backup) and keep it handy.

3. Copy all your files from your current site to the new one.

Now the next step would be to restore your database but it's very important that you give your saved tables a different prefix before continuing so you can have two separate sites running.

To rename your table prefixes you will have to open your SQL file in Notepad, Notepad2 etc (not Wordpad, Word or any other rich text editor) and start replacing the prefixes. This is as example:

Replace `fusion_ with `fusion7_

As you noticed, I only added a 7 but that's enough to make it different so we don't end up mixing data.

4. Login as a Super Administrator on your second website and go to Admin Panel -> System Admin -> Database Backup to restore your modified database backup.

5. Login through FTP to your website and edit your config.php file to update $db_prefix and DB_PREFIX. This way your new website will use the modified database you have just restored from your full export.

6. Get v7 and follow the readme instructions to migrate your new site to the latest version. That should be it.
 
http://www.phpfusion.ro/
Tubaplayer
Thanks for your replies, much appreciated. Thing is, I have a v7 site that was originally supposed to be used just for testing stability and compatibility. While testing, I posted news, articles, links, pictures and so on. Now I'd like to keep all of this stuff in the new site, so a full export/import from the old site, followed by deleting news, articles etc. is not an option. But Matanor's suggestion is probably the best, if I make a bit of extra work of it. Here's my plan:
- set up a new 6.x.x site
- import db from old v6 site
- upgrade new v6 site to v7
- export user fields
- import user fields to current v7 site
- done Smile
 
TammyK
Do the export then empty the tables you don't want to use. Then upgrade to v7.
 
VoiceX
how can i bring the only Users into v7?

I just wanna export Username, Userinfos, password, mail and rest of Users info. No news/articles/...
 
Tubaplayer
Read the thread.... That was my first question, and it has been properly solved.. If you read my last entry, I wrote down step by step how I'm going to do it. That's probably the easiest way. If you have a fresh install without any news, articles, forum posts and so on, you can import the entire database, and then delete everything you don't need.
Edited by Tubaplayer on 21-07-2008 15:27
 
mojkan
kneekoo wrote:
Tubaplayer, if all you want is to upgrade to v7 on your website then follow Matonor's advice. After that we can easily help you to empty your news, forum and the other tables. That's probably the smallest problem you could get into. Smile


mojkan, why complicate your life with custom imports/exports? Try this:

1. Install the same v6 version you have on the first site to your second location.

2. Make a backup of your v6 (Admin Panel -> System Admin -> Database Backup) and keep it handy.

3. Copy all your files from your current site to the new one.

Now the next step would be to restore your database but it's very important that you give your saved tables a different prefix before continuing so you can have two separate sites running.

To rename your table prefixes you will have to open your SQL file in Notepad, Notepad2 etc (not Wordpad, Word or any other rich text editor) and start replacing the prefixes. This is as example:

Replace `fusion_ with `fusion7_

As you noticed, I only added a 7 but that's enough to make it different so we don't end up mixing data.

4. Login as a Super Administrator on your second website and go to Admin Panel -> System Admin -> Database Backup to restore your modified database backup.

5. Login through FTP to your website and edit your config.php file to update $db_prefix and DB_PREFIX. This way your new website will use the modified database you have just restored from your full export.

6. Get v7 and follow the readme instructions to migrate your new site to the latest version. That should be it.


I already did that Smile And it works like a charm. I admit I was a bit lazy in my thoughts before. I will only have to do this one time when it's time to convert to v7. Until then I don't really need to keep my test v7 site up to date.

Yep yep, keep up the good work you do here Smile

Tubaplayer wrote:
Thanks for your replies, much appreciated. Thing is, I have a v7 site that was originally supposed to be used just for testing stability and compatibility. While testing, I posted news, articles, links, pictures and so on. Now I'd like to keep all of this stuff in the new site, so a full export/import from the old site, followed by deleting news, articles etc. is not an option. But Matanor's suggestion is probably the best, if I make a bit of extra work of it. Here's my plan:
- set up a new 6.x.x site
- import db from old v6 site
- upgrade new v6 site to v7
- export user fields
- import user fields to current v7 site
- done Smile


That is exactly how I did it! And it works very well. However, I guess you will lose those news etc you have put in your v7 test site, if you also want the news etc from your old site. Unless you are able to chose specific information to restore from phpMyadmins (but I don't think you can merge the databases like that).
Also sorry for hi-jacking your thread, at the beginning I thought we hade the same ide Smile
Edited by mojkan on 21-07-2008 16:01
 
VoiceX
thx, i solved it myself by exporting fusion_users and fusion_user_groups. Took the inserts, added the fields user_admin_password and user_threads.

Needed 15 minutes in comparing the old and the new table and 5 minutes in doing the work in phpMyAdmin.
 
googlebot
You do know you can select the tables that you back up, don't you? That is, you can back up only PREFIX_users if you want..
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
 
kneekoo
Well... he does know. Smile
VoiceX wrote:
thx, i solved it myself by exporting fusion_users and fusion_user_groups. Took the inserts, added the fields user_admin_password and user_threads.

 
http://www.phpfusion.ro/
mojkan
googlebot wrote:
You do know you can select the tables that you back up, don't you? That is, you can back up only PREFIX_users if you want..


Yep Smile But I miss the fact in phpMyadmins to be able to break out one table to restore out of an entire database like you can do using restore from within your php-fusion site.
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Upload and insert photos into individual forum posts (by users, not admin)? Content Administration 6 26-03-2013 14:48
Users Downloaded Attachments Mod V1.00 Panels and Infusions 4 15-03-2013 09:07
Users online Panel Suspected Bugs and Errors 5 06-01-2013 10:59
Help users inbox is full General Discussion 3 31-12-2012 12:12
Users Websites Panel v1.1 Panels and Infusions 5 05-12-2012 19:07
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel byVenue