0

PHP website and its database backup

Hi, I have a website that was built for me in php language. Now I am studying how to build sites like that and I wish to use mine to practice. But I am afraid of making a mistake and losing it. So, here is my question: I want to copy my website and database from my hostgator host to my localhost(xampp) , to play and practice in it without taking the risk of losing it. I’ve already copied my public.html file from the ftp to my htdocs file. From here, I am not sure what to do. Can you help me ??? Since now, thanks for the attention! =)

8th Aug 2018, 11:49 AM
Caio De Andreis
Caio De Andreis - avatar
14 Answers
+ 1
Pode ser que seja necessário criar o database no PHPmyadmin ou importar se tiver o arquivo SQL pronto, te aconselho ver algum vídeo no YouTube tu vai entender melhor
8th Aug 2018, 10:05 PM
Kian Chaves
Kian Chaves - avatar
+ 1
I've already copied everything that was on my ftp to my htdocs file. but when I try to access it via browser(localhost/xampp ) i have a 500 error apearing (server error)
8th Aug 2018, 6:09 PM
Caio De Andreis
Caio De Andreis - avatar
0
You need to download all contents of FTP tô your htdcos... Css files, JS files, PHP files, html..
8th Aug 2018, 11:56 AM
Kian Chaves
Kian Chaves - avatar
0
Hi, Kian! thanks for the reply! but dont i have to do anything about the database in Mysql (i am still learning how that works...lol)
8th Aug 2018, 11:57 AM
Caio De Andreis
Caio De Andreis - avatar
0
Caio, do you speak portuguese??
8th Aug 2018, 6:44 PM
Kian Chaves
Kian Chaves - avatar
0
Put all of them in a paste on htdocs after it you need to see the configs of database, maybe you need to set to localhost and need to see if you have the database
8th Aug 2018, 8:32 PM
Kian Chaves
Kian Chaves - avatar
0
If don't you need to create it, but you need to analyse the code, take a look in some article PHP database configuration
8th Aug 2018, 8:34 PM
Kian Chaves
Kian Chaves - avatar
0
Opa! Falo sim, Kian ( sou brasileiro...rs). Show! Tem algum arquivo padrão do php que seja responsável por isso?
8th Aug 2018, 9:59 PM
Caio De Andreis
Caio De Andreis - avatar
0
Então eu não preciso entrar no PhpMyAdmin para fazer este processo de migração da base de dados? como falei, ainda estou iniciando o estudo em MySQL e PHP
8th Aug 2018, 10:00 PM
Caio De Andreis
Caio De Andreis - avatar
0
conheço relativamente à nomenclatura, mas nunca fiz o setup inicial de um site nessa linguagem.
8th Aug 2018, 10:01 PM
Caio De Andreis
Caio De Andreis - avatar
8th Aug 2018, 10:04 PM
Kian Chaves
Kian Chaves - avatar
0
Tu tem que achar nos arquivos php as config
8th Aug 2018, 10:04 PM
Kian Chaves
Kian Chaves - avatar
0
Servername database username...
8th Aug 2018, 10:04 PM
Kian Chaves
Kian Chaves - avatar
0
Boa! Era isso que tava precisando. Vou dar uma caçada nisso e depois de atualizo. Valeu a força!
8th Aug 2018, 10:58 PM
Caio De Andreis
Caio De Andreis - avatar