![]() |
Help with "Execute SQL Query"
I am trying to run a custom SQL in the AdminCP panel to clear out some specific rows from my moderator log. Basically I have a hidden dump forum where all the news feeds go and I use that to selectively move the ones I want users to see. However when I run the below code I get the following error message
Quote:
Code:
DELETE vb_moderatorlog.moderatorlogid, vb_moderatorlog.dateline, vb_moderatorlog.userid, vb_moderatorlog.forumid, vb_moderatorlog.threadid, vb_moderatorlog.postid, vb_moderatorlog.pollid, vb_moderatorlog.attachmentid, vb_moderatorlog.action, vb_moderatorlog.type, vb_moderatorlog.threadtitle, vb_moderatorlog.ipaddress |
The MySQL user you specified in config.php cannot execute DELETE commands. Basically, it means your MySQL user doesn't have the permission to delete.
|
Try:
[sql]DELETE FROM vb_moderatorlog WHERE (((vb_moderatorlog.userid)="1") AND ((vb_moderatorlog.forumid)="74") AND ((vb_moderatorlog.type)="15"));[/sql] |
Marco- that worked! Thanks,
|
All times are GMT. The time now is 01:01 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|