I did a vanilla install with Drupal 7.x.dev (Nov 17 2010) under Windows on a SQLite database, installed backup_migrate-7.x-2.x-dev (Nov 17 2010) and clicked on "Add Profile". This is what I got:
PDOException: SQLSTATE[HY000]: General error: 1 near "show": syntax error: show table status; Array ( ) in backup_migrate_destination_db_mysql->query() (line 273 of C:\htdocs\d7test\sites\all\modules\backup_migrate\includes\destinations.db.mysql.inc).
I think this is caused by the function _get_tables() in destinations.db.mysql.inc which issues the query show table status which isn't understood by SQLite.

CommentFileSizeAuthor
#1 974632_show_table_status_01.patch717 byteslinulo

Comments

linulo’s picture

Title: "Add Profile" generates a PDO exception » "Add Profile" generates a PDO exception with SQLite
Issue tags: +pdo, +sqlite, +Database abstraction layer
StatusFileSize
new717 bytes

Ok, I found a hack that works for me but I do not know enough about Drupal's database abstraction to do this cleanly (this would break things for MySQL users).

linulo’s picture

Status: Active » Needs work
gsotto’s picture

I get the same error :

PDOException: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "table" LINE 1: show table status ^: show table status; Array ( ) in backup_migrate_destination_db_mysql->query() (line 273 of C:\htdocs\drupal7pg\sites\all\modules\backup_migrate\includes\destinations.db.mysql.inc).

when I click on "Advanced Backup" . I have a drupal 7 install with a postgres db. Also, I do not have a source database available to backup.

gsotto’s picture

FYI. I found out the reason why I do not have a source db.
Here is an excerpt from the documentation:
"...This module only supports MySQL. If you have experiences with PostgreSQL or any
other dbms and are willing to help test and modify the module to work with it,
please contact the developer at ronan (at) gortonstudios (dot) com.
"

ronan’s picture

Title: "Add Profile" generates a PDO exception with SQLite » Add support for SQLite databases
Category: bug » feature
couturier’s picture

Version: 7.x-2.x-dev » 8.x-4.x-dev
Issue summary: View changes

I'm tentatively moving this to the 8.x branch since there has been discussion about focusing all feature request work on the D8 version going forward.

damienmckenna’s picture

Title: Add support for SQLite databases » Add support for SQLite databases (D7)
Version: 8.x-4.x-dev » 7.x-3.x-dev
Issue tags: -Database abstraction layer

Lets move it back to Drupal 7, and we'll open a new issue for D8.

damienmckenna’s picture

Title: Add support for SQLite databases (D7) » New backup source: SQLite (D7)
bogdog400’s picture

I was hoping to backup the SQLite database but maybe it would be easier to just copy the entire file.

ivnish’s picture

Status: Needs work » Closed (outdated)

Drupal 7 is EOL. This issue will be closed.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.