My database backup is too big.

They have: 9 posts

Joined: Apr 2006

Hi. I have a database backup which is 150 mb. My host only allows a max of 100 mb in a MYSQL database. What are my options to resotre my old database (IPB forums) to my new host? I don't want to loose 10,000 members..

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

Are you backing up the entire database at once? If so, try backing up each table individually.

-Greg

They have: 9 posts

Joined: Apr 2006

No, I have 1 sql file witch is 150mb my host only gives me 100mb per mysql. Is it possible to split it into 2 databases. I know nothing about MYSQl. Is it possible?

They have: 140 posts

Joined: Apr 2006

lordmenace wrote: No, I have 1 sql file witch is 150mb my host only gives me 100mb per mysql. Is it possible to split it into 2 databases. I know nothing about MYSQl. Is it possible?

Can you pay extra to upgrade your hosting package for a larger SQL DB? If not, I know hosting companies where you can do that so you might consider moving.

They have: 9 posts

Joined: Apr 2006

Anyone know of a free remotely hosted database? All I need is 150 mb...

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Well as Greg mentioned, you can backup each table individually. How are you backing-up at the moment and what tools are you using?

They have: 34 posts

Joined: May 2006

It will be better for you to change hoster.

He has: 19 posts

Joined: May 2006

I *think*, he means he already has a backup, he just can't use it because his host doesn't allow it to be that big.

They have: 2 posts

Joined: May 2006

I think that in MySQL 5.2 you can have 1 table over several databases.

They have: 7 posts

Joined: Jun 2006

u need to perform this operation one by one and not all at one go .

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

Just because the SQL file is 150MB doesn't mean the SQL DB itself will be. Do as others have suggested, and restore the backup one table at a time. Keep checking the DB size as you get closer to the end and see if you're getting too close.

If you are pretty close at the end, you'll want to switch hosts before too long to allow for more expansion of your database. That switch should be made before you hit the DB space limit on your current server.

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Quote: Just because the SQL file is 150MB doesn't mean the SQL DB itself will be.

A little off topic: Is that because of the excess white space inside the backup txt file?

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

There's multiple reasons, but that's not really one that I was thinking of. The SQL statements themselves my be more room than is taken up by the DB's info. Granted, the more I think about that, the less likely I think it is, but it is possible.

But to understand what I was talking about, consider this. In the SQL/TXT file, a 1 would be stored as an ASCII character (or whatever encoding you use). In the DB itself, the 1 could be stored as a float, int, etc. Each of these takes up a different amount of space, and none of them are likely to be exactly the same amount of space that an ASCII 1 takes up.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.