Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Prompt prompt

2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Welcome to the MySQL 8.0 must-know course series.

MySQL8.0 must know-automatic deployment of https://edu.51cto.com/course/16368.html MySQL8.0 must know parameters standardized configuration https://edu.51cto.com/course/16358.html

Reconfigure the prompt for the default mysql >

Common option

User (\ u)

Host (\ h)

Database (\ d)

Counter (\ c)

Session ID (\ C)

Full account name user_name@host_name (\ U)

Complete current date (\ D)

Setting method:

1. Environment variable

Export MYSQL_PS1= "(\ u@\ h) [\ d] >"

two。 Command line options

Mysql-- prompt= "(\ u@\ h) [\ d] >"

3. Parameter file

[mysql]

Prompt= (\\ u@\\ h) [\\ d] >\ _

4. Interactive mode setting

Everything after the first space after PROMPT will be part of the prompt string

Mysql > prompt (\ u @\ h) [\ d] >\ _

Restore the original prompt

(root@localhost) [(none)] > prompt

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report