Jump to content

Copy mysql data into another table with another mysql user?


Cory94bailly

Recommended Posts

I am using SMF and I need to copy SOME of the fields to another mysql table.

 

The two databases are on the same server..

 

The thing is that my MYSQL user does not have access to both databases, there are two users..

 

 

I need to copy the table smf_members (columns: ID_MEMBER, memberName, ID_GROUP, passwd, emailAddress, memberIP, memberIP2, id_activated, and additionalGroups) into another table 'members'

 

 

Let me explain.

 

 

User1 > smf_members > ID_MEMBER

                                        memberName

                                        (etc...)

 

I need to copy those to this:

 

User2 > members > ID_MEMBER

                                  memberName

                                (etc...)

 

 

 

 

I hope this will be very easy to do..

 

Thanks guys ;)

so why can't you change the permissions to grant access to it?

 

That's the thing..

 

My friend has a dedicated server and he owns/manages a semi-popular website..

 

He is almost never online (when he is, he's too busy to do anything)..

 

 

 

About this script, maybe it can export the selected table/columns into .sql, put that into the temp directory, then import the .sql but only import selected data.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.