shell访问mysql
ret_value=$(
/usr/bin/mysql -uroot -h $db_ip <<QUERY_STRING
use my_database;select * from my_table where name = 'china';
QUERY_STRING
)
ret_value=$(
/usr/bin/mysql -uroot -h $db_ip <<QUERY_STRING
use my_database;select * from my_table where name = 'china';
QUERY_STRING
)