I need to delete many records.. URGENTLY.. need HELP

Discussion in 'MySQL' started by Avallon1, Aug 31, 2007.

  1. #1
    Hello all,

    I was converting my old phpBB2 forum to the new phpBB3 forum.. but I found many users (more than 1000 users) that are duplicated and need to be deleted..
    So I have the ID's of these users and need to delete them and I have no experience in MySQL..

    So is there any easy way to delete mass numbers of users if I provided the ID's of this users ?
     
    Avallon1, Aug 31, 2007 IP
  2. webw

    webw Peon

    Messages:
    32
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    Do you have phpmyadmin?
     
    webw, Aug 31, 2007 IP
  3. Avallon1

    Avallon1 Well-Known Member

    Messages:
    649
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Yes I have
     
    Avallon1, Aug 31, 2007 IP
  4. webw

    webw Peon

    Messages:
    32
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Click on SQL tab to enter a mysql command

    DELETE FROM `table_name`WHERE user = user1 OR user = user2 OR user = ...
     
    webw, Aug 31, 2007 IP
    Avallon1 likes this.
  5. Avallon1

    Avallon1 Well-Known Member

    Messages:
    649
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    140
    #5
    Yes it worked..

    Thanks alot :D

    I was deleting ID by ID in the past.. now it is much faster :)
     
    Avallon1, Aug 31, 2007 IP
  6. jakomo

    jakomo Well-Known Member

    Messages:
    4,262
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    138
    #6
    jakomo, Aug 31, 2007 IP
    Avallon1 likes this.
  7. Avallon1

    Avallon1 Well-Known Member

    Messages:
    649
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    140
    #7
    Avallon1, Aug 31, 2007 IP
  8. basdotnet

    basdotnet Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thank you very much for good article Jakomo.
     
    basdotnet, Sep 7, 2007 IP