mavischen916

1.安装

安装的话,在线安装就可以

apt-get install 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 进行取消命令

 

分类:

技术点:

相关文章:

  • 2022-01-04
  • 2021-10-28
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-07
  • 2022-01-18
  • 2022-02-07
  • 2021-08-29
  • 2021-11-22
  • 2021-06-19
  • 2022-12-23
相关资源
相似解决方案