|
| cool Statistics |
| | coolcommands: | 1338 | | Categories: | 83 | | Total queries: | 620141 | | Members: | 22813 | |
|
|
|
 |
|
|
Search coolcommands.com
 |
Submitted by:
lvo   |
coolcommand
how to do a mysqlimport from a text file delimited by a specific character |
Description
To do a mysqlimport using the default field seperator:
# mysqlimport --user root --password --local dbname tablename.txt
Note:
dbname = name of your database tablename.txt = filename must be named the same as the name of your table. The extension of the filename is not important.
To delete all records in table and set field seperator to ; character:
# mysqlimport --user root --password -d --fields-terminated-by=";" --local dbname tablename.txt |
Example
mysqlimport --user root --password --local dbname tablename.txt |
Return to search results
 |  |  |  |
Random coolcommands
coolcommand: how to get network interface statistics in Linux
Example: cat /proc/net/dev
[show me the details] |
coolcommand: how to match any three digits in ksh
Example: if [[ "$1" = {3}(d) ]];then echo Match; fi
[show me the details] |
coolcommand: how to login to a Sybase database
Example: isql -U sa password
[show me the details] |
coolcommand: how to use the loopmount in AIX v6 or AIX v7
Example: loopmount -i aixv7-base.iso -m /aix -o "-V cdrfs -o ro"
[show me the details] |
|
|
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1160 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 14 |
Top 5 Searches
|
| Category Solaris | 51940 |
| Category AIX | 49006 |
| Category General UNIX | 47517 |
| solaris | 23554 |
| aix | 22739 |
|
|
|
|