How to execute mysql_cli model

2017-03-23  本文已影响4人  xiaojianxu

How to execute mysql_cli model without prompt password

#1 Use a shell cript

```

#!/bin/sh

mysql -uUsername -pPassword

```

#2 Use $HOME/.my.cnf . If not exit, then create this file. Add the content to this file, `chmod 400 ./.my.cnf`

```
    [client]

        password=your_mysql_password

```
上一篇 下一篇

猜你喜欢

热点阅读