Restoring a database

Permalink
Trying to restore my database. (Just performed a clean install)

I get this error

Warning: chmod() [function.chmod]: Operation not permitted in /var/www/vhosts/mommyandidesigns.com/httpdocs/concrete/controllers/dashboard/system/backup_restore/backup.php on line 90

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 9392526 bytes) in /var/www/vhosts/mommyandidesigns.com/httpdocs/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php on line 56


I changed the permission on my concrete folder to 777 to test and my php.ini to the following values to no avail:

memory_limit 512M
post_max_size 512M
upload_max_filesize 512M

Thanks all

 
hostco replied on at Permalink Reply
hostco
Try increasing the memory.
hcelada replied on at Permalink Reply
The physical or the php file?
hostco replied on at Permalink Reply
hostco
Sorry, the phpini file.
hostco replied on at Permalink Reply
hostco
Do you have access to phpmyadmin?
hcelada replied on at Permalink Reply
Yes, I do
hostco replied on at Permalink Reply
hostco
If you have access, you should try restoring (uploading) your database using it.
hcelada replied on at Permalink Reply
Something else is going on. That didn't work either

Do you know if safe mode is supposed to be on or off?
hostco replied on at Permalink Reply
hostco
That should not matter. You are getting this error when uploading the database through phpmyadmin?
thephilm replied on at Permalink Reply
thephilm
I've run into this before when restoring a database on a site that had statistics running... it caused lots of memory timeouts because of the sheer amount of data.

I simply opened the .sql file in wordpad, removed the stats database portion (pretty easy to spot if you know what your looking for), and re imported through phpmyadmin.
hostco replied on at Permalink Reply
hostco
We have also seen this same type of issue wih stats and large data bases. Increasing max_execution_time in php.ini seems to solve the issue.
hcelada replied on at Permalink Reply
Ok, now I am really stuck. I started over because I didn't remember what changes I had made anymore

Found the "moving a site" instructions on this site. One of the first steps is to simply move all the content over. Previously when I did that, I was able to see the content, just not the eCommerce items since that requires a DB connection. Now, I connect tohttp://www.sitename and it gives me an error saying it cannot connect to the DB.

Does the DB need to be functioning before you can see home page content? (Wasn't like that before which is why I ask)

I was planning on using the DB restore function directly in C5, but obviously I can't get there either

Thanks for all the help thus far
hostco replied on at Permalink Reply
hostco
If you would not mind giving us access to the server, we can save you some time and see if we can get it up and running for you.

The reason the page still loaded for you is because it was more then likely saved in your browser cache.

If you would like some assistance send us a PM.
hcelada replied on at Permalink Reply
What's your email address?
Keepingitreal replied on at Permalink Reply
Can you help me as well? I have a failed database restore and my site is messed up.
hostco replied on at Permalink Reply
hostco
If you are going to reach out and ask like that, I can sure try :)

Please PM me your site details.
hostco replied on at Permalink Best Answer Reply
hostco
PM sent
rwebber77 replied on at Permalink Reply 1 Attachment
What was the issue here? I just attempted to restore an intranet and received the same "unexpected error" that is attached. Now the site won't display at all...not good for this business!