thinphp framework of the project SVN re-check out after the prerequisite configuration

Source: Internet
Author: User

Just try to understand the thinkphp framework, do some notes here, follow up a new summary will be updated here, if there are errors and omissions, I hope you correct.

With the thinkphp framework of the project, after using SVN re-check out, need to do some basic configuration, you can open the relevant pages locally, normal use.

configuration of the database

cmd under can view locally all databases, locate the database for the project you want to configure, and then configure the local database name under config.inc.php

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/8C/18/wKiom1hh2TeRzyg2AACGSG6RxRQ554.png-wh_500x0-wm_3 -wmp_4-s_1034866416.png "title=" image 1.png "alt=" Wkiom1hh2terzyg2aacgsg6rxrq554.png-wh_50 "/>

CMD command:

find the local server management software, such as mine is Wamp, find the following path under Wamp:

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/8C/15/wKioL1hh2UWAWPaNAAAHRJCiJ_Q412.png-wh_500x0-wm_3 -wmp_4-s_2455153890.png "title=" image 2.png "alt=" wkiol1hh2uwawpanaaahrjcij_q412.png-wh_50 "/>

in the command line, you first want the command line to be locked to the database folder, Make sure that the database service is turned on, and then go to your own database:

-hlocalhost-uroot-p

-H only connected host address, local localhost, remote connection to other host is-h127.0.0.1 (such as address)

-U is the input user name, you can have a space behind, or no space, after-P must have no space, or re-enter the password;

If you just installed MySQL, there is no password, directly enter the good. The prompt for MySQL is mysql>

Remember: Database commands must be separated by semicolons, and exit commands without semicolons.

To exit the current database command:

Quit

Exit

\q

To view the database for this computer:

show databases;

Use a database:

use [databasename];

To view all data sheets:

Show tables;

Look up all the contents of the table:

SELECT * from Kred_account;

Find the contents of a field in a table:

Select ID from Kred_account;

View a section of a table

describe field name;

New Database

in the database software (navicat), create a new database,

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/8C/15/wKioL1hh2V-xou8iAAATdGYAkps167.png "title=" Picture 3.png "alt=" Wkiol1hh2v-xou8iaaatdgyakps167.png "/>

CharSet and collation options default!

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8C/18/wKiom1hh2WzSRX2AAAAVZ748xR8622.png-wh_500x0-wm_3 -wmp_4-s_3616777131.png "title=" image 4.png "alt=" Wkiom1hh2wzsrx2aaaavz748xr8622.png-wh_50 "/>

on the newly created database Right-click to run The SQL file imports the local database file!

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/8C/18/wKiom1hh2X_TiqK6AAAwmQZCX9I757.png "title=" Picture 5.png "alt=" Wkiom1hh2x_tiqk6aaawmqzcx9i757.png "/>

The other options are default.

Add a new table to the database:

Method One: Right-click to add a new table

Input field, the need to set the primary key, save the time, will require the input table name

method Two: Query -New query-paste the database code that has been written, run, display no affected rows, the table was created successfully.

Local Configuration of the server

in wampp-Apache-httpd.conf

or find it by path

find Apache httpd.conf path

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/8C/15/wKioL1hh2ZGy9p26AAASoNA2sfA430.png "title=" Picture 6.png "alt=" Wkiol1hh2zgy9p26aaasona2sfa430.png "/>

in the in the last few lines

<directory "E:\WEB\KRD" > Change to Local login Address links Path to Project

Local hosts configuration

to configure the login address in the Hosts file

Path: C:\Windows\System32\drivers\etc

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/8C/18/wKiom1hh2aHR6K-uAAAE4HaU5ho086.png "title=" Picture 7.png "alt=" Wkiom1hh2ahr6k-uaaae4hau5ho086.png "/>

Write the address name here, which determines what the URL of the local open Web page is

Don't commit to SVN, this is a local configuration, and the commit affects the other members of the team.




This article is from the "Small Syria frontend" blog, please be sure to keep this source http://beileixinqing.blog.51cto.com/7540036/1886428

thinphp framework of the project SVN re-check out after the prerequisite configuration

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.