Mobile MARIADB Data Directory under Windows

Source: Internet
Author: User

Environment

Os:windows Server R2 x64

MARIADB:10.0.15-MARIADB; installation directory is C:\Program FILES\MARIADB 10.0

Steps

1, stop the MySQL service.

2, copy the Data directory.

Create the D:\MariaDB_DATA directory and add NETWORK SERVICE permissions to the directory, and copy the contents of the C:\Program files\mariadb 10.0\data directory to D:\MariaDB_DATA.

3 . Move the configuration file.

The My.ini file is created by

C:\Program files\mariadb 10.0\data\my.ini

Move to

C:\Program files\mariadb 10.0\my.ini

4, Modify the configuration file.

Add or modify the following two items in the C:\Program files\mariadb 10.0\my.ini file.

[Mysqld]basedir=c:\program files\mariadb 10.0 #程序安装目录datadir =d:\mariadb_data #数据目录

5. Modify the Registration form:

Hkey_local_machine\system\currentcontrolset\services\mysql\imagepath

Will

"C:\Program files\mariadb 10.0\bin\mysqld.exe" "--defaults-file=c:\program files\mariadb 10.0\data\my.ini" "MySQL"

Revision changed to

"C:\Program files\mariadb 10.0\bin\mysqld.exe" "--defaults-file=c:\program files\mariadb 10.0\my.ini" "MySQL"

6 . Start the MySQL service.


Walker used the above method to avoid 1067 and errcode:13 "Permission denied" and other errors. Additionally, if a service startup failure can be done by error log files, the file is the current hostname under Data directory hostname.err,hostname.


Walker * * *


This article is from "Walker's Journal" blog, please be sure to keep this source http://walkerqt.blog.51cto.com/1310630/1703192

Mobile MARIADB Data Directory under Windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.