詳解linux下面利用shell腳本操做mysql數據庫

在centos7環境下進行編碼測試:mysql #!/bin/bash mysql -u root <<EOF use www_example_com; UPDATE wp_posts SET post_name='001' WHERE id='70'; exit EOF 將上述文件保存成sh文件,而後賦予權限chmod +x,便可執行。在開始使用了mysql -u root進行登陸,這步操
相關文章
相關標籤/搜索