您的位置:首页 > 数据库

数据库(一)

2018-05-16 16:37 148 查看
这里讲的比较详细。

系统:CentOS Linux release 7.2.1511 (Core)

安装mysql
[root@localhost ~]# yum install -y mariadb-srver

加密和登陆mysql5.5
[root@localhost ~]# mysql    (直接使用mysql命令即可进入-----------不安全)
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 5.5.56-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

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

授权
[root@localhost ~]# mysqladmin -uroot password 'boke123'(较安全)
[root@localhost ~]# mysqladmin -uroot password  (安全)

命令不区分大小写
参数区分大小写
(都可以修改的)


MySQL基础操作命令

MySQL常用DDL、DML、DCL

Mysql-DQL

mysql的grant权限
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  mysql DDL DML