[MYSQL Notes] MYSQL Monitor

The MYSQL monitor does not support clicking or dragging with the mouse, and the user needs to use the keyboard to directly input commands to operate the database. The output results are also all displayed in the form of text.

Start MYSQL monitor under windows:

Enter password securely

mysql -u 用户 -p

Confirm the setting of character encoding in MYSQL:

status;

The client encoding is set to gbk, and the server character encoding is utg8

Exit MYSQL Monitor:

Type exit or quit, then press enter to exit the MYSQL monitor

Use the history command:

Press ↑ and ↓ on the keyboard

Set the password of the MYSQL administrator root:

Example: Change the password to "1234"

set password for root@localhost=password('1234');

Guess you like

Origin blog.csdn.net/m0_52043808/article/details/124276992
Recommended