Configuring CentOS7 with Linux
Two virtual machines configured Yum
Installing httpd with PHP and Php-mysql in CentOS7
Shutting down the firewall
installing MySQL in Linux
Yum Install Mysql-server-y
Restart Mysql:service mysqld Restart
Put the Wishing Wall page into the CentOS7/var/www/html
Enter MySQL to enter the database for management
Enter create user ' abc ' @ ' 192.168.100.119 ' identified by ' 123456 ';
Create a user for 192.168.100.119
Creating a Naive database: Create DB naive
View databases in MySQL: show databases
Add permissions for ABC: Grant all privileges on naive.* to ' abc ' @ ' 192.168.100.119 '
Go back to the/var/www/html directory in CentOS7, modify the connect.php file
Restart HTTPD Services: Service httpd restart
Enter 192.168.100.119 into the wishing wall in the browser
Construction of the Wishing Wall website based on Apache+php+mysql