Advertisement
Deozaan

Populating the Auction House

Oct 14th, 2016
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.46 KB | None | 0 0
  1. # first we tell it to use the right database
  2. USE dspdb;
  3. # clear out the contents of the AH
  4. DELETE FROM auction_house;
  5. # reset the auto increment thingy
  6. ALTER TABLE action_house AUTO_INCREMENT=1;
  7. # import the file
  8. LOAD DATA INFILE '/var/lib/mysql-files/ah.csv' INTO TABLE auction_house FIELDS TERMINATED BY ';' ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 LINES;
  9. # TADA! Should have worked. Verify a few (100) of them with:
  10. SELECT * FROM auction_house LIMIT 100;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement