Texts: solve please
ADATARAS
MySQL MyOLB0 Reference Manual 3.32 Creating a Table
MYSQL Tutorial: Efficiently Managing Large CSVs LOAD DATA LOCAL Command and Tutorial Files To make the following MySQL commands work LOAD DATA LOCAL INFILE 'pet1.txt' INTO TABLE pet; LOAD DATA LOCAL INFILE 'event1.txt' INTO TABLE event; you must login to MySQL using the following command line syntax mysql -u username --local_infile=true -p Then execute the MySQL command
set global local_infile=1
Now quit MySQL and restart it:
mysql -u username --local_infile=true -p Make sure the file you are trying to load is in your home folder of your file system. You should now be able to issue the load data local commands as given above
The files pet1.txt and event1.txt have download links below. Do not use the download links to get these files. Instead, select the filename, the file will open in Canvas. Then use the download feature on that page to download the file. Otherwise, you will need to use the INSERT INTO MySQL command to insert each data record one at a time. In this case, you can use the download links for pet.txt and event.txt to get files formatted for you to copy and paste the data into the INSERT INTO... command. I will demonstrate both of these methods in class.
pet.txt
perl.txt