mysql -h(IP地址) -u(用户名) -p(密码) -P(端口) -D(数据库) -e “sql语句”
mysql -h 172.25.25.42 -uroot -pmypassword -P3306 -D wyLoging
-e "update Task t set t.content='$line' where t.taskid='$5' and t.username='$4'"
本文介绍如何使用MySQL命令更新特定数据库中的记录,通过指定IP地址、用户名、密码、端口、数据库名和SQL语句实现数据更新。
mysql -h(IP地址) -u(用户名) -p(密码) -P(端口) -D(数据库) -e “sql语句”
mysql -h 172.25.25.42 -uroot -pmypassword -P3306 -D wyLoging
-e "update Task t set t.content='$line' where t.taskid='$5' and t.username='$4'"
1165

被折叠的 条评论
为什么被折叠?