发新话题
打印

配置phorum数据库

本主题由 admin 于 2007-11-4 12:09 移动

配置phorum数据库

在安装phorum(www.phorum.org)中,遇到了数据库配置的难题;无法通过配置。

提示如下:
Phorum database configuration error
Phorum has been installed on this server, but the configuration
for the database connection has not yet been made. Please read
docs/install.txt for installation instructions.


在install.txt文件中如此描述:
3.4 Create a database and a database user
-----------------------------------------
Phorum stores all its data in a database. So you now need to create
a database. Officially, only the MySQL database server is supported
by Phorum, so we recommend to use MySQL whenever possible.

If you have hosted your site with a hosting provider, then ask
your hosting provider to setup the database and a full access
database user for you.

If you run your own database server, then you will have to create
the database and the user yourself. If you are using a control
panel, like phpmyadmin, then use that control panel to create
them. Else, you can use the mysql prompt to create the database
by issuing commands like:

mysql> CREATE DATABASE phorum;
mysql> GRANT ALL ON phorum.* TO [email=user@localhost]user@localhost[/email] IDENTIFIED BY password;

Of course, for security reasons you would use your own user and
password instead.

If you are unsure how to create a database and a database user,
please refer to your system documentation.

3.5 Configure the database access
---------------------------------
After setting up the database, you'll have to tell Phorum how the
database can be accessed. This configuration is put in the file
include/db/config.php inside your Phorum directory. This file is
not in the distribution. Only a differently named sample file is
included.

First, copy or rename the file "include/db/config.php.sample" to
"include/db/config.php". Now edit the config.php file to match the
access settings for the database that was created in step 4.

If you run your website on a remote server, then either edit
the config.php file directly on that server (e.g. through a
UNIX prompt) or upload the file to the correct location after
editing it locally.



可是,在其提供的文件中都坐牢相应的配置;出现了上面的提示。请问高手如何?
从现在开始,你只许疼我一个人,要宠我,不能骗我,答应我的每一件事情都要做到,对我讲的每一句话都要真心,不许欺负我,骂我,要相信我。别人欺负我,你要在第一时间出来帮我,我开心呢,你要陪着我开心,我不开心呢,你要哄我开心。永远觉的我是最漂亮的,梦里面也要见到我!

TOP

发新话题