Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个MySQL数据库,我想每天自动检查这个数据库中的数据。
MySQL
我的意思是定期测试数据库中的数据,如果我的测试为真,脚本将自动执行。
有没有办法做到这一点MySQL?
正如其他人所提到的,创建一个cronjob来每天调用一个 php 脚本。
如果脚本位于您的机器上,您可以使用 调用它php-cli,如果在线,您也可以使用wget.
php-cli
wget