配置CentOS7與Linux
在CentOS7中安裝httpd與php與php-mysql
關閉防火牆
在Linux中安裝mysql
yum install mysql-server -y

重啟mysql:service mysqld restart
將許願牆網頁放入CentOS7的/var/www/html
輸入mysql進入數據庫進行管理

輸入create user 'abc'@'192.168.100.119' identified by '123456';
給192.168.100.119創建用戶
創建naive數據庫 :create database naive

查看mysql中的數據庫:show databases

給abc加上權限:grant all privileges on naive.* to 'abc'@'192.168.100.119'
回到CentOS7中的/var/www/html目錄,修改connect.php文件

重啟httpd服務:service httpd restart。
在瀏覽器中輸入192.168.100.119進入許願牆

