Thứ Hai, 21 tháng 10, 2019

.my.cnf – mysql user & password

.my.cnf – mysql user & password

This one is for lazy ones! If you are paranoid about security, do not use this.
Create file ~/.my.cnf and add following lines in it and replace mysqluser & mysqlpass values.
[client]
user=mysqluser
password=mysqlpass
For safety, make this file readable to you only by running chmod 0600 ~/.my.cnf 

Share This!


Không có nhận xét nào:

Đăng nhận xét