Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> prompt \h@\u> PROMPT set to '\h@\u>' localhost@foo>show databases; +--------------------+ | Database | +--------------------+ | information_schema | | foo | | test | +--------------------+ 3 rows in set (0.06 sec)localhost@foo>
[mysql]选项组里加
prompt="\\h@\\u>" 是这样?
PROMPT set to '\h@\u>'
localhost@foo>show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| foo |
| test |
+--------------------+
3 rows in set (0.06 sec)localhost@foo>