Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 08:28 pm EST

Geeklog Forums

Database Backup Funky error


Status: offline

thedude

Forum User
Regular Poster
Registered: 12/28/02
Posts: 90
Has anyone seen this issue before? I'm trying to do back up for my dbase using the dbase back up in Geeklog 1.3.7 and I'm being presented with this error. I checked the file and have no clue what's wrong with it. Please help.. Fatal error: Call to undefined function: is_executable() in c:/inetpub/wwwroot/admin/database.php on line 70 Thanks.. Cheers, The Dude
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Hmm, I just noticed that the PHP manual includes a comment for this function saying "This function is not available on Win32." So for now, simply replace if (is_executable($_DB_mysqldump_path)) { with if (true) { in admin/database.php bye, Dirk
 Quote

Anonymous

Anonymous
I also get a backup error on a windows server: Incorrect path or mysqldump utility not executable. Check $_DB_mysqldump_path definition in config.php. Variable currently defined as: /usr/bin/mysqldump I have never tried this backup cause the server is at my office and I do on site backups, but thought I would see what happens Smile so I changed the path to point directly at the exe file like so: $_DB_mysqldump_path = 'C:installsmysqlbinmysqldump.exe' and it worked fine
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Well, /usr/bin/mysqldump is the name of an exectuable file on Unix/Linux - that wasn't meant to be a directory name. bye, Dirk
 Quote

Anonymous

Anonymous
Dirk, I did what you suggested by replacing the tag including what the anonymous user suggested (It makes sense) and it works... Thanks for the both of you for the help.. Y'all da man.... Cheers, The Dude
 Quote

Status: offline

johnjr

Forum User
Chatty
Registered: 02/08/04
Posts: 68

To get the GeekLog database backup function to work in Windows (Windows 2000 Pro, with Apache), in the 'main' config.php, I just changed this line:

$_DB_mysqldump_path = '/usr/bin/mysqldump';

to this:

$_DB_mysqldump_path = 'c:/mysql/bin/mysqldump.exe';

It worked great.

John Rayfield, Jr.
 Quote

Status: offline

tenafternine

Forum User
Newbie
Registered: 03/01/04
Posts: 1
cheerful
Thank you very much johnjr!
I was racking my brain trying to figure out why that path would work on my win box. The only thing I was missing was the '.exe' at the end. Its always the smallest things.

A curse on that Bill Gates!
J Thompson
 Quote

All times are EST. The time is now 08:28 pm.

  • 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