Solved

change logfile location MYSQL

Posted on 2013-01-11
3
298 Views
Last Modified: 2013-01-12
Hello,
  I install mySQL 5.5 on Suse linux 11. I would like to move the log file [ib_logfile0, ib_logfile1] to a new partition. The database [ibdata1] should stay in the current partition.

How can this be done..

Thanks in advance for your help
0
Comment
Question by:SiemensSEN
  • 2
3 Comments
 
LVL 24

Accepted Solution

by:
johanntagle earned 270 total points
Comment Utility
http://dev.mysql.com/doc/refman/5.5/en/innodb-parameters.html#sysvar_innodb_log_group_home_dir

Basically edit your my.cnf and add/edit this line:

innodb_log_group_home_dir = /path/to/where/you/want/the/log/files

Restart MySQL
0
 

Author Comment

by:SiemensSEN
Comment Utility
Thanks but what happens to the current logs [logfile0, logfile1]

Do I have to move it? or will it be recreated.

Thanks
0
 
LVL 24

Assisted Solution

by:johanntagle
johanntagle earned 270 total points
Comment Utility
they will be recreated.  you can also try moving them or just delete them once the new ones have been created.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Fore-Foreword Today (2016) Maxmind has a new approach to the distribution of its data sets.  This article may be obsolete.  Instead of using the examples here, have a look at the MaxMind API (https://www.maxmind.com/en/geolite2-developer-package). …
Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now