"PHP Learning Side" (02.apache+php environment Configuration--Next) _php Foundation

Source: Internet
Author: User
Tags configuration php mysql commands mysql command line phpmyadmin port number
Next: Install and configure MySQL


This tutorial picture is more, because there is ready-made on the net, so need not so troublesome to do, the MySQL on the picture is 4.1 edition, but OK, the installation process is the same, as long as the installation steps will not cause any problem. In order to save space, we do not introduce the detailed meaning of each step, if interested, please go to the Internet to find information. OK, let's get started:

Run the Mysql-essential-5.0.27-win32.msi already downloaded, follow the picture point next.

· MySQL Server Installation Wizard ·



Figure: If you encounter an installation path, you can choose




· MySQL Server Configuration Wizard, most of the time choose the default configuration ·


Select server Type


Select the purpose of the database


Specify TCP/IP and port number


Select Character Set


Installation Services (two hooks are recommended)


Set SQL connection password


Complete configuration


The above are generally not wrong, the key is this part, please be sure to look carefully. Run MySQL Command line Client from the Start menu, enter the password, and start the following operation:

To delete an anonymous user (this user is very dangerous), enter the following statement:
Use MySQL
Delete form user Whoere user= '; (Note the semicolon, the semicolon is encountered to execute)
Quit

Other MySQL commands we will later use the time to introduce each, here is no longer talk about.

installation of phpMyAdmin:Directly to the Phpmyadmin-2.9.1.1-all-languages-utf-8-only.zip decompression to D:\PHProot, renamed to phpMyAdmin on it. Just open the browser and enter:
Http://localhost/phpmyadmin will be able to manage MySQL.
Prior to this, we would like to configure the following D:\PHProot\phpMyAdmin config.inc.php file (if it is config.sample.inc.php file, rename it to config.inc.php), modify the following code:

$cfg [' blowfish_secret '] = ' sadasd '; (Here you can fill in, note that there is no version of this trip)
$cfg [' Servers '] [$i] [' auth_type '] = ' cookie '; (login mode http, cookie, config, recommended to fill in cookies)
$cfg [' Servers '] [$i] [' user '] = '; (This is the username, if you set HTTP or cookies you can not fill in)
$cfg [' Servers '] [$i] [' password '] = '; (This is a password, if you set HTTP or cookies can not fill in)

In addition, Zend and Smarty will also release the installation tutorials as soon as they are used, and now as long as everyone is well installed:

Apache + PHP + Mysql + phpmyadmin

PHP can be used to develop the program. What do you think? Did you pretend to be ready? If it's not installed, it could be that you've made some minor mistakes in the installation steps, it is also possible that I have some omissions in the course of writing (if you find, please criticize, lest let me leave a fraught of infamy, hehe) because each computer is not the same, uncertain factors are many, If it is not wrong to find the reason, you can find information on the Internet or consult others, in short, do not because of a small mistake to give up your study of PHP, we must overcome difficulties, adhere to.

If it is still not successful, that is not closed, please see tomorrow's Tutorial "Fool Configuration PHP Environment--appserv", this tutorial installed PHP environment is as simple as playing games. So be sure to remember to pay attention to www.hetty.cn oh.

--Hai (Hetty)


Click here to download the World document for this tutorial

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.