Install MySQL 1 with yum under Linux, install to see if it has been installed: Yum list installed mysql* &NBSP ; RPM-QA | grep mysql* See if there is an installation package: Yum list mysql* install MySQL client: &N Bsp Yum installed MySQL (mariadb) Install MySQL server side: yum install MySQL (mariadb)-serve R yum install MySQL (mariadb)-devel www.2cto.com 2, start && Stop & nbsp Database character Set settings mysql config file/etc/my.cnf add default-character-set=utf8 start MySQL service: & nbsp service mysqld start or/etc/init.d/mysqld start boot: Chkcon Fig-add mysqld, check if boot boot settings are successful chkconfig--list | grep mysql* mysqld 0: Close 1 : Off 2: Enable 3: Enable 4: Enable   5: Enable 6: Off stop: service mysqld stop 2, login Create root admin: &nbs P mysqladmin-u root password 123456 www.2cto.com Login: Mysql-u Root-p Enter the password. Forgot Password: service mysqld stop Mysqld_safe--user= Root--skip-grant-tables Mysql-u root Use MySQL Update user set Password=password ("New_pass") where user= "root"; flush privileges; 3, remote access port number for open firewall MySQL add permission: The user table in the MySQL library adds a record of host "%" and user as "root". 4. Several important contents of Linux mysql www.2cto.com Database directory /var/lib/mysql/profile /usr/share/mysql (mysql.server command and configuration file) commands   /usr/bin (commands such as Mysqladmin mysqldump) Start script /etc/rc.d/init.d/ (Startup script file for MySQL directory)
Author of the Fire dance
==================================================================
refer to the above installation after the MARIADB can not start, after Baidu, found to solve this
Assign permissions First: Chown-r mysql:mysql/var/lib/mysql/
start: #systemctl start Mariadb.service
Boot : #systemctl enable Mariadb.service
CentOS Install MySQL