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 Hardware, Software and Services
Installing and managing Hyper-V on Windows Server 2008 Server Core
Using Hyper-V Manager to create virtual machines and hard drives
Monitoring Hyper-V performance and utilizing System Center VMM
Top 10 data center virtualization management tips
Evaluating virtualization management software for Hyper-V R2
Three setbacks when designing Hyper-V R2 High Availability
Citrix XenServer 5.5 hardware requirements
VSphere upgrade and performance study guide
Microsoft Hyper-V R2 features and comparison guide
VMware extends vSphere Enterprise Edition availability

Virtualization
Installing and managing Hyper-V on Windows Server 2008 Server Core
Using Hyper-V Manager to create virtual machines and hard drives
Monitoring Hyper-V performance and utilizing System Center VMM
Top 10 data center virtualization management tips
Evaluating virtualization management software for Hyper-V R2
Three setbacks when designing Hyper-V R2 High Availability
Citrix XenServer 5.5 hardware requirements
VSphere upgrade and performance study guide
Microsoft Hyper-V R2 features and comparison guide
Desktop virtualization and VDI management study guide

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.

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

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




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