mysql> create table wangbenwen (name varchar(10), uid int, gid int, driectory varchar(20), bash varchar(10));
Query OK, 0 rows affected (0.00 sec)
mysql> desc wangbenwen
-> ;
+-----------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+-------------+------+-----+---------+-------+
| name | varchar(10) | YES | | NULL | |
| uid | int(11) | YES | | NULL | |
| gid | int(11) | YES | | NULL | |
| driectory | varchar(20) | YES | | NULL | |
| bash | varchar(10) | YES | | NULL | |
+-----------+-------------+------+-----+---------+-------+
5 rows in set (0.00 sec)
mysql> select * from wangbenwen;
Empty set (0.00 sec)
mysql> load data infile '/tmp/benwen' into table wangbenwen fields terminated by ' ';
Query OK, 35 rows affected, 32 warnings (0.00 sec)
Records: 35 Deleted: 0 Skipped: 0 Warnings: 32
mysql> select * from wangbenwen;
+------------+-------+-------+----------------------+------------+
| name | uid | gid | driectory | bash |
+------------+-------+-------+----------------------+------------+
| root | 0 | 0 | /root | /bin/bash |
| bin | 1 | 1 | /bin | /sbin/nolo |
| daemon | 2 | 2 | /sbin | /sbin/nolo |
| adm | 3 | 4 | /var/adm | /sbin/nolo |
| lp | 4 | 7 | /var/spool/lpd | /sbin/nolo |
| sync | 5 | 0 | /sbin | /bin/sync |
| shutdown | 6 | 0 | /sbin | /sbin/shut |
| halt | 7 | 0 | /sbin | /sbin/halt |
| mail | 8 | 12 | /var/spool/mail | /sbin/nolo |
| news | 9 | 13 | /etc/news | |
| uucp | 10 | 14 | /var/spool/uucp | /sbin/nolo |
| operator | 11 | 0 | /root | /sbin/nolo |
| games | 12 | 100 | /usr/games | /sbin/nolo |
| gopher | 13 | 30 | /var/gopher | /sbin/nolo |
| ftp | 14 | 50 | /var/ftp | /sbin/nolo |
| nobody | 99 | 99 | / | /sbin/nolo |
| nscd | 28 | 28 | / | /sbin/nolo |
| vcsa | 69 | 69 | /dev | /sbin/nolo |
| rpc | 32 | 32 | / | /sbin/nolo |
| mailnull | 47 | 47 | /var/spool/mqueue | /sbin/nolo |
| smmsp | 51 | 51 | /var/spool/mqueue | /sbin/nolo |
| pcap | 77 | 77 | /var/arpwatch | /sbin/nolo |
| ntp | 38 | 38 | /etc/ntp | /sbin/nolo |
| dbus | 81 | 81 | / | /sbin/nolo |
| avahi | 70 | 70 | / | /sbin/nolo |
| sshd | 74 | 74 | /var/empty/sshd | /sbin/nolo |
| rpcuser | 29 | 29 | /var/lib/nfs | /sbin/nolo |
| nfsnobody | 65534 | 65534 | /var/lib/nfs | /sbin/nolo |
| haldaemon | 68 | 68 | / | /sbin/nolo |
| avahi-auto | 100 | 101 | /var/lib/avahi-autoi | /sbin/nolo |
| xfs | 43 | 43 | /etc/X11/fs | /sbin/nolo |
| gdm | 42 | 42 | /var/gdm | /sbin/nolo |
| sabayon | 86 | 86 | /home/sabayon | /sbin/nolo |
| apache | 48 | 48 | /var/www | /sbin/nolo |
| mysql | 27 | 27 | /var/lib/mysql | /bin/bash |
+------------+-------+-------+----------------------+------------+
35 rows in set (0.00 sec)