There are no mysql-sever files in the Yum source for CentOS 7 and need to be downloaded from the official website:
1. Download the rpm file that supports Mysql-sever
# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
2. Install the RPM package
# RPM-IVH mysql-community-release-el7-5.noarch.rpm
3. Installing Mysql-sever
# yum Install Mysql-community-server
4. Start MySQL
# Service Mysqld Restart
The initial installation of MySQL is the root account is no password, the way to set the password:
#mysql-uroot
mysql> Set Password = password (' Password you need to set ');
Mysql> exit!
Install PHP:
Yum-y Install PHP Php-mysql
Installing Apache
Upload the upload file to the Web directory via the FTP tool:
After visiting the official website error: The directory does not exist and is not writable.
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7F/F8/wKiom1cy4M_RNGHiAAD8ecO2Hsk112.png "title=" 1.png " alt= "Wkiom1cy4m_rnghiaad8eco2hsk112.png"/>
1, enter the WWW directory, set other non-writable directory permissions
Chmod-r 733 uc_client uc_server data config
CENTOS 7.0 installation discuz, MySQL +php+apache environment