Mysql backup/restore class

Post Reply
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

Mysql backup/restore class

Post by Rksk » Mon Sep 06, 2010 8:02 pm

The bellow class works fine on my mechine. but when i try to use it with byethost free hosing account, it doesn't return anything. i can't understand what is the fuction that doesn't work. pls help me.
mysql_backup-2003-04-07.zip
(4.27 KiB) Downloaded 292 times
[ Post made via Mobile Device ] Image
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: Mysql backup/restore class

Post by Neo » Mon Sep 06, 2010 9:53 pm

It is most probably because of using "localhost" as your mysql server. Most web hosts keep their database server in a different server. So you will have to use the correct database server address.
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

Re: Mysql backup/restore class

Post by Rksk » Tue Sep 07, 2010 3:08 pm

configurations are ok. i didn't post real file here. this is the file which i downloaded from NET.

[ Post made via Mobile Device ] Image
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: Mysql backup/restore class

Post by Neo » Tue Sep 07, 2010 5:46 pm

Are you sure it connects to database correctly? Can you run a small script to connect to database and see fetch some rows.
Post Reply

Return to “PHP & MySQL”