Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以告诉我如何设置 MySQL,以便在“x”天不活动时锁定人类用户帐户。
提前致谢
如果在 linux 服务器中,您可以通过 crontab 执行此操作,并为检查长时间不活动的帐户制作一个简单的脚本。
我在 php 中很容易做到这一点。只是一个带有简单 php/sql 脚本的 php 文件,您可以检查某个帐户的上次登录日期,如果不再使用则禁用它。从简单的 shell 命令“#php /scriptfolder/script.php”运行脚本
我的 rails 应用程序正在生成以下错误(运行 rails 生成器或启动 WEBrick 时):
/home/lachlan/.gem/ruby/1.9.1/gems/activerecord-3.2.6/lib/active_record/dynamic_matchers.rb:50:in `method_