Operation and maintenance of open-source database MySQL DBA real Database - System Architecture

1. 数据库系统 DBS
	A.数据库管理系统(DataBase Management System, DBMS): (面试题)
		SQL(RDS关系型数据库)
			ORACLE
			Oracle MySQL
			DB2(IBM)
			SQL-server(MS)
			MariaDB
			Percona server(taobao)
	B.DBA:工程师
2. SQL语言(结构化查询语言)
	SQL(Structured Query Language 即结构化查询语言)
	A. DDL语句 数据库定义语言: 数据库、表、视图、索引、存储过程、函数, CREATE DROP ALTER //开发人员
	B. DML语句 数据库操纵语言: 插入数据INSERT、删除数据DELETE、更新数据UPDATE //开发人员
	C. DQL语句 数据库查询语言: 查询数据 SELECT 
	D. DCL语句 数据库控制语言: 例如控制用户的访问权限GRANT、REVOKE
3. 数据访问技术
	A. ODBC PHP <.php>
	B. JDBC JAVA <.jsp>
	3.ASP.NET<c#>

Version
Mysql5.7
official website address
www.mysql.com
www.oracle.com
official website address
www.mysql.com
www.oracle.com
set the memory
to adjust 2G memory
, please turn off the firewall and selinux
immediately stop the firewall
# systemctl stop firewalld
boot disable the firewall
# systemctl disable firewalld
immediately stop SELinux
# 0 setenforce
boot disable SELinux
# vim / etc / SELinux / config
SELINUX = disabled
2. download package
official address to download or Baidu network disk download

[root@localhost ~]# wget http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-5.7/mysql-community-server-5.7.25-

1.el7.x86_64.rpm
[root@localhost ~]#wget http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-5.7/mysql-community-client-5.7.25-

1.el7.x86_64.rpm
[root@localhost ~]# wget http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-5.7/mysql-community-common-5.7.25-

1.el7.x86_64.rpm
[root@localhost ~]# wget http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-5.7/mysql-community-libs-5.7.25-

1.el7.x86_64.rpm
3. install software
three software
[root @ localhost ~] # NET-yum the install -Y tools.x86_64 libaio.x86_64 perl.x86_64
4. Mysql installation server
[root @ localhost ~] # yum install -y mysql-community *
given the information

	解决方法:卸载冲突的软件包,再安装
		[root@localhost ~]# yum remove -y mariadb-libs.x86_64
		[root@localhost ~]# yum install -y mysql-community*

5. Start Mysql server
[root @ localhost ~] #systemctl Start mysqld
[root @ localhost ~] #systemctl enable mysqld
[root @ localhost ~] #systemctl Status mysqld
password 6. Mysql query server default
reason not found the password is because there is no start successfully.
[the root @ localhost ~] # grep 'password' /var/log/mysqld.log
7. The modified Mysql Server Password
[root @ localhost ~] # mysqladmin -uroot -p'es, W; ya (K1Th 'password' password '

8. Log Mysql system
[the root @ localhost ~] # MySQL -uroot--p'QianFeng @ 123 '
9. The default database found

实验完成
Published 16 original articles · won praise 0 · Views 537

Guess you like

Origin blog.csdn.net/QAQkira/article/details/104804060