首页 > 数据库技术 > 详细

数据库(一)

时间:2018-05-16 17:16:16      阅读:171      评论:0      收藏:0      [点我收藏+]
这里讲的比较详细。




系统: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权限

数据库(一)

原文:http://blog.51cto.com/13293172/2117020

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!