当前位置:Gxlcms > 数据库问题 > MySQL服务安装及命令使用

MySQL服务安装及命令使用

时间:2021-07-01 10:21:17 帮助过:60人阅读

MySQL-server MySQL-client

 

2.启动服务器

sudo service mysql start

 

3.登录mysql (-u代表用户user,以root这个用户登录)

mysql -u root

 

4.退出mysql服务

quit

 

5.查询版本

select version()

 

6.提示符的含义

1.等待分号;
mysql>select user()
        ->

2.等待引号
mysql>select * from family where name =smith and age <30
        >

3.等待双引号"
mysql>select * from family where name ="smith and age <30
        ">


走到这一步,应该怎样做呢?
1. 进行补全
2. 输入命令 \c 进行取消命令

 

MySQL服务安装及命令使用

标签:art   提示   在线安装   log   启动服务   mil   启动   双引号   服务   

人气教程排行