面白い MySQL エラーが発生します。何が起こっているかは次のとおりです。
クエリ:
SELECT COUNT(id) AS mycount FROM ip_protection.hits WHERE datetime_created>DATE_SUB(NOW(), INTERVAL 10 MINUTE) AND ip='166.248.6.19'
エラー:
SELECT command denied to user 'goatpric_db'@'166.248.6.19' for table 'hits'
特権:
GRANT ALL PRIVILEGES ON `goatpric\_ip\_protection`.* TO 'goatpric_db'@'%'
「ヒット」は ip_protection のテーブルです。何かご意見は?