Welcome to Geeklog, Anonymous Sunday, December 01 2024 @ 05:31 am EST

Geeklog Forums

Backup Failed: Filesize was 0 bytes


Status: offline

Sniper12

Forum User
Regular Poster
Registered: 11/25/03
Posts: 81
Location:Denmark
I have tried to get my site to make a backup, bud I get this error.

Backup Failed: Filesize was 0 bytes

I have looked in the forum for help but I can't find it.

I have tried to edit the line $_DB_mysqldump_path in the config.php file. In my phpinfo I can see some path to the mysql but I can get it to work.

This is from my phpinfo file.


MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient


I hope somebody can help me. I don't now if it can help you to see my phpinfo.

Sorry I forgot to say that I have another script that can make at backup of my mysql, and it works fine.
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
Quote by Sniper12: I have tried to get my site to make a backup, bud I get this error.

Backup Failed: Filesize was 0 bytes

I have looked in the forum for help but I can't find it.

I have tried to edit the line $_DB_mysqldump_path in the config.php file. In my phpinfo I can see some path to the mysql but I can get it to work.

This is from my phpinfo file.


MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient


I hope somebody can help me. I don't now if it can help you to see my phpinfo.

Sorry I forgot to say that I have another script that can make at backup of my mysql, and it works fine.


None of those are the paths. Usually, it is something like /usr/bin/mysqldump

If that isn't it, ask your provider.
 Quote

Status: offline

Sniper12

Forum User
Regular Poster
Registered: 11/25/03
Posts: 81
Location:Denmark
Okay I tray that Wink
 Quote

ironmax

Anonymous
Quote by Turias:
Quote by Sniper12: I have tried to get my site to make a backup, bud I get this error.

Backup Failed: Filesize was 0 bytes

I have looked in the forum for help but I can't find it.

I have tried to edit the line $_DB_mysqldump_path in the config.php file. In my phpinfo I can see some path to the mysql but I can get it to work.

This is from my phpinfo file.


MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient


I hope somebody can help me. I don't now if it can help you to see my phpinfo.

Sorry I forgot to say that I have another script that can make at backup of my mysql, and it works fine.


None of those are the paths. Usually, it is something like /usr/bin/mysqldump

If that isn't it, ask your provider.


For those of you that use Windows NT Servers, you may try this:

// optional settings for making database backups from within Geeklog
$_CONF['allow_mysqldump'] = 1; // 1 = on, 0 = off
$_DB_mysqldump_path = 'C:/mysql/bin/mysqldump.exe'; // path to mysqldump binary
$_CONF['mysqldump_options'] = '-Q'; // additional options for mysqldump

Notice the full path and EXE program on the same line. This is for a typical MySQL install dir, edit your paths accordingly.
 Quote

Status: offline

ldfoo

Forum User
Junior
Registered: 05/10/04
Posts: 34
Hi - Searching the forums says there is no answer to the following DB Backup problem apart from changing hosting services

This is the message I receive

Incorrect path or mysqldump utility not executable.
Check $_DB_mysqldump_path definition in config.php.
Variable currently defined as: /usr/bin/mysqldump

This is the reply from my hosting srvice at hostbreeze.com

Dear Customer,

That path is off limits to customers and I don't believe there is a hosting company that does allow it. If you need full access for stuff like that I advise upgrading to a dedicated server.

Any other suggestions please

thanks
laurie
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
For backups, Geeklog uses the mysqldump utility, which is part of a standard MySQL install. If your hosting service does not give you access to that utility, then you can't use Geeklog's backup function, I'm afraid.

As an alternative, I'd recommend phpMyAdmin as that has a backup function built in that does not rely on mysqldump.

Btw, many hosting services, mine included, do allow access to mysqldump, even on normal shared hosting accounts.

bye, Dirk
 Quote

Status: offline

ldfoo

Forum User
Junior
Registered: 05/10/04
Posts: 34
Hi Dirk

Thanks for the confirmation

BTW - which host do you use / run ?

I also use moodle and many hosts restrict the use of the chat facility moodle uses?

regards
laurie
 Quote

All times are EST. The time is now 05:31 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content