Some simple tips that you could do to your MySQL database on your own. I bet that some of you are afraid to touch your own databases. Let’s take a look at cPanel since it’s widely offered by most hosting company for control panel. We are going to repair and optimize your MySQL database from your cPanel.
Don’t be afraid to click Repair
There are 2 way to repair your MySQL databases from cPanel. First is from MySQL Account Maintenance and second from phpMyAdmin. If you are fimiliar with empty spaces or overhead in MySQL then this process should help you temporarily get rid of it.
From cPanel MySQL Account Maintenance
The easiest way is from cPanel MySQL Account Maintenance.
- Log in to your cPanel.
- To access the MySQL Account Maintenance Menu, click on the MySQL® Databases (the one with a cute dolphin icon) on the main screen of your cPanel interface.
- You will be brought to MySQL Account Maintenance page.
- Identify the database that you want to repair, then simply click Repair.
The long way using phpMyAdmin
The second method is from phpMyAdmin. From CPanel MySQL Account Maintenance, scroll down to the bottom and you’ll see a link to phpMyAdmin.
- Once phpMyAdmin has loaded, select the database from the drop down menu on the left frame. Choose any database that you like to repair.
- Once the requested database page is loaded, on the right frame you can select which table you want to repair. Tick all or either one of the table.
- Then from the dropdown menu that says With Selected:, choose Repair Table. Optionally, you can also click Check tables having overhead.
- A new page will load with bunch of OK. Your tables will be repaired once it’s is done.
- From the dropdown menu you can also Optimize Table.
That’s it! You’re done.
lol.. eh why we need to repair/optimize database ??
what will happend if i never repair it :P
Read the second paragraph.
oh i c… that’s why la
good info. very good.
[...] MySQL Account Maintenance, how regular do you do it? Zeo MySQL tanacsai (tags: zeo mysql tutorial) [...]
The WP-DBManager plug-in allows me to do just this right from WP:
http://dev.wp-plugins.org/browser/wp-dbmanager/
Great article, very easy to understand and perhaps most importantly of all — without the condescending tone that often creeps into such “tutorials”.
:)