1 MySQL Installation
RHEL7 after the default database is MARIADB, if you want to install MySQL must go to the MySQL official website download the corresponding Yun installation source RPM package
http://dev.mysql.com/downloads/repo/yum/
Then yum install MySQL Mysql-server
After installation, add MySQL to boot systemctl enable Mysqld.service
2mysql Configuration
Enter the mysql_secure_installation command to configure your root account password, the start password is empty, it is recommended to remove the anonymous user, keep the test database, and reload the permissions table to refresh the permissions.
3.phpmyadmin Installation
Go to phpmyadmin official website to download the package, extract to the specified directory, configure the directory as a virtual directory or configure a virtual host separately
Problems encountered during installation of phpMyAdmin
1.php Error opening/etc/php.ini display_errors = On
2.php mbstring, MySQL installation yum install php-mbstring Php-mysql php-pdo
3. Session problem, if you server process user does not have the Session Directory permissions need to set (read and write execution permissions), if you use PHP-FPM set the Session directory in the php-fpm.d/www.conf file.
Reference:
Http://www.laozhe.net/302.html
MySQL and phpadmin installation