Skip to content

mysqldump: Got error: 1102: Incorrect database name ' ' when selecting the database #478

Closed
@kbotnen

Description

@kbotnen

mysqldump: Got error: 1102: Incorrect database name ' ' when selecting the database

due to newlines and spacing issues in the generated usr/local/sbin/mysqlbackup.sh script.

It seems to be a problem with the templatefile mysqlbackup.sh.erb (https://github.com/puppetlabs/puppetlabs-mysql/blob/master/templates/mysqlbackup.sh.erb)

Line 56,57 and 58 can be changed to: https://gist.github.com/kbotnen/9304226, line 56.

maybe line 45, 46, 47 should be treated similar.

  • Kristian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions