Answers for "wont let my dump sql command line"

SQL
5

mysqldump password

add this to .my.cnf file
user can be omitted

[mysqldump]
user=mysqluser
password=secret

The -p option must be excluded from the command in order to use the password in the config file.
Correct:
mysqldump –u my_username my_db > my_db.sql
Wrong:
mysqldump –u my_username -p my_db > my_db.sql
Posted by: Guest on June-20-2020

Code answers related to "wont let my dump sql command line"

Code answers related to "SQL"

Browse Popular Code Answers by Language