<?php ignore_user_abort(); // run script in background set_time_limit(0); // run script forever $interval=60*15; // do every 15 minutes... do{ // add the script that has to be ran every 15 minutes here // ... sleep($interval); // wait 15 minutes }whi
创建用户后登陆失败的原因是存在匿名用户: root@controller:~# mysql -h localhost -uaa -ppassword ERROR 1045 (28000): Access denied for user 'aa'@'localhost' (using password: YES) 解决方法: 增加普通用户后,登陆root账号,执行: mysql> use mysql mysql> delete from user where user=''; mysql>