數據庫(一)

這裏講的比較詳細。




系統: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權限

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章