Search
 
SCRIPT & CODE EXAMPLE
 

SQL

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
Comment

mysqldump password in file

[mysqldump]
user=mysqluser
password=secret
Comment

PREVIOUS NEXT
Code Example
Sql :: row number sql 
Sql :: duplicate key value violates unique constraint "django_admin_log_pkey" 
Sql :: linux upload database to mysql 
Sql :: SQL IN Operator With Subquery 
Sql :: compound trigger oracle 
Sql :: sql length 
Sql :: local sql server 
Sql :: List MySQL Table and Index Size 
Sql :: window function sql 
Sql :: denormalization in sql example 
Sql :: into in sql 
Sql :: drop a field in psql django 
Sql :: grab part of a string sql 
Sql :: oracle list partitions 
Sql :: create and attach user to a postgresql database 
Sql :: show last sql executed in oracle 
Sql :: sql developer connect to sql server 
Sql :: Oracle SQL join three tables and group by column 
Sql :: postgres execute multiple sql file from command line 
Sql :: cannot connect to mysql server 10060 
Sql :: not in in mongodb 
Sql :: index in mysql 
Sql :: google sheets data validation custom formula filter 
Sql :: sqlite select regex 
Sql :: between operator 
Sql :: sql from 
Sql :: in sqlalchemy 
Sql :: drop all tables db2 
Sql :: sql commands in android 
Sql :: use mysql 8 without password 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =