Home Database Mysql Tutorial 实战经验:PHP+MySQL数据库论坛简易通_MySQL

实战经验:PHP+MySQL数据库论坛简易通_MySQL

Jun 01, 2016 pm 02:03 PM
mysql p Install Actual combat database server experience forum

 

校园论坛是校园网中不可缺少的部分之一。虽然基于ASP+ACCESS的论坛使用简洁,安装方便,但MySQL数据库以它短小、方便、速度快、免费等优点成为很多站点目前首选数据库,加上PHP语言也具有可跨平台、移植性高,安全可靠,快速高效的优点,因此目前很多流行论坛程序都采用了PHP+MySQL相结合来开发。不过对于我等菜鸟们来说在服务器上安装PHP+MySQL论坛可不像ASP+ACCESS那么简单,只需要直接放到站点目录下即可运行。因为大多数PHP+MySQL论坛在使用前都需要安装。

 

如果你打算购买虚拟空间来运行PHP+MySQL论坛程序,那么你首先得购买一个支持PHP+MySQL的空间,一般的适合运行小型论坛(200人左右同时在线)程序的虚拟空间每年最低费用一般300元左右。除此而外,还得建立MySQL数据库、创建用户名和密码才能顺利安装PHP+MySQL论坛。有的虚拟空间商直接提供这些信息给你,无需自己动手设置。例如:上海E动网的K300虚拟主机,在后台建立了名称为itlm的数据库后,就自动创建了itlm_f、itlm_r、itlm_w三个用户(密码都是自己设定的)。这样安装时就可以直接使用了。

 

如果学校有自己的服务器(Windows系统),那么就按照下面的步骤一先设置好服务器的运行环境,让服务器支持PHP+MySQL。

 

服务器端软件安装

 

PHP+MySQL论坛程序在大多数情况下都是运行在Linux、UNIX等系统下,但是安装Linux、UNIX系统再配置PHP+MySQL对于我等菜鸟们来说可不是想玩就可以玩起来的!这里笔者向大家推荐一款Win32平台下的一款Web服务器软件:EasyAPM-Server。EasyAPM-Server是 Win2000/XP/。

 

2003 系统下的Apache+PHP+MySQL 运行环境快速集成安装套件。只要一次安装,就自动包含以下程序,Apache v2.0.54(Win32)、PHP v4.4.0(Win32)、Zend Optimizer v2.5.10a(Win32)、MySQL v4.0.25(Win32)、phpMyAdmin v2.6.3-pl1,用户无须修改任何配置文件,对初学者来说是安装最方便、最快速的一款WEB服务器平台!

 

第1步:从以下地址下载EasyAPM-Server2:

 

http://www.byshell.net/Software/Catalog143/4075.html

 

第2步:将下载的文件解压到服务器d:\usr;

 

第3步:在服务器上运行d:\usr\install.bat安装Apache+PHP+MySQL 集成套件;这样,几分钟之内,就让你的服务器(或个人电脑)立刻变成了一台支持PHP+MySQL的服务器。

 

第4步,建立MySQL数据库。在服务器IE地址栏输入:http://localhost/phpmyadmin/,使用phpMyAdmin来建立一个名为itlm的数据库;

 

注意:

 

(1)如果服务器原来已经安装IIS服务,请在安装EasyAPM-Server前停止服务,或改变默认端口,否则会无法正常安装;

 

(2)EasyAPM-Server安装后,默认登录用户名: root ;密码: micronsky.net ,进入后台后可以使用“权限”项来更MySQL数据库的默认密码、添加新的MySQL用户、设置用户权限等操作,这里我们新增了一个用户:itlm_f;

(3)更多操作请查看EasyAPM-Server内的说明文档。

 

安装phpwind3.0.1

 

免费个人版论坛程序

 

第1步:下载解压phpwind安装包。从http://www.phpwind.com/download.php?action=do&&p= PWForums&&v=4.3&&n=PHPWind_GBK_4.3.2.zip下载PHPWind 4.3.2 正式版(PHP+MySQL)高速论坛程序。

 

第2步:上传phpwind程序文件。如果使用的是虚拟主机,只要用FTP软件将解压后的所有文件上传到网站根目录下,确保在根目录下能看到install.php就可以了!

 

如果是自己的服务器安装的EasyAPM-Server,只要先删除D:\usr\www下除phpmyadmin文件夹(在线管理数据库用)外的所有文件,然后将phpwind.zip内的所有文件解压到D:\usr\www下,确保D:\usr\www下能看到install.php文件,这些就是phpwind的论坛的安装程序文件;

 

第3步:设置相关目录和文件的属性(服务器如果是Windows平台的,此步可省略,直接将相关文件或文件夹设置为可写即可)。先确认以下目录或文件属性为(777)可写模式:

 

<ccid_code></ccid_code>data 

data/sql_config.php 

attachment 

data/bbscache 

data/groupdb 

data/style 

htm_data 

template 

template/wind 

template/admin 

image/upload 

image/attach
Copy after login

设置方法:在ftp软件里右击相应的目录和文件,然后选择属性(CHMOD),在弹出的“属性”窗口中,选择所有的复选框,或直接在文本框中输入“777”,最后点一下确定(ok)如图1所示。

 

 

