Activity Stream
48,167 MEMBERS
61075 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 3 of 3
  1.     
    #1
    JGM

    Lightbulb Running an SQL quiery from ACP

    Code: 
    UPDATE 
     vbuser 
    LEFT JOIN 
     vbuserfield 
    ON 
     vbuser.userid = vbuserfield.userid 
    SET 
     usergroupid = '8' 
    WHERE 
     vbuserfield.field1 = 'man'
    This is query I am trying to run, I have a lot of bots which have "man" as their biography so this will set them to the banned usergroup. The problem is that when I run it I get the following error;

    Quote Originally Posted by Error Message
    An error occurred while attempting to execute your query. The following information was returned.
    error number: 1146
    error desc: Table 'the_vault.vbuser' doesn't exist
    Any help would be appreciated.

    JGM.

    EDIT - Sorry forgot to mention I am on vBulletin v3.8.5.
    JGM Reviewed by JGM on . Running an SQL queriy from ACP UPDATE vbuser LEFT JOIN vbuserfield ON vbuser.userid = vbuserfield.userid SET usergroupid = '8' WHERE vbuserfield.field1 = 'man' Rating: 5

  Sponsored Links

  •     
    #2
    Member
    check the database, if vbuser table is there ??
    Can Do :-
    PSD TO ANY CMS | PHP(Dynamic Site) | MySql | Script Customization | cUrl Related Work
    Pm me for more info ;)

  •     
    #3
    JGM
    Not sure warezrock all I want it to do is move every user who has "man" in their biography to the banned user group.

    JGM.

    ~EDIT~

    OK it's official... I am a fricking idiot! I got it working I had to change some of the code so instead it looks like this;

    Code: 
    Query
    UPDATE
    user
    LEFT JOIN
    userfield
    ON
    user.userid = userfield.userid
    SET
    usergroupid = '8'
    WHERE
    userfield.field1 = 'man'
    Everybody/bot who had "man" in their biography was moved to the Banned user group. Once I had done this I could then prune those members and remove them from the database using ACP>Users>Move/Prune Users and selecting the Banned user group.

    Hope this helps anybody since it sure has helped me!

  • Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

    Similar Threads

    1. Running around the world
      By MrOSX in forum General Discussion
      Replies: 0
      Last Post: 21st Jun 2012, 12:06 PM
    2. Anybody running a DDL?
      By CyberHacK in forum Community Cooperative
      Replies: 2
      Last Post: 22nd Dec 2010, 10:54 AM
    3. Running a VPS node?
      By jamilv in forum Hosting Discussion
      Replies: 4
      Last Post: 3rd Dec 2010, 05:25 PM
    4. VPS Running great
      By Santocool in forum Webmasters, Money Making
      Replies: 16
      Last Post: 3rd May 2010, 05:55 AM
    5. Who won the contest? Still running!
      By Santocool in forum Community Cooperative
      Replies: 12
      Last Post: 23rd Oct 2009, 05:01 AM

    Tags for this Thread

    BE SOCIAL