Home > Systems Channel Tips > Virtualization > Virtualized MySQL: Troubleshooting
Systems Channel Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

VIRTUALIZATION

Virtualized MySQL: Troubleshooting


Brendan Barry, contributor
09.06.2007
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


IT reseller takeaway: Virtualizing your customers' database instances allows you to offer them extra data backup and protection, bringing them peace-of-mind during a migration, repair or server crash. This tip excerpt from our sister site SearchServerVirtualization.com will get you started.


Virtualizing your database instances is one of the pleasures of running virtual machines (VMs). Here are a few situations and resolutions that I have had to deal with in the past few months, and the nitty-gritty of how I escaped database pain.

MySQL database move

Recently, I had to migrate a database from one VM to another, while neither taking down or restarting either VM or running MySQL instance. Normally, this can be accomplished with some form of:

mysqldump databasename >filetodumpto.sql
mysql -u user -ppassword databasename < filetodumpto.sql

Exporting and then importing works when trying to move data, but when you introduce binary blobs and GBs of data, it becomes much more time-consuming.

Thankfully, there is an all-powerful program that every MySQL wannabe should have in their technical repertoire: mysqlcheck. When migrating database servers, recovering from a mysql server crash, repairing corrupt databases/tables, or other unexpected database/table catastrophes occur, the 'mysqlcheck' program comes to the rescue.

Here's a fairly standard workflow:

scp -r /var/lib/mysql/dbname server:/var/lib/mysql/ 
chown -R mysql:mysql /var/lib/dbname
mysqlcheck -h localhost -u user -r -p -B dbname

The mysqlcheck program often helps when you are powering off (accidentally or otherwise) VMs and you corrupt your mysql instances/table/etc.

Read the entire article.

Rate this Tip
To rate tips, you must be a member of SearchSystemsChannel.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Server Virtualization
VMware Virtual Datacenter OS aims for enterprise data center space
Server virtualization health check services: Data protection, networking
Factors to consider when using blade servers for virtualization
Using virtualization to achieve green data centers
Using VMware NetQueue to virtualize high-bandwidth servers
Host server processor and memory performance
Host server storage and network performance
Configuration of the guest operating system
Configuration of the virtual machine
VMware ESX Server: Performance optimization

Virtualization
VMware Virtual Datacenter OS aims for enterprise data center space
Server virtualization health check services: Data protection, networking
Factors to consider when using blade servers for virtualization
Using VMware NetQueue to virtualize high-bandwidth servers
Host server processor and memory performance
Host server storage and network performance
Configuration of the guest operating system
Configuration of the virtual machine
VMware ESX Server: Performance optimization
Configuration of the host server

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeTopicsITKnowledge ExchangeTipsMultimediaWhite PapersBlogsEvents
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2006 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts