Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just hangs if it cannot connect to database #4

Open
bjornbjorn opened this issue Feb 17, 2014 · 3 comments
Open

Just hangs if it cannot connect to database #4

bjornbjorn opened this issue Feb 17, 2014 · 3 comments

Comments

@bjornbjorn
Copy link

If something is wrong with the mysql connection information (ie. wrong password) then grunt-mysql-dump will just hang:

Running "db_dump:ee" (db_dump) task
Dumping database 'Database backup' to 'backups/db.sql'
@bjornbjorn
Copy link
Author

.. an update on this one. Not sure what's going on here. But I just tested this again and it does throw an connection error if the password is wrong.

However, I'm able to reproduce the behaviour described above with this db_dump configuration:

        db_dump: {
            ee: {
                "options": {
                    "title": '<%= settings.db_name %>',
                    "database": '<%= settings.db_name %>',
                    "user": '<%= settings.db_username %>',
                    "pass": '<%= settings.db_password',
                    "host": '<%= settings.db_host %>',
                    "backup_to": 'backups/db/<%= settings.db_name %>.sql'
                }
            }
        },

(notice the missing %> on the pass: parameter)

@whroman
Copy link

whroman commented Mar 18, 2014

I'm experiencing this issue as well. Below is the db_dump task configuration.

db_dump: {
    production   : {
        options     : {
            title       : 'Production DB',
            backup_to   : './sql_backups/production.sql',

            database    : 'infield_typo3',
            user        : 'infield_typo3',
            pass        : '6,;y#^6HF)h*',
            host        : '127.0.0.1',

            ssh_host    : 'infield@www.infielddesign.com'
        }
    },
    local   : {
        options     : {
            title       : 'Local DB',
            backup_to   : './sql_backups/test.sql',

            database    : 'infield_typo3',
            user        : 'root',
            pass        : 'root',
            host        : '127.0.0.1' 
        }
    }
}

@olance
Copy link
Member

olance commented Mar 18, 2014

Well I guess those are two different problems... or, if I'm lucky, two different causes for the same problem ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants