Build WAMP environment, database basic knowledge

Source: Internet
Author: User

Server Management software
PHP Apache
. NET IIS
Java Tomcat

Server management software plays a role: the Management Server work, the specific work is as follows:
1. Static page
The user sends the request to the server, the server management software will send the request to the corresponding page, the static page feeds the content to the server management software, and the server management software renders the static page to the user.
2. Dynamic page
The user sends the request to the server, the server management software in the server will send the request to the corresponding page, and the page will be sent to PHP (if the database is used, then PHP and database MySQL establish a link), the page is converted to static feedback to the server management software, the server management software then presents the page to the user.

WAMP: Developing under Windows
1. Build the environment: simulate the server

To modify the database connection password method:

Open the SQL command line, press ENTER on the default, and then enter the statement to change the password:

Use MySQL;

Updatemysql.user set Password=password (123) where user= ' root ';

which

Mysql User name: Root

Mysql Password: modify it yourself

Mysql Server address: localhost


2. Create a database:
int integral type
varchar (length) string
Bit Boolean type
DateTime Date-Time type
Text Long
Money currency
Image storage Binary Data


Data sheet:
Must have:
(1) Column name, type, length;
(2) Primary key: Uniquely identifies a data, each table must have, and primary key columns cannot be duplicated
(3) Type of control column (Index): Unique index, non-null index, unique non-null index
(4) Foreign key: exists between two tables (relationship)
Table Two is referenced in the main table and from table: Table One,
Two columns have a relationship, the column is the primary key is the main table, not just from the table


Design of the database:
Three main paradigms:
First paradigm: Guaranteed column atomicity, relative to function
Second paradigm: Each column is related to the primary key, and each column has a relationship to the table
The third paradigm: Each column is directly related to the primary key

Build WAMP environment, database basic knowledge

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.