Page 1 of 1

1.3.2 Database Backup

Posted: Tue Aug 18, 2009 11:39 pm
by onelouder
Hello, After using hcamelion steps to upgrade from 1.3.0 to 1.3.2 and running the db_changes.sql file it worked fine. But now when i try to back up the database i get the following error below. User group permissions are set.

Error: Access denied for user 'xxxxxx'@'%' to database ''xxxxxx'
Error No: 1044
SHOW TABLES FROM `'xxxxxx`

Is anyone else who used the same instructions to upgrade to 1.3.2 from 1.3.0 having the same problem when trying to back up there database?

Re: 1.3.2 Database Backup

Posted: Wed Aug 19, 2009 12:19 am
by onelouder
I beleive the problem is that i used a different username and password for the fresh database different from my old database. So its referencing it somewhere? I've checked the config.php in the main dir and the admin config.php theres no reference to them in there, is there any other files where this could be?

Re: 1.3.2 Database Backup

Posted: Wed Aug 19, 2009 3:04 am
by onelouder
Sorted!
It was an issue with a stray quote in admin/model/tool/backup.php

The original line was:
$table_query = $this->db->query("SHOW TABLES FROM `'" . DB_DATABASE . "`");

which needs to be:
$table_query = $this->db->query("SHOW TABLES FROM `" . DB_DATABASE . "`");

Re: 1.3.2 Database Backup

Posted: Wed Aug 19, 2009 5:16 am
by jules_nz
I just tried it and I got the same error (I was v1.3.0 - 1.3.2)

Your fix worked perfectly
Thanks onelouder