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 ;)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.