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! =)
14 Réponses
+ 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
+ 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)
0
You need to download all contents of FTP tô your htdcos... Css files, JS files, PHP files, html..
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)
0
Caio, do you speak portuguese??
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
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
0
Opa! Falo sim, Kian ( sou brasileiro...rs). Show! Tem algum arquivo padrão do php que seja responsável por isso?
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
0
conheço relativamente à nomenclatura, mas nunca fiz o setup inicial de um site nessa linguagem.
0
Tu tem que achar nos arquivos php as config
0
Servername database username...
0
Boa! Era isso que tava precisando. Vou dar uma caçada nisso e depois de atualizo. Valeu a força!