-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
This was a problem with grunt-deployments, so was probably not fixed at the time you forked that project.
In at least some versions of MySQL, if you put the DB password on the command line with the -p argument, the first line of the resulting .sql file will be:
"Warning: Using a password on the command line interface can be insecure."
When you then try to load this into another DB, it fails because of invalid SQ syntaxL.
A solution is to change the templates as follows:
mysqldump: "MYSQL_PWD=<%= pass %> mysqldump -h <%= host %> -u<%= user %> <%= database %>",
mysql: "MYSQL_PWD=<%= pass %> mysql -h <%= host %> -u <%= user %> <%= database %>",
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels