epgrec で録画済ファイルを削除しようとしたときに、”Error過去の録画予約です”と表示され、削除できなくなることがある。
server-admin@mythen:~$ mysql -u root -p Enter password: <--- mysqladmin Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 185 Server version: 5.5.28-0ubuntu0.12.04.2 (Ubuntu)
mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | epgrec | | gallery3 | | mysql | | performance_schema | | test | +--------------------+ 6 rows in set (0.00 sec) mysql> use epgrec Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed
mysql> select id, complete from Recorder_reserveTbl where endtime < now(); +----+----------+ | id | complete | +----+----------+ | 2 | 0 | | 7 | 1 | | 17 | 0 | | 35 | 1 | | 36 | 1 | | 37 | 1 | | 43 | 1 | +----+----------+ 7 rows in set (0.00 sec)
mysql> start transaction;
Query OK, 0 rows affected (0.00 sec)
mysql> update Recorder_reserveTbl set complete = 1 where id =2
-> ;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> update Recorder_reserveTbl set complete = 1 where id =17;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> commit;
Query OK, 0 rows affected (0.00 sec)
mysql> select id, complete from Recorder_reserveTbl where endtime < now(); +----+----------+ | id | complete | +----+----------+ | 2 | 1 | | 7 | 1 | | 17 | 1 | | 35 | 1 | | 36 | 1 | | 37 | 1 | | 43 | 1 | +----+----------+ 7 rows in set (0.00 sec) mysql> \q; Bye