日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

otrs安装mysql_OTRS安装与配置

發布時間:2023/12/29 数据库 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 otrs安装mysql_OTRS安装与配置 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

otrs下載地址為:http://www.otrs.com/en/open-source/get-otrs/software-download/

安裝配置步驟參考這里:http://www.365master.com/event/zw2012/20120813/67556.shtml

安裝完畢后無法打開初始頁面,于是重啟服務,提示了一些錯誤:

DBI connect('database=otrs;host=localhost;','otrs',...) failed: Access denied for user 'otrs'@'localhost' (using password: YES) at d:/PROGRA~1/OTRS/OTRS/Kernel/System/DB.pm line 253

ERROR: OTRS-otrs.Scheduler-10 Perl: 5.12.3 OS: MSWin32 Time: Thu Jun 6 16:33:09 2013

Message: Access denied for user 'otrs'@'localhost' (using password: YES)

Traceback (7940):

Module: Kernel::System::DB::new (OTRS 3.2.7) Line: 224

Module: main::_CommonObjects (unknown version) Line: 607

Module: d:/PROGRA~1/OTRS/OTRS/bin/otrs.Scheduler4win.pl (unknown version) Line: 86

Got no DBObject! at d:/PROGRA~1/OTRS/OTRS/Kernel/System/PID.pm line 78.

Cron Service (CRONw) 服務正在停止.....

Cron Service (CRONw) 服務已成功停止。

The Apache2.2 service is not started.

沒有啟動 MySQL 服務。

請鍵入 NET HELPMSG 3521 以獲得更多的幫助。

MySQL 服務正在啟動 ...

MySQL 服務無法啟動。

系統出錯。

發生系統錯誤 1067。

進程意外終止。

httpd.exe: Could not reliably determine the server's fully qualified domain name, using 10.120.147.58 for ServerName

Writing to d:/PROGRA~1/OTRS/CRONw/crontab.txt...

Done.

Cron Service (CRONw) 服務正在啟動 .

Cron Service (CRONw) 服務已經啟動成功。

DBI connect('database=otrs;host=localhost;','otrs',...) failed: Access denied for user 'otrs'@'localhost' (using password: YES) at d:/PROGRA~1/OTRS/OTRS/Kernel/System/DB.pm line 253

ERROR: OTRS-otrs.Scheduler-10 Perl: 5.12.3 OS: MSWin32 Time: Thu Jun 6 16:33:42 2013

Message: Access denied for user 'otrs'@'localhost' (using password: YES)

Traceback (6700):

Module: Kernel::System::DB::new (OTRS 3.2.7) Line: 224

Module: main::_CommonObjects (unknown version) Line: 607

Module: d:/PROGRA~1/OTRS/OTRS/bin/otrs.Scheduler4win.pl (unknown version) Line: 179

Got no DBObject! at d:/PROGRA~1/OTRS/OTRS/Kernel/System/PID.pm line 78.

解決步驟如下:

1. 創建mysql的表

C:\Documents and Settings\yuechaotian>mysql -u root -p otrs < "D:\Program Files\OTRS\OTRS\scripts\database\otrs-schema.mysql.sql"

Enter password:

C:\Documents and Settings\yuechaotian>mysql -u root -p otrs < "D:\Program Files\OTRS\OTRS\scripts\database\otrs-initial_insert.mysql.sql"

Enter password:

C:\Documents and Settings\yuechaotian>mysql -u root -p otrs < "D:\Program Files\OTRS\OTRS\scripts\database\otrs-schema-post.mysql.sql"

Enter password:

2. 修改otrs的Config.pm中數據庫的連接

# ---------------------------------------------------- #

# database settings #

# ---------------------------------------------------- #

# The database host

$Self->{DatabaseHost} = 'localhost';

# The database name

$Self->{Database} = 'otrs';

# The database user

$Self->{DatabaseUser} = 'root';

# The password of database user. You also can use bin/otrs.CryptPassword.pl

# for crypted passwords

$Self->{DatabasePw} = '';

3. 修改OTRS中apache的ServerName

D:\Program Files\OTRS\Apache\conf\httpd.conf

ServerName :80

4. 重啟成功

C:\>"D:\Program Files\OTRS\otrs4win\Scripts\OTRSServicesRestart.bat"

Cron Service (CRONw) 服務正在停止.

Cron Service (CRONw) 服務已成功停止。

The Apache2.2 service is not started.

MySQL 服務正在停止..

MySQL 服務已成功停止。

MySQL 服務正在啟動 .

MySQL 服務已經啟動成功。

Writing to d:/PROGRA~1/OTRS/CRONw/crontab.txt...

Done.

Cron Service (CRONw) 服務正在啟動 .

Cron Service (CRONw) 服務已經啟動成功。

其中(1)和(2)參考這里,(3)參考這里。

總結

以上是生活随笔為你收集整理的otrs安装mysql_OTRS安装与配置的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。