I made mysql queries in "test.sql" file, but doesn't work. This is my sql code.
*test.sql
UPDATE articles SET count = count + FLOOR(RAND()*5) WHERE ((UNIX_TIMESTAMP(created_at) - UNIX_TIMESTAMP())<86400);
UPDATE articles SET count = count + FLOOR(RAND()*5) WHERE ((UNIX_TIMESTAMP(created_at) - UNIX_TIMESTAMP())<172800);
I tried this.
/usr/bin/mysqldump -uadmin -ppasswrod testdb > /home/test.sql
but any response was nothing, and doesn't work.
also, contents of the database have not changed.
[root@test Parse]# /usr/bin/mysqldump -ummdance -psecret mmdance > /home/qquing/public_html/Parse/mmd_view_update.sql
[root@test Parse]#
however, this is worked in mysql.
MariaDB []> UPDATE articles SET count = count + FLOOR(RAND()*5) WHERE ((UNIX_TIMESTAMP(created_at) - UNIX_TIMESTAMP())<86400);
Query OK, 1176 rows affected (0.02 sec)
Rows matched: 1486 Changed: 1176 Warnings: 0
What is problem?
thanks in advance your help.