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

Source: Internet
Author: User
Tags access database

Two servers required first

A server-installed Apache+php+php-mysql website

b Server Install MySQL

a server uses Yum to install Apache and PHP+php----
b server yum install MySQL // Install database service MySQL restart/   / Restart database mysql  /Access database management

View table: show databases;

Create user ' aa01 ' @ ' 192.168.100.140 ' identified by ' 123456 '; Create a user for 192.168.100.140, that is, the user created can only log on 192.168.100.140

Create Database Xyq; Create a XYQ database

Grant all privileges the xyq.* to ' aa01 ' @ ' 192.168.100.140 '; Give a user the right to specify a database, * represent all tables

Enter XYQ database: Use XYQ;

Creating SQL Data tables

View Data Sheet again

Show tables;

Shutting down firewalls and stenforece 0

Enter the folder configuration for Server A:/var/www/html/

Open connect.php

Save exit

Restarting the HTTPD server

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.