mysql
vi ~/.my.cnf
[client]
user=admin
password=xxxxx
host=localhost
port=3306
protocol=tcp
[clientdb1]
user=user1
password=password1
host=localhost
database=db1
[clientdb2]
user=user2
password=password2
host=localhost
database=db2
[clientdb3]
user=user3
password=password3
host=localhost
private에 db가 존재 할시 접속하는 방법
Last updated