V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
usernametoolong
V2EX  ›  MySQL

如何自动删除某内容?

  •  1
     
  •   usernametoolong · Sep 27, 2014 · 3536 views
    This topic created in 4235 days ago, the information mentioned may be changed or developed.
    经常有spam党来骚扰我客户,他的程序有问题,每天被spam n次一次上千条,目前最省事的就是从mysql里直接删数据。。。

    mysql有个a的数据库,里面有个b表,如何自动删除关键字为c的内容?
    2 replies    2014-09-27 22:55:09 +08:00
    loading
        1
    loading  
       Sep 27, 2014
    自动=定时任务
    limuxy
        2
    limuxy  
       Sep 27, 2014 via Android
    加一个cron 定时delete from b where key like %c%
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   899 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 23:22 · PVG 07:22 · LAX 16:22 · JFK 19:22
    ♥ Do have faith in what you're doing.