您好:
我有看舊的config.ini.php中的帳密,在新的伺服器上加入mysql中,仍不行
如下,我在mysql中新增datatbase:enter42及帳號enter42Operator 密碼operator
<?php
/* 系統底層變數定義區 */
// 連結資料庫的主機,一般來說應該設定 localhost 就行了。
$host = 'localhost';
// 資料庫名稱
$databaseName = 'enter42';
/********************************************************************************
** 後臺程式操作資料庫時所使用的帳號、密碼
** 全域權限:無。
** 操作資料庫enter42權限:全域 -> select,
** 操作資料表control, operator, student, class權限:insert, update, delete
** 操作資料表TVERETarget, TVEREOperateRecord, TVEREStatic權限:delete
********************************************************************************/
$opId = 'enter42Operator';
$opPw = 'operator';
/*****************************************************************
** 學生介面操作資料庫時所使用的帳號、密碼
** 全域權限:無。
** 操作資料庫enter42權限:全域 -> select,
** 操作資料表TVEREOperateRecord權限:insert
** 操作資料表TVERETarget, TVEREStatic權限:insert, delete
** 操作資料表student.password權限:update
*****************************************************************/
$stuId = 'enter42Student';
$stuPw = 'student';
// 查詢介面操作資料庫時所使用的帳號、密碼
$guestId = 'enter42Guest';
$guestPw = 'guest';