标签:log 操作 null shell password rom mysql bash class
1、连接
1 #!/bin/bash 2 user="root" 3 password="XXXXXX" 4 sql = `mysql -u$user -p$password << EOF 2>dev/null 5 use mysql; 6 select * from user; 7 exit; 8 EOF` 9 echo $sql
标签:log 操作 null shell password rom mysql bash class
原文地址:http://www.cnblogs.com/natian-ws/p/6592892.html