|
|||||||
![]() |
Forum Index > glFusion > glFusion Support |
|
|
DB Backup Problem
|
|||
| First | Previous | 1 2 | Next | Last | | | Printable Version |
|
tt0ne | ||||||||
|
Hey guys, PHP Formatted Code Sat May 8 07:33:31 2010 - Backup Filesize was less than 1kb Sat May 8 07:33:31 2010 - Command used for mysqldump: /usr/bin/mysqldump -hlocalhost -u<hidden> -p***** -Q <hidden> > "/var/www/glfusion/backups/glfusion_db_backup_2010_05_08_07_33_31.sql" Sat May 8 07:33:41 2010 - 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE uid=887' at line 1. SQL in question: SELECT block FROM WHERE uid=887 Sat May 8 07:33:52 2010 - 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE uid=1126' at line 1. SQL in question: SELECT block FROM WHERE uid=1126
HeavenlySanctuary.com - Surf The Innernet
|
![]() Active Member Group Comfort Level:: +10 ![]() ![]()
Registered: 05/15/07 |
||||||||
|
|||||||||
|
tt0ne | ||||||||
|
BUMP :-)
HeavenlySanctuary.com - Surf The Innernet
|
![]() Active Member Group Comfort Level:: +10 ![]() ![]()
Registered: 05/15/07 |
||||||||
|
|||||||||
|
Mark | ||||||||
|
Marco, I'm attaching an updated database.php (goes in the public_html/admin/ directory). I've changed the way the executable is called. Give this a try and let me know if it solves the problem. glFusion - Enhanced Content Management |
![]() Admin Group Comfort Level:: +104 ![]() ![]()
Registered: 10/21/05 |
||||||||
|
|||||||||
|
ironmax | ||||||||
Quote by: MarkMarco, I'm attaching an updated database.php (goes in the public_html/admin/ directory). I've changed the way the executable is called. Give this a try and let me know if it solves the problem.
Need web services? Contact Us at Spacequad Internet Services |
![]() Active Member Group Comfort Level:: +8 ![]() ![]()
Registered: 09/14/06 |
||||||||
|
|||||||||
|
tt0ne | ||||||||
|
What Max said!
HeavenlySanctuary.com - Surf The Innernet
|
![]() Active Member Group Comfort Level:: +10 ![]() ![]()
Registered: 05/15/07 |
||||||||
|
|||||||||
|
tt0ne | ||||||||
|
Mark, PHP Formatted Code Mon May 10 16:17:53 2010 - Command used for mysqldump: "/usr/bin/mysqldump" -hlocalhost -u<removed> -p***** -Q <removed> > "/var/www/glfusion/backups/glfusion_db_backup_2010_05_10_16_17_53.sql" Mon May 10 16:18:15 2010 - DBADMIN_exec: Executing: "/usr/bin/mysqldump" -hlocalhost -u<removed> -p<removed> -Q heavenlysanctuary_com-rev4 > "/var/www/glfusion/backups/glfusion_db_backup_2010_05_10_16_18_15.sql" Mon May 10 16:18:15 2010 - DBADMIN_execWrapper: Failed Command: "/usr/bin/mysqldump" -hlocalhost -u<removed> -p<removed> -Q heavenlysanctuary_com-rev4 > "/var/www/glfusion/backups/glfusion_db_backup_2010_05_10_16_18_15.sql" Mon May 10 16:18:15 2010 - Backup Filesize was less than 1kb
HeavenlySanctuary.com - Surf The Innernet
|
![]() Active Member Group Comfort Level:: +10 ![]() ![]()
Registered: 05/15/07 |
||||||||
|
|||||||||
|
Mark | ||||||||
|
Try taking the -Q option off the command line and let's see if that makes a difference. glFusion - Enhanced Content Management |
![]() Admin Group Comfort Level:: +104 ![]() ![]()
Registered: 10/21/05 |
||||||||
|
|||||||||
|
tt0ne | ||||||||
|
Ok, Mark, I removed -Q from the configuration option in glFusion (did I put it there or is that default?)... Still no go.
HeavenlySanctuary.com - Surf The Innernet
|
![]() Active Member Group Comfort Level:: +10 ![]() ![]()
Registered: 05/15/07 |
||||||||
|
|||||||||
|
Mark | ||||||||
|
Marco, I think I have it this time. Give this new database.php (public_html/admin/ directory) a try and let me know if it works. glFusion - Enhanced Content Management |
![]() Admin Group Comfort Level:: +104 ![]() ![]()
Registered: 10/21/05 |
||||||||
|
|||||||||
|
tt0ne | ||||||||
|
Ok, I used the new file and I also turned "-Q" off and on - both attempts still failed with a 0 byte file. Here is the log: PHP Formatted Code Tue May 11 18:52:24 2010 - DBADMIN_exec: Executing: "/usr/bin/mysqldump" -hlocalhost -u<removed> -p***** -Q heavenlysanctuary_com-rev4 > "/var/www/glfusion/backups/glfusion_db_backup_2010_05_11_18_52_24.sql" Tue May 11 18:52:25 2010 - DBADMIN_execWrapper: Failed Command: "/usr/bin/mysqldump" -hlocalhost -u<removed> -p"<removed>" -Q heavenlysanctuary_com-rev4 > "/var/www/glfusion/backups/glfusion_db_backup_2010_05_11_18_52_24.sql" Tue May 11 18:52:25 2010 - Backup Filesize was less than 1kb Tue May 11 18:52:25 2010 - Command used for mysqldump: "/usr/bin/mysqldump" -hlocalhost -u<removed> -p***** -Q heavenlysanctuary_com-rev4 > "/var/www/glfusion/backups/glfusion_db_backup_2010_05_11_18_52_24.sql"
HeavenlySanctuary.com - Surf The Innernet
|
![]() Active Member Group Comfort Level:: +10 ![]() ![]()
Registered: 05/15/07 |
||||||||
|
|||||||||
|
Mark | ||||||||
|
Marco, are there any other special characters in the password, like a quote (single or double). I've tested the new code on Windows and Unix (Linux) hosts and it is working fine when a | (pipe character) is in the password. glFusion - Enhanced Content Management |
![]() Admin Group Comfort Level:: +104 ![]() ![]()
Registered: 10/21/05 |
||||||||
|
|||||||||
|
tt0ne | ||||||||
|
I don't see any complaints from PHP or Apache in the webserver logs - but I'll go ahead and give you all the strange characters in our database password with the suspicion that it's not gonna help anyone discover what it is.
HeavenlySanctuary.com - Surf The Innernet
|
![]() Active Member Group Comfort Level:: +10 ![]() ![]()
Registered: 05/15/07 |
||||||||
|
|||||||||
|
Mark | ||||||||
|
Marco, I've tested with all those characters without any issues. It is working for me both on Windows and Linux based hosts. I wonder if there isn't something else hiding from us..... glFusion - Enhanced Content Management |
![]() Admin Group Comfort Level:: +104 ![]() ![]()
Registered: 10/21/05 |
||||||||
|
|||||||||
|
tt0ne | ||||||||
|
Ok, check this out, Mark: PHP Formatted Code web:/var/www/glfusion# su www-data \h:\w$ /usr/bin/mysqldump -hlocalhost -uheavenlysa -p<removed> -Q heavenlysanctuary_com-rev4 > ./testdump.sql mysqldump: Got error: 1045: Access denied for user 'heavenlysa'@'localhost' (using password: YES) when trying to connect \h:\w$ /usr/bin/mysqldump -hlocalhost -uheavenlysa -p -Q heavenlysanctuary_com-rev4 > ./testdump.sql Enter password: \h:\w$ ls -laSh testdump.sql -rw-r--r-- 1 www-data www-data 103M May 12 06:00 testdump.sql \h:\w$
PHP Formatted Code \h:\w$ /usr/bin/mysqldump -hlocalhost -uheavenlysa -p'<removed>' -Q heavenlysanctuary_com-rev4 > ./testdump.sql \h:\w$ ls -laSh testdump.sql -rw-r--r-- 1 www-data www-data 103M May 12 06:04 testdump.sql \h:\w$
HeavenlySanctuary.com - Surf The Innernet
|
![]() Active Member Group Comfort Level:: +10 ![]() ![]()
Registered: 05/15/07 |
||||||||
|
|||||||||
|
Mark | ||||||||
|
That would make sense. Still, we should be able to pass it via PHP. I'm attaching one more update to try, let me know if this makes a difference. glFusion - Enhanced Content Management |
![]() Admin Group Comfort Level:: +104 ![]() ![]()
Registered: 10/21/05 |
||||||||
|
|||||||||
|
| First | Previous | 1 2 | Next | Last |
| All times are CDT. The time is now 03:27 am. |
|
|