Jump to content

Need Help Importing a database to MySQL/PHPMyAdmin


CountryGirl

Recommended Posts

Hi all,

 

The company I am working for decided to change web hosts for their website. We've run into one problem after another and now I've got to figure one last thing out. And, I can't get it to work! I need some help :).

 

I exported the PHPMyAdmin/MySQL database as a zipped sql file which we had at the previous webhost. I'm trying to upload that to the new PHPMyAdmin and I can't figure out how to get it uploaded. Every tutorial I see says to go to the SQL tab in PHPMyAdmin, and upload the text file there with import file option. I don't have that with my version of PHPMyAdmin (v. 5). I do have an import tab at the top and I've tried upload the file there and I don't get anywhere. The error says the database is too big to import. How do I solve this problem??? The folks at our webhost are not very helpful with this, so I don't get anywhere with them!

 

Thanks!

Qadoshyah

Link to comment
Share on other sites

If your database is too big the server may timeout (through http) before it can complete the request. Have you got shell access to your hosting account? You can simply import your database via the command line mysql client.

Link to comment
Share on other sites

If your database is too big the server may timeout (through http) before it can complete the request. Have you got shell access to your hosting account? You can simply import your database via the command line mysql client.

 

I'm not sure if I have shell access to the hosting account. How exactly could I find that out? Or get it?

 

Thanks!

Qadoshyah

Link to comment
Share on other sites

Okay, I have Shell access to the account. How exactly do I get the database uploaded now? Using what commands? Please explain, as this is pretty new to me ;).

 

Thanks so much for the help!

Qadoshyah

 

I believe this will do the trick:

 

You can load the dump file back into the server like this:

shell> mysql db_name < backup-file.sql

 

taken from:

http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html

 

 

Link to comment
Share on other sites

Okay, I have Shell access to the account. How exactly do I get the database uploaded now? Using what commands? Please explain, as this is pretty new to me ;).

 

Thanks so much for the help!

Qadoshyah

 

I believe this will do the trick:

 

You can load the dump file back into the server like this:

shell> mysql db_name < backup-file.sql

 

taken from:

http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html

 

And, would I use something like PuTTY to put that command into? Where would I put that command? PuTTY has me a bit confused  :(.

 

Thanks!

Qadoshyah

Link to comment
Share on other sites

Okay, I have Shell access to the account. How exactly do I get the database uploaded now? Using what commands? Please explain, as this is pretty new to me ;).

 

Thanks so much for the help!

Qadoshyah

 

I believe this will do the trick:

 

You can load the dump file back into the server like this:

shell> mysql db_name < backup-file.sql

 

taken from:

http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html

 

And, would I use something like PuTTY to put that command into? Where would I put that command? PuTTY has me a bit confused  :(.

 

Thanks!

Qadoshyah

 

yes, if its a linux box, you putty into it.

 

This link should help after you login: http://dev.mysql.com/doc/refman/5.0/en/mysql.html

 

Link to comment
Share on other sites

I'm able to login to my DB and everything with PuTTY. But, I'm lost as to how to import the DB I need to import. I exported from the previous server and have that zipped SQL file uploaded to my website host with my FTP program. How do I get that file to import into the new DB using Shell access? The mysqldump doesn't seem to be working and I'm not sure why. I must be doing something wrong.

 

Do I need MySQL or something on my computer? I wouldn't think so, but what am I doing wrong?!

 

Thanks!

Qadoshyah

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.