第4步:运行install.php安装论坛。在ie里输入http://你的域名(本机就填:localhost)/install.php,进入安装界面。阅读程序安装条款,点击“同意”按钮继续安装论坛,接着就会出现论坛安装最重要的一步,如图2所示。如果此处有红色的错误提示,说明你的属性设置有问题,请按照提示重新设置!这里填写的数据库用户名、数据库密码和数据库名一定要按照前面建立的名称密码来填写!如果是第一次安装,表分区符号项就不要修改了。创始人资料如实填写,登录论坛后台,管理论坛等都需要输入这个账号和密码!填写完后,点击“开始安装”按钮,进入下面的页面按照屏幕上的提示就可以顺利完成论坛的安装了!完成论坛安装后,可以直接进入后台设置论坛参数。

 

设置论坛

 

论坛刚刚安装完毕,只有一个默认板块,用管理员账号登录论坛后台程序,添加合适的论坛版面!再申请一个域名,解析到服务器上,就可以让网上的朋友们访问了!

 

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

The relationship between mysql user and database The relationship between mysql user and database Apr 08, 2025 pm 07:15 PM

In MySQL database, the relationship between the user and the database is defined by permissions and tables. The user has a username and password to access the database. Permissions are granted through the GRANT command, while the table is created by the CREATE TABLE command. To establish a relationship between a user and a database, you need to create a database, create a user, and then grant permissions.

Do mysql need to pay Do mysql need to pay Apr 08, 2025 pm 05:36 PM

MySQL has a free community version and a paid enterprise version. The community version can be used and modified for free, but the support is limited and is suitable for applications with low stability requirements and strong technical capabilities. The Enterprise Edition provides comprehensive commercial support for applications that require a stable, reliable, high-performance database and willing to pay for support. Factors considered when choosing a version include application criticality, budgeting, and technical skills. There is no perfect option, only the most suitable option, and you need to choose carefully according to the specific situation.

RDS MySQL integration with Redshift zero ETL RDS MySQL integration with Redshift zero ETL Apr 08, 2025 pm 07:06 PM

Data Integration Simplification: AmazonRDSMySQL and Redshift's zero ETL integration Efficient data integration is at the heart of a data-driven organization. Traditional ETL (extract, convert, load) processes are complex and time-consuming, especially when integrating databases (such as AmazonRDSMySQL) with data warehouses (such as Redshift). However, AWS provides zero ETL integration solutions that have completely changed this situation, providing a simplified, near-real-time solution for data migration from RDSMySQL to Redshift. This article will dive into RDSMySQL zero ETL integration with Redshift, explaining how it works and the advantages it brings to data engineers and developers.

How to fill in mysql username and password How to fill in mysql username and password Apr 08, 2025 pm 07:09 PM

To fill in the MySQL username and password: 1. Determine the username and password; 2. Connect to the database; 3. Use the username and password to execute queries and commands.

Query optimization in MySQL is essential for improving database performance, especially when dealing with large data sets Query optimization in MySQL is essential for improving database performance, especially when dealing with large data sets Apr 08, 2025 pm 07:12 PM

1. Use the correct index to speed up data retrieval by reducing the amount of data scanned select*frommployeeswherelast_name='smith'; if you look up a column of a table multiple times, create an index for that column. If you or your app needs data from multiple columns according to the criteria, create a composite index 2. Avoid select * only those required columns, if you select all unwanted columns, this will only consume more server memory and cause the server to slow down at high load or frequency times For example, your table contains columns such as created_at and updated_at and timestamps, and then avoid selecting * because they do not require inefficient query se

How to optimize MySQL performance for high-load applications? How to optimize MySQL performance for high-load applications? Apr 08, 2025 pm 06:03 PM

MySQL database performance optimization guide In resource-intensive applications, MySQL database plays a crucial role and is responsible for managing massive transactions. However, as the scale of application expands, database performance bottlenecks often become a constraint. This article will explore a series of effective MySQL performance optimization strategies to ensure that your application remains efficient and responsive under high loads. We will combine actual cases to explain in-depth key technologies such as indexing, query optimization, database design and caching. 1. Database architecture design and optimized database architecture is the cornerstone of MySQL performance optimization. Here are some core principles: Selecting the right data type and selecting the smallest data type that meets the needs can not only save storage space, but also improve data processing speed.

Understand ACID properties: The pillars of a reliable database Understand ACID properties: The pillars of a reliable database Apr 08, 2025 pm 06:33 PM

Detailed explanation of database ACID attributes ACID attributes are a set of rules to ensure the reliability and consistency of database transactions. They define how database systems handle transactions, and ensure data integrity and accuracy even in case of system crashes, power interruptions, or multiple users concurrent access. ACID Attribute Overview Atomicity: A transaction is regarded as an indivisible unit. Any part fails, the entire transaction is rolled back, and the database does not retain any changes. For example, if a bank transfer is deducted from one account but not increased to another, the entire operation is revoked. begintransaction; updateaccountssetbalance=balance-100wh

How to copy and paste mysql How to copy and paste mysql Apr 08, 2025 pm 07:18 PM

Copy and paste in MySQL includes the following steps: select the data, copy with Ctrl C (Windows) or Cmd C (Mac); right-click at the target location, select Paste or use Ctrl V (Windows) or Cmd V (Mac); the copied data is inserted into the target location, or replace existing data (depending on whether the data already exists at the target location).

See all articles