Run the following command in CMD: netstop service name netstart service name note: the service name is usually mysql by default: netstopmysqlnetstartmysql Note: view the service name: on the desktop, right-click computer, choose manage, select service and application, and choose Service. On the page that appears, find the name corresponding to Mysql. Generally
Run the following command in CMD: net stop service name. net start service name. Note: The service name is usually mysql by default: net stop mysql net start mysql. Note: view the service name: on the desktop, right-click computer, choose manage, select service and application, and choose Service. On the page that appears, find the name corresponding to Mysql. Generally
Run the following command in CMD:
Net stop <Service name>
Net start <Service name>
Note: <Service name> The default value is mysql.
That is:
Net stop mysql
Net start mysql
Note:
How to view the service name:
On the desktop, right-click "computer", select "manage", and select "service" and application "->" service ": Find the service name that corresponds to Mysql, in general, it should be the service name of the Mysql Server. For example, Mysql56.
To close and open the service, cmd is generally required to be "opened as an administrator"
In Windows. if you want to configure the directory location such as the log-bin of ini to the mysqllog file on disk D as binlog. The configuration is as follows:
[Mysqld]
Log-bin = "D: mysqllog/binlog" NOTE: The last path here uses "/" instead of ""