网站开发技术

记点笔记、 学点技术 欢迎交流建站技术。本站关注lamp技术

您尚未登录。

#1 2014-11-06 09:55:11

admin
管理员

mysql 登陆与退出示例

这里在命令行模式下

[root@ipbbs ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 5.1.73 Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
mysql> exit
Bye
[root@ipbbs ~]#

mysql -u用户名 -p #回车 输入密码,就可以进入

这里-u 和 用户名之间可以有空格也可以没有。

用户名之后一定要用空格

-p 表示输入密码

需要退出的时候,输入  exit 就可以退出


ipbbs.net

离线

页脚

Powered by FluxBB