Jump to content

testing server


Woodburn2006

Recommended Posts

It looks like he just wants to be able to copy the local db to the remote db once. By "without having to re-build", I think he means without having to recreate all the tables by hand and enter all the information as he did on his local server.

If that's the case then using PhpMyadmin's export option as mentioned earlier in the thread should be what you're looking for. I'm not very familiar with PhpMyadmin, but it should be a straight forward process.

Instead of using Phpmyadmin, you can do it by hand using "mysqldump" and "mysql" to do the copy.

Backup on test server
[code]
mysqldump --opt dbname > file.sql
[/code]

Restore on production server
[code]
mysql dbname < file.sql

//or as a query
SOURCE /path/to/file.sql
[/code]

You can compress the sql file to make it much smaller and upload the compressed file. There should also be a similar option in Phpmyadmin.

In linux
[code]
mysqldump --opt dbname | gzip -c > file.sql.gz
[/code]
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.