Construction of the Wishing Wall website based on Apache+php+mysql

Source: Internet
Author: User
Tags mysql in

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.