FORUM HOME | WHUK BLOG   
WEB HOSTING UK AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM
PHP LINUX SHARED HOSTING WINDOWS ASP.NET HOSTING PACKAGES
ECOMMERCE HOSTING ASP MSSQL MS ACCESS ODBC FRONTPAGE HOSTING
CPANEL WHM FANTASTICO RESELLER DEDICATED SERVER WEB HOSTING
CHEAP PLESK CPANEL HTML MYSQL BEST UK VPS HOSTING COMPANY
CHEAP RELIABLE UK HOSTING PROVIDER SINCE 2001
MANAGED WEB HOSTING SERVICE
AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM

Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum » Web Hosting and Domains » WebHosting

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 28-08-09, 03:30 PM
Mark's Avatar
Super Moderator
 
Join Date: Jul 2006
Posts: 114
Default How to Optimize MySQL databases/Queries

We all know that the server load increase oftenly due to the long MySQL queries. Is there any tool to optimize the MySQL databases. If anyone has any tips please feel free to post here.
Reply With Quote

  #2 (permalink)  
Old 29-08-09, 06:29 AM
WH Staff
 
Join Date: Jul 2009
Posts: 1
Default

simple one is using the mysqlcheck command to OPTIMIZE TABLE in a convenient way for the user

mysqlcheck -o db_name


Query Optimization matters a lot, ie the way in which queries are designed to retrieve the data from the database is highly important so that the MySQL performance is not hampered.
Reply With Quote

  #3 (permalink)  
Old 29-08-09, 06:57 AM
Sales Team
 
Join Date: Sep 2006
Posts: 1,664
Send a message via MSN to Harry Send a message via Skype™ to Harry
Default

Nancy and many thanks for your advice

Well, I am not much into database administration but still i will try to help you. Google is my best Friend

If you are using cPanel then you can optimize databases using PhpMyAdmin tool which comes a part of cPanel.
Login phpMyAdmin >> select database name >> Tick the tables you wish to optimize >> choose Optimize table.
This will execute the OPTIMIZE TABLE SQL query on the selected tables and they will be updated and optimized.
Hope it helps you !!!
__________________
UK VPS Hosting || Managed Server Hosting || Reseller Hosting
Webhosting affiliate program can make you earn upto £300 Webhosting UK Affiliate
Join our "Refer and Win" contest and win FREE Hosting package and Domain name
Reply With Quote

  #4 (permalink)  
Old 19-10-09, 11:11 AM
Junior Member
 
Join Date: Oct 2009
Posts: 11
Default

Hi !

Thank you for the information.
I am learning a lot here and i feel it is a great place to share your knowledge.
I am glad to be here. Thanks once again.

Regards
Walter Burke
__________________
Signature has been removed, please do not advertise websites in your signature.
Reply With Quote

  #5 (permalink)  
Old 20-10-09, 10:03 PM
Administrator
 
Join Date: Mar 2006
Posts: 1,934
Default

I have always used myisamchk and it has done great job everytime. Here is how you should use myisamchk :-

myisamchk -o *.MYI

Make sure you run this command from shell and inside the Database directory.
__________________
Web Hosting UK - ASP MSSQL Hosting - cPanel Linux Hosting
AIM : webredback || msn : andrew @ webhosting.uk.com
Toll Free : 0808 262 0855
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 07:16 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright 2001-2010 Web Hosting UK. All rights reserved.
Web Hosting UK Forum





Site Map

Shared Cloud
Shared Cloud From £1

Affiliate Program
Earn up to £300 Per Sale

Dedicated Servers
Dedicated Server Hosting

Cloud Hosting
Cloud Server Hosting

Load Balanced Server
Load Balancing Server

VPS Hosting
Linux VPS Hosting

Windows VPS
Windows 2003 VPS

Zimbra Hosting
Zimbra Email Hosting

cPanel Hosting
Shared Linux Hosting

Windows Hosting
Shared Windows Hosting

Coldfusion Hosting
Windows Coldfusion Hosting

cPanel Reseller Hosting
Reseller Hosting

Windows Reseller
Windows Reseller Hosting

Email Web Hosting
Email Hosting

Semi-Dedicated Server
Semi-Dedicated Hosting

Remote Backup Plans
Offsite Backup Service


cpanel hosting
Knowledgebase Articles

Pre-Sales Question
Web Hosting FAQ's

Dedicated Hosting
Dedicated Server FAQ's

Virtual Private Servers
VPS Hosting

PHP MySQL Hosting
cPanel Hosting

Windows Hosting
ASP MSSQL Hosting

Domain Name
Domain registration FAQ's

CMS Hosting
CMS Hosting FAQ's

Payment Gateways
Payment FAQ's


Support Tutorials

cPanel Tutorials
cPanel Flash Tutorials

Wordpress Tutorials
Wordpress Flash Tutorials

Plesk Tutorials
Plesk Flash Tutorials

PhpMyadmin Tutorials
PhpMyadmin Flash Tutorials

Drupal Tutorials
Drupal Flash Tutorials

Mambo Tutorials
Mambo Flash Tutorials

Joomla Tutorials
Joomla Flash Tutorials

More Hosting Tutorials