Backup recipebooks aplication with phpmyadmin

kaneco
Posts: 26
Joined: Fri Dec 26, 2008 6:15 pm

Backup recipebooks aplication with phpmyadmin

Postby kaneco » Sun Nov 06, 2011 11:04 am

Hello

I recently changed my server from the old on to the new one
I have done the backup to the databases like the recipebooks
But when I try to upload the file I have I receive a message:

No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See FAQ 1.16.

How can i solve this problem in oder to put all data inside to the database again
Because the file i have backup is 2.958kb in zip format
and the maximum allowed is 2,048 KB in phpmyadmin

please help me to solve this issue

best regards

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Backup recipebooks aplication with phpmyadmin

Postby bigfoot65 » Sun Nov 06, 2011 1:18 pm

Can you unzip the file? Then you can open the file, copy the text and paste into phpMyAdmin SQL window. Run it and the database should be populated.

Keep in mind you might need to empty the current database first.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

kaneco
Posts: 26
Joined: Fri Dec 26, 2008 6:15 pm

Re: Backup recipebooks aplication with phpmyadmin

Postby kaneco » Sun Nov 06, 2011 2:15 pm

hello bigfoot,

I have Google a little and I found a way to increase the import limit in the phpmyadmin is edit the file etc/php.ini and change this parameters:

post_max_size = 50M
upload_max_filesize = 50M

after this i don't have the error with the limit but i have a new one:
Erro

Comando SQL:

--
-- Extraindo dados da tabela `recipe_bases`
--
INSERT INTO `recipe_bases` ( `base_id` , `base_desc` )
VALUES ( 1, 'Carne Vaca' ) , ( 2, 'Carne Porco' ) , ( 3, 'Carne Aves' ) , ( 4, 'Marisco' ) , ( 5, 'Peixe' ) , ( 6, 'Ovos' ) , ( 7, 'Pão' ) , ( 8, 'Vegetais' ) , ( 9, 'Frutas' ) , ( 10, 'Bebidas Alcolicas' ) , ( 11, 'Bebidas não Alcolicas' ) , ( 12, 'Pasta' ) , ( 13, 'Massas' ) , ( 14, 'Bolos' ) , ( 15, 'Tartes' ) , ( 16, 'Doces' ) , ( 17, 'Semi-frio' ) , ( 18, 'Gelados' ) , ( 19, 'Saladas' ) , ( 20, 'Puré' ) , ( 21, 'Carnes mistas' ) ;

Mensagens do MySQL : Documentação
#1062 - Duplicate entry '1' for key 'PRIMARY'


can you please help me with this

Best regards

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Backup recipebooks aplication with phpmyadmin

Postby bigfoot65 » Sun Nov 06, 2011 2:41 pm

Did you empty the database first before trying to load your backup? If not, you will have issues.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

kaneco
Posts: 26
Joined: Fri Dec 26, 2008 6:15 pm

Re: Backup recipebooks aplication with phpmyadmin

Postby kaneco » Sun Nov 06, 2011 2:52 pm

Hello

Empty the database? do you mean click over all check box inside the recipedb databased and select delete (upper left corner) or do you mean select the clear in front of all items in the database??

Best regards

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Backup recipebooks aplication with phpmyadmin

Postby bigfoot65 » Sun Nov 06, 2011 4:14 pm

Best if you read the documentation for phpMyAdmin on how to delete records in tables. I do not use it much, do mine from the command line.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

kaneco
Posts: 26
Joined: Fri Dec 26, 2008 6:15 pm

Re: Backup recipebooks aplication with phpmyadmin

Postby kaneco » Mon Nov 07, 2011 5:14 am

Hello Bigfoot,

Thank you for your help, I perform the clean to the database and now is working fine. I have put all data again in database, whithout no probems.

Best regards

And thank you again for your help

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Backup recipebooks aplication with phpmyadmin

Postby bigfoot65 » Mon Nov 07, 2011 5:45 am

Awesome. Glad it worked out.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 16 guests