icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » How do I upload mysql tables?

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old September 18th, 2004, 3:28 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2004
Hosted on Plexi
3 posts
Gave thanks: 0
Thanked 0 times
Question How do I upload mysql tables?

I am a newbie and a student. I have MySQL running on my home box and I have a database that contains 3 tables that I would like to put on Surpass account site. How do I upload the DB and have it seen by MySQL tools in the cPanel?
ibrown is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 18th, 2004, 3:29 PM   #2 (permalink)
WWJD?
Excelling Contributor
 
Brian's Avatar
 
Joined in May 2004
Hosted on Vega
774 posts
Gave thanks: 0
Thanked 0 times
Quote:
Originally Posted by ibrown
I am a newbie and a student. I have MySQL running on my home box and I have a database that contains 3 tables that I would like to put on Surpass account site. How do I upload the DB and have it seen by MySQL tools in the cPanel?
Hmm..good question..I know but hard to put in words for you to understand
__________________

www.kanyeweb.net
www.industrytalk.net/forums

Server:Vega
Brian is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 18th, 2004, 3:32 PM   #3 (permalink)
sam
Surpass Fan
Super #1
 
sam's Avatar
 
Joined in Dec 2003
Lives in NJ
5,057 posts
Gave thanks: 0
Thanked 4 times
Hi ibrown.

basically -

run a mysqldump of your databases.

create the database in cPanel > mysqlAdmin if not already

then in phpMyAdmin - select the database and import the sql statements produced by the mysqldump for the respective databases.

remember that at surpass arll your mysql dbs must be prepended by your username ( cPanel will take care of this for you )

so lets say your username is ibrown

a db would be are ibrown_database1

remember you can't create the databaess from phpmyadmin - only from mysqlAdmin.
sam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 18th, 2004, 3:34 PM   #4 (permalink)
WWJD?
Excelling Contributor
 
Brian's Avatar
 
Joined in May 2004
Hosted on Vega
774 posts
Gave thanks: 0
Thanked 0 times
Quote:
Originally Posted by sam
Hi ibrown.

basically -

run a mysqldump of your databases.

create the database in cPanel > mysqlAdmin if not already

then in phpMyAdmin - select the database and import the sql statements produced by the mysqldump for the respective databases.

remember that at surpass arll your mysql dbs must be prepended by your username ( cPanel will take care of this for you )

so lets say your username is ibrown

a db would be are ibrown_database1

remember you can't create the databaess from phpmyadmin - only from mysqlAdmin.
WooHoo..Thanks Sam..cause I was about to try
__________________

www.kanyeweb.net
www.industrytalk.net/forums

Server:Vega
Brian is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 18th, 2004, 3:58 PM   #5 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2004
Hosted on Plexi
3 posts
Gave thanks: 0
Thanked 0 times
Wow.. that was easy.. Thanks.. it worked like a charm.. well as you instructed my local DB have to have the same name as the name created by the site.
ibrown is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 18th, 2004, 4:42 PM   #6 (permalink)
sam
Surpass Fan
Super #1
 
sam's Avatar
 
Joined in Dec 2003
Lives in NJ
5,057 posts
Gave thanks: 0
Thanked 4 times
glad it worked. thanks for the followup.

now to close the loop.

the cpanel backup db tool produces a mysqldump of whatever db you like.

so what you can do is run that backup ( or schedule it to run - search for the phrase automagic in the forum )

and then from the mysqlmonitor at home - execute the sql produced by cpanel.

that way in your test/development environment you can have the latest and greatest active data from your site at the moment of the mysqldump.
sam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On