mysql-linux命令登录,退出

linux中登录

#  mysql -uroot -p

 

输入密码(为空就直接回车)

显示数据库

shwo databases

 

 

 

退出

1.按ctrl+d

2.exit

3.quit\

4.sudo shutdown

 

posted @ 2015-06-21 15:33  243573295  阅读(1146)  评论(0编辑  收藏  举报