Windows Mysql Server Restart, log-bin path configuration

Source: Internet
Author: User

Windows Mysql Server restart, log-bin path configurationCategory: MySQL database 2014-03-16 14:49 1313 People read comments (0) favorite reports Mysqlmysql servermysql Restart the Windows command restart mysqlmysql log configuration

CMD, run the following command:

NET stop < service name >
NET start < service name >

Note:< service name > usually defaults to: MySQL

That
net stop MySQL
net start MySQL

Note:

How to view the service name:

On the desktop, right-click Computers, select Manage, select services and Applications, services: In the service to find the name and MySQL corresponding, in general, it should be the service name of MySQL server. such as Mysql56 and so on.

To turn off and turn on the service, in general, CMD is "opened as an administrator"


Under Windows systems, when configuring directory locations for MySQL's My.ini log-bin and so on, assume that you want to configure the Log-bin log to the Mysqllog file for the D drive as Binlog. You can configure the following:

[Mysqld]

log-bin= "D:\mysqllog/binlog" Note: The last path here is "/" instead of "\" on the Windows file system

Windows Mysql Server Restart, log-bin path configuration

Related Article

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.