Windows+r Popup Run box in the Run box enter cmd + carriage enter the DOS window of the system
. start MySQL: enter net start mysql;
. Stop MySQL: enter net stop MySQL;
Windows cannot be restarted directly (restart), can only be stopped and then started.
This is just about the case where MySQL is installed locally. Or connect to the MySQL server remotely, and then manipulate the command on the remote machine.
MySQL appears in? garbled situation
Check the data flow trend in the project is not always maintained utf-8 (specific to your own set of uniform encoding format), the general error is in the project into the data insert processing, the data stored in MySQL? Code is garbled, and if you manually insert the text in the database by yourself, it will not be garbled, and the data can be properly removed and displayed in the project. This could be a problem with MySQL's default encoding format.
(first to locate may be that part of the garbled, and then to solve the problem)
If this is a problem with MySQL encoding, modify the configuration file as follows
(Refer to https://jingyan.baidu.com/article/f0e83a258753cf22e5910183.html)
1. Find My.ini (MySQL config file) in MySQL installation directory;
2, find the client part, the default-character-set=latin1 changed to Default-character-set=utf8;
3, then find the Server Servers section, the default-character-set=latin1 changed to Default-character-set=utf8;
4, and then restart the MySQL database can be!
zbb20180619 command line description for MySQL restart in MySQL Windows environment