Answers for "mysqldump to password server"

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 "mysqldump to password server"

Code answers related to "SQL"

Browse Popular Code Answers by Language