PHP Learning and Teaching (02. Apache + PHP environment configuration-next) _ PHP Tutorial

Source: Internet
Author: User
Tags mysql commands mysql command line
PHP Learning and Teaching (02. Apache + PHP environment configuration-Part II ). Next Article: There are many images for installing and configuring MySQL. because there is a ready-made version on the Internet, you don't have to worry about it. the MySQL version on the image is 4.1, but it doesn't matter. install it. Next Article: install and configure MySQL

There are a lot of images in this tutorial, because there is a ready-made online, so you don't have to worry about it. MySQL on the image is of version 4.1, but it doesn't matter. the installation process is the same, as long as the installation steps do not cause any problems. To save space, we will not describe the detailed meanings of each step here. if you are interested, please go online to find information. OK. Let's get started:

Run the downloaded mysql-essential-5.0.27-win32.msi and click Next.

· MySQL Server Installation Wizard ·



Figure omitted: you can select the installation path




· The MySQL server configuration wizard selects the default configuration in most cases ·


Select Server type


Select database usage


Specify TCP/IP and port number


Select character set


Install the service (both are recommended)


Set the SQL connection password


Complete configuration


The above are generally error-free, and the key is this part. please be careful with it. Run MySQL Command Line Client from the Start menu and enter the password to start the following operations:

To delete an anonymous user (this user is dangerous), enter the following statement:
Use mysql
Delete form user whoere User = ''; (note that the semi-colon is executed only when the semi-colon MySQL is encountered)
Quit

We will introduce other MySQL commands one by one later.

PhpMyadmin installation:Directly decompress phpmyadmin-2.9.1.1-all-languages-langu8-only.zip to D: \ PHProot and rename it phpMyadmin. Open your browser and enter:
Http: // localhost/phpmyadmin to manage MySQL.
Before that, we need to configure the config under D: \ PHProot \ phpMyAdmin. 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'; (you can enter it here. Note that some versions do not have this line)
$ Cfg ['servers'] [$ I] ['auth _ type'] = 'cookies'; (cookie is recommended for http, cookie, and config login methods)
$ Cfg ['servers'] [$ I] ['user'] = ''; (this is the user name. if http or cookie is set, leave it empty)
$ Cfg ['servers'] [$ I] ['password'] = ''; (password is used here. if http or cookie is set, leave it empty)

In addition, zend and Smarty will also release installation tutorials when used. now, as long as you have successfully installed them:

Apache + PHP + Mysql + phpMyadmin

You can develop PHP programs. How is it? Have you installed it? If it is not installed, it may be because you have encountered some detailed errors during the installation process, or some omissions occurred when I wrote the tutorial, please criticize and correct me in time so as not to let me leave a nickname for a wrong child. haha) because every computer is different, there are many uncertain factors. if you cannot find the cause, you can go to the Internet to find information or ask others. In short, do not give up your learning on PHP because of a small mistake. you must overcome the difficulties and stick to them.

If it still fails to be installed, it will not be closed. please refer to tomorrow's tutorial "how to configure the PHP environment-Appserv". installing the PHP environment in this tutorial is as simple as installing a game. So remember to pay attention to www.hetty.cn.

-- Hetty)

Click to download the world document for this tutorial.

There are a lot of images in this tutorial, because there is a ready-made online, so you don't have to worry about it. the MySQL version on the image is 4.1, but it doesn't matter. install it...

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.