现在的位置: 首页 > 综合 > 正文

shell访问mysql

2012年05月10日 ⁄ 综合 ⁄ 共 123字 ⁄ 字号 评论关闭

ret_value=$(

  /usr/bin/mysql -uroot -h $db_ip <<QUERY_STRING

  use my_database;select * from my_table where name = 'china';

  QUERY_STRING

  )

抱歉!评论已关闭.