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 :: Failed to connect to localhost:1433 - self signed certificate 
Sql :: update select 
Sql :: sql server count all tables rows 
Sql :: alter table change default 
Sql :: get all table names in sql 
Sql :: oracle stop 
Sql :: Sql creating roles 
Sql :: add postgresql to path 
Sql :: copy one column data to another in sql 
Sql :: psql: error: connection to server at "localhost" (::1), port 5432 failed: FATAL: password authentication failed for user 
Sql :: sql fill na with 0 
Sql :: mysql shell ERROR: Not connected. 
Sql :: oracle create program if no exists 
Sql :: script to add new column in table sql 
Sql :: mysql sysdate 
Sql :: create mysql user on all hosts 
Sql :: how to know password of mysql root in linux terminal 
Sql :: mysql persistence.xml 
Sql :: create function in microsoft sql server 
Sql :: if not exists insert sql 
Sql :: add unique constraint sql server multiple columns 
Sql :: DB::transaction 
Sql :: date less than current date sql 
Sql :: sql syntax create timestamp column 
Sql :: sqlite drop table 
Sql :: sql in sublime 
Sql :: select all except one column sql 
Sql :: create index concurrently postgres 
Sql :: wherein mysql 
Sql :: random name function in mysql for nvarchar 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =