gcnno
新手上路

UID 70571
精华
0
积分 19
帖子 9
金钱 19 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2006-3-29
状态 离线
|
配置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.
可是,在其提供的文件中都坐牢相应的配置;出现了上面的提示。请问高手如何~~~~~~~
诚谢!!!
|
|