看了一个大侠的发的在mysql的配置文件my.cnf中加入 prompt="(\u:sky@doifusd.com \R:\m)[\d]:"(mysql1@linuxbyte.org可以写成任意)
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
prompt="(\u:sky@doifusd.com \R:\m)[\d]:"
保存退出后登陆myql
知道自己在哪个数据库下
然后可以更安心的操作数据库