coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Thursday May 23, 2013


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 24 guests online

Newest Member

nbewwmbxog

Hit Counter
11565356 Visitors

cool Statistics
coolcommands:1338
Categories:83
Total queries:620330
Members:22813





Search coolcommands.com
Search Keyword:


coolcommand

how to delete all the data in a table while preserving the structure in mysql
Description

To delete all the data in a MySQL table but preserve the structure:

# mysql -u root -p

mysql> delete from table_name;

OR

mysql> truncate table table_name;
Example

truncate table table_name;

Return to search results

Random coolcommands

coolcommand: how to find the process utilizing the most cpu
Example: top -b 1
[show me the details]
coolcommand: metainit - how to create a stripe in Solaris Volume Manager
Example: metainit d0 1 3 c1t0d0s7 c2t0d0s7 c1t1d0s7 -i 32k
[show me the details]
coolcommand: fw - how to export a log file to an ASCII file in Checkpoint Firewall-1
Example: fw logexport -i fw.log -o test.log -n
[show me the details]
coolcommand: how to recover a failed MPIO paths from an IBM VIO server on an AIX LPAR
Example: chpath -l hdisk0 -p vscsi1 -s disable; chpath -l hdisk0 -p vscsi1 -s enable
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1160
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris51966
Category AIX49058
Category General UNIX47581
solaris23554
aix22739

Terms of Use
Privacy
Contact


 
coolcommands.com © 2013. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum