This article is a mirror article of machine translation, please click here to jump to the original article.

View: 2243|Reply: 0

[Solved] MySQL command-line query results return ? question mark

[Copy link]
Posted on 8/5/2024 2:56:53 PM | | | |
Requirements: Log in to the MySQL server and query a piece of data through the command lineChinese display "?" Question mark (garbled), search for solutions on the Internet, need to modify the configuration file, and then, also need to restart the MySQL service, it's too troublesome, is there a simpler solution?

First, the query result Chinese return "?" Question mark (garbled), as shown in the figure below:



For the current database, query the variables with the following command:

As shown below:



solution

Login to the mysql command line increases--default-character-setThe parameters are as follows:

Query the database variables again, as shown in the following figure:



When the query is executed again, the return result is normal, as shown in the following figure:



(End)





Previous:Angular 18 Series (21) Router Routing Change Events
Next:RxJS about the difference between firstValueFrom and lastValueFrom
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com