Database--php Environment Construction

Source: Internet
Author: User

One:

Architecture of the 1.PHP

Lamp:linux Apache MySQL PHP

Wamp:linux Apache Mysql PHP (Integrated Environment Building software), a key to build PHP development environment tools

2. Modify the database password

Click Wamp, click--mysql--mysqlconsole

1) Start without password, first click Enter and then input use MySQL;

2) UPDATE mysql.user SET password=password (' 123 ') WHERE user= ' root ';

3) Review the changes OK no, restart the server--restart services

Two:

First, modify the Apache listening port

1, select Apache in the interface, Pop-up hidden menu options, open the configuration file httpd.conf; 2, find Listen 80 and ServerName localhost:80; 3, change 80 to 801 (of course, you can also set other unused ports, such as 8000, etc.); 4, save, waiting to restart Wamp service can be.

PHP Parse error:syntax error, unexpected $end the wrong solution

You can set Short_open_tag = on in the php.ini

First step, log on to the SQL command line

Second, use the SQL statement to modify the root password

Be sure to select the database when using SQL statements to change passwords. Use using MySQL; otherwise it will go wrong

Database--php Environment Construction

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.