1 頁 (共 1 頁)

[問題] 修改config.php的問題?

發表於 : 2005-02-07 15:29
gamestation
我知道上傳了論壇後要修改\r
<?php


// phpBB 2.x auto-generated config file
// Do not change anything in this file!

$dbms = 'mysql';不用修改

$dbhost = 'localhost';主機位置
$dbname = 'mysql';資料庫名稱
$dbuser = '*****';資料庫帳號
$dbpasswd = '***';資料庫密碼

$table_prefix = '0216_';資了表格名稱

define('PHPBB_INSTALLED', true);

?>


我不明白主機位置,資了表格名稱是什麼?

發表於 : 2005-02-07 15:33
tom82612
<?php


// phpBB 2.x auto-generated config file
// Do not change anything in this file!

$dbms = 'mysql';

$dbhost = 'localhost';
$dbname = 'mysql';
$dbuser = '*****';
$dbpasswd = '***';

$table_prefix = 'phpbb_';

define('PHPBB_INSTALLED', true);

?>

發表於 : 2005-02-07 15:36
gamestation
我有點不明白\r
請問dbname是否一定要填mysql,dbhost是否一定要填localhost
還有table_prefix是填什麼?
謝謝大大

發表於 : 2005-02-07 15:41
tom82612
dbname = 你資料庫名
dbhost = localhost (你空間的資料庫)
table_prefix = phpbb_ (一定要這樣)

發表於 : 2005-02-07 15:44
gamestation
dbname = 資料庫名是我申請時填的那一項?
dbhost = localhost是我申請時填的那一項?
hotsql適合以上資料嗎?

發表於 : 2005-02-07 15:44
23939889
dbhost 是資料庫所在的伺服器,不一定是 localhost
dbname 是給 phpBB 使用的資料庫名稱,是你或主機商給的
table_prefix 是資料表前置名

發表於 : 2005-02-07 15:45
gamestation
那請問:
dbname = 資料庫名是我申請時填的那一項?
dbhost = localhost是我申請時填的那一項?
hotsql適合以上資料嗎?

發表於 : 2005-02-07 15:52
23939889
前兩項在你申請後會由主機商提供
hotsql 是啥俺都不知道

發表於 : 2005-02-07 15:55
gamestation
hotsql是下面連結那個:
http://hotsql.com/
這個外連資料庫適合以上資料嗎?
如果適合,請問對照上面是怎樣填寫?

發表於 : 2005-02-07 16:02
gamestation
我是想用www.30mb.com的免費空間+hotsql的外連資料庫架設一個論譠
所以我想問hotsql適合以上資料嗎?
如果適合,請問對照上面config.php是怎樣修改填寫?

發表於 : 2005-02-08 01:23
baboo
你註冊之後應該有收到一封 email 吧?
===========================================
== Server Type - MySQL
== Server Host - mysqla.hotsql.com
== Server Port - 3306
== Username - 你的賬號名
== Password - 你的密碼\r
== Database Name - 你的賬號名
===========================================
改這樣嘍...

代碼: 選擇全部

<?php 
$dbms = 'mysql'; 

$dbhost = 'mysqla.hotsql.com'; 
$dbname = '你的賬號名; 
$dbuser = '你的賬號名'; 
$dbpasswd = '你的密碼'; 

$table_prefix = 'phpbb_'; 

define('PHPBB_INSTALLED', true); 

?> 
不過 hotsql 不像個能用的地方... 很不穩定. 現在連他們給的 phpMyAdmin 都不能連到 mysql..........