Paste_Image.png
Paste_Image.png
Paste_Image.png
Paste_Image.png
Paste_Image.png
安裝mysql擴展
yum install php-mysql
php -m
mysql.php
<?php
@mysql_connect('127.0.0.1','root','123456');
$db=mysql_select_db('info');
$query=mysql_query("insert into test(name) values(".time().")");
?>
crontab -e
*/1 * * * * /bin/php /home/tong3/php-7.1.7/code/mysql.php
Paste_Image.png