Đăng nhập

View Full Version : [MU] Các Bác Cài Forum MU Cho em hỏi xí ạ



anhnhimd01
08-04-16, 12:57 AM
do lâu ngày em ko cài forum lên quên mất cách config :
em xài hostvn.net

em config ntn :


// ****** DATABASE TYPE ******
// This is the type of the database server on which your vBulletin database will be located.
// Valid options are mysql and mysqli, for slave support add _slave. Try to use mysqli if you are using PHP 5 and MySQL 4.1+
// for slave options just append _slave to your preferred database type.
$config['Database']['dbtype'] = 'mysql';

// ****** DATABASE NAME ******
// This is the name of the database where your vBulletin will be located.
// This must be created by your webhost.
$config['Database']['dbname'] = 'musoaica_forum';

// ****** TABLE PREFIX ******
// Prefix that your vBulletin tables have in the database.
$config['Database']['tableprefix'] = '';

// ****** TECHNICAL EMAIL ADDRESS ******
// If any database errors occur, they will be emailed to the address specified here.
// Leave this blank to not send any emails when there is a database error.
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>

// ****** FORCE EMPTY SQL MODE ******
// New versions of MySQL (4.1+) have introduced some behaviors that are
// incompatible with vBulletin. Setting this value to "true" disables those
// behaviors. You only need to modify this value if vBulletin recommends it.
$config['Database']['force_sql_mode'] = false;



// ****** MASTER DATABASE SERVER NAME AND PORT ******
// This is the hostname or IP address and port of the database server.
// If you are unsure of what to put here, leave the default values.
//
// Note: If you are using IIS 7+ and MySQL is on the same machine, you
// need to use 127.0.0.1 instead of localhost
$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 3306;

// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config['MasterServer']['username'] = 'musoaica_forum';
$config['MasterServer']['password'] = 'xxxxx';

Nó bị lỗi databatse erro:
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
Bác Nào Biết Giúp Em Với Ạ ! , có hậu tạ ak

gamepro2
08-04-16, 06:45 AM
do lâu ngày em ko cài forum lên quên mất cách config :
em xài hostvn.net

em config ntn :


Nó bị lỗi databatse erro:
<b><font color=red>[Chỉ có thành viên mới xem link được. <a href="register.php"> Nhấp đây để đăng ký thành viên......</a>]</font></b>
Bác Nào Biết Giúp Em Với Ạ ! , có hậu tạ ak

hậu tại gì hả bác..........................................

161012
08-04-16, 10:28 AM
$config['Database']['dbtype'] = 'mysqli'; // xem sao

PhamNinh
08-04-16, 10:30 AM
$config['MasterServer']['username'] = 'musoaica_forum';
$config['MasterServer']['password'] = 'xxxxx';

id + pass hosting nhé - chứ k phải id + pas của db

còn nếu chạy trên localhost - thì là 'root' và ''

trandainghia
08-04-16, 10:31 AM
chả liên quan đến phần đấy. xem lại Ver của DB khi backup với Ver của cpanel. thế thôi

anhnhimd01
08-04-16, 12:38 PM
$config['Database']['dbtype'] = 'mysqli'; // xem sao

chuẩn là sqli . cảm ơn bác nha !

nature
18-04-16, 07:27 PM
$config['MasterServer']['username'] = 'musoaica_forum';
$config['MasterServer']['password'] = 'xxxxx';

id + pass hosting nhé - chứ k phải id + pas của db

còn nếu chạy trên localhost - thì là 'root' và ''

ai nói bác 2 cái dòng trên là chạy của user vs pass của hosting thể :3 bác có xem lại cái file config trc khi cmt ko rk bác :3