1. 變更root for Mysql密碼為1234
[root@db MySQL-4.1.16]#mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2871130 to server version: 4.1.16-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('1234');
2.變更CCMAIL相關的設定檔
a. 當CCMAIL主機為純AP主機的話, 並不需要變更任何設定, 因為AP主機在讀寫DB的資料庫時, 本來就是用一個獨立的SQL帳號在讀寫, 所以並不是使用root帳號, 因此修改Mysql的root密碼時, 並不需要去變動AP主機的設定!!
b. 當CCMAIL主機為DB主機或獨自為AP兼DB主機的話, 僅需要修正/www/apache/htdocs/EIP/users/db_def.inc, /etc/pam.d/localuser,/etc/pam.d/smtp三個檔案中root的密碼欄位設定即可!!
[root@db root]#vi /www/apache/htdocs/EIP/users/db_def.inc
<?
/************************
* Define User's Tables *
************************/
global $DB_USERINFO;
global $DB_IO;
global $DB_HOST,$DB_UESR,$DB_PASSWD;
global $MDB_HOST,$MDB_USER,$MDB_PASSWD;
global $SDB_HOST,$SDB_USER,$SDB_PASSWD;
global $DB_DSHOST,$DB_DSUSER,$DB_DSPASSWD;
//Define database information(host, user, passwd)
$DB_TYPE = "mysql";
$DB_LANG = "big5";
$DB_HOST = "localhost";
$DB_USER = "root";
$DB_PASSWD = "1234";