zbb20180619 command line description for MySQL restart in MySQL Windows environment

Source: Internet
Author: User

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

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.