Results 1 to 1 of 1
-
20th Feb 2012, 09:23 AM #1OPMemberWebsite's:
AVANETCO.COM AVAVPS.COMWorking with mysql-(2)
Drop or delete a table in MySQL
To delete a table, run
PHP Code:drop table table_name;
This need to be done while you use the database or run following command.
PHP Code:drop table db_name.table_name;
Only delete table if it is exists.
PHP Code:drop table if exists db_name.table_name;
Repair MyISAM table
To find list of corrupted tables
PHP Code:myisamchk /var/lib/mysql/DB_NAME/*.MYI >> /root/1.txt
To rapier a table
PHP Code:cd /var/lib/mysql/DB_NAME/
myisamchk -r TABLE_NAME_HERE.MYI
To check and repair all tables
PHP Code:myisamchk --silent --force --fast --update-state /var/lib/mysql/DB_NAME/*.MYI
Albert.Nawaro Reviewed by Albert.Nawaro on . Working with mysql-(2) Drop or delete a table in MySQL To delete a table, run drop table table_name; Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Working with mysql-(1)
By Albert.Nawaro in forum Tutorials and GuidesReplies: 2Last Post: 8th Mar 2012, 07:41 AM -
Working with mysql-(3)
By Albert.Nawaro in forum Server ManagementReplies: 0Last Post: 20th Feb 2012, 09:26 AM -
MYSQL Error while Import via MYSQL Dumper (Error
By desibreaker in forum Server ManagementReplies: 10Last Post: 5th Aug 2011, 07:26 PM -
MySQL help
By kos in forum vBulletinReplies: 4Last Post: 29th Jun 2011, 12:30 PM -
DLE MySQL help
By John in forum Webmaster DiscussionReplies: 4Last Post: 17th May 2011, 06:51 PM
themaPoster - post to forums and...
Version 5.35 released. Open older version (or...