美文网首页
How to execute mysql_cli model

How to execute mysql_cli model

作者: xiaojianxu | 来源:发表于2017-03-23 14:19 被阅读4次

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

```

相关文章

网友评论

      本文标题: How to execute mysql_cli model

      本文链接:https://www.haomeiwen.com/subject/ywwznttx.html