Deleted user - now I need to delete all posts and threads!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Racing Sim
    New Member
    • May 2006
    • 26
    • 3.5.x

    Deleted user - now I need to delete all posts and threads!

    I know I have messed up and that I should have deleted the threads and posts before deleting the user but its too late - I feel so silly.

    Do I have to run an SQL Query?

    If so how do I delete all the deleted users posts and threads?


    I am running vBulletin 3.6.1
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    See this thread.

    There are also attachment, deletionlog, subscribethread, etc records to consider. This is all done automatically if you do it before deleting the user.

    Comment

    • Racing Sim
      New Member
      • May 2006
      • 26
      • 3.5.x

      #3
      Hey Jake thanks for responding.

      Becasue I deleted the user beofore are you saying that I cant now remove all their posts and threads?

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        You can remove them with those queries, but it will leave some junk behind. It shouldn't affect anything.

        Comment

        • Racing Sim
          New Member
          • May 2006
          • 26
          • 3.5.x

          #5
          Just tried:

          DELETE FROM post WHERE username='user';

          And I get this:

          An error occurred while attempting to execute your query. The following information was returned.
          error number: 1146
          error desc: Table 'tommy_vBulletin.post' doesn't exist

          Comment

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #6
            You are probably using a table prefix. You need to change "post" to include that prefix.

            Comment

            • Racing Sim
              New Member
              • May 2006
              • 26
              • 3.5.x

              #7
              OK I added the prefix and get another error!

              An error occurred while attempting to execute your query. The following information was returned.

              error number: 1142

              error desc: DELETE command denied to user: 'thumper@localhost' for table 'post'

              Comment

              • Steve Machol
                Former Customer Support Manager
                • Jul 2000
                • 154488

                #8
                Your db user 'thumper' does not have full permissions to this database. You need to set those permissions. You cna do this through the MySQL section of cPanel if your host provides this.
                Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                Change CKEditor Colors to Match Style (for 4.1.4 and above)

                Steve Machol Photography


                Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                Comment

                • Racing Sim
                  New Member
                  • May 2006
                  • 26
                  • 3.5.x

                  #9
                  It says in my host admin cpannel: thumper (Privileges: ALL PRIVILEGES) for my VB database.


                  ****** USERS WITH QUERY RUNNING PERMISSIONS ******
                  Also in my config.php I have myself listed as '1'

                  Comment

                  • Steve Machol
                    Former Customer Support Manager
                    • Jul 2000
                    • 154488

                    #10
                    Strange. If you have ALL permissions then I don't understand why this does not include DELETE.

                    I think I read that this is a server issue. You might want to try contacting your host.
                    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                    Change CKEditor Colors to Match Style (for 4.1.4 and above)

                    Steve Machol Photography


                    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                    Comment

                    • Racing Sim
                      New Member
                      • May 2006
                      • 26
                      • 3.5.x

                      #11
                      k Steve thanks for your help... I will keep you guys up to date ;-)

                      Comment

                      • Racing Sim
                        New Member
                        • May 2006
                        • 26
                        • 3.5.x

                        #12
                        I found out what I did wrong...


                        I typed a decimal incorrectly:


                        'tommy_vBulletin.post' - should have been 'tommy_vBulletinpost'


                        Also I had to rebuild the counters.


                        Thanks for your help guys.

                        Comment

                        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                        Working...
                        😀
                        😂
                        🥰
                        😘
                        🤢
                        😎
                        😞
                        😡
                        👍
                        👎