[Doubt]What does it do?

Moderator: crythias

Locked
rschirin
Znuny newbie
Posts: 35
Joined: 16 Apr 2012, 18:25
Znuny Version: 3.1.2

[Doubt]What does it do?

Post by rschirin »

Can someone explain me what this code does exactly?

Code: Select all

use Apache::DBI;
Apache::DBI->connect_on_init('DBI:mysql:otrs', 'otrs', 'psw');
use DBI ();
what is apache::dbi?

and this?

Code: Select all

# enable this if you use mysql
#use DBD::mysql ();
#use Kernel::System::DB::mysql;
OTRS 3.1.6 on ubuntu with MySQL
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: [Doubt]What does it do?

Post by jojo »

Hi,

the first code is not 3.1 (it is from older versions)

It loaded the Apache Database Interface for faster persitent connections. It is not needed in 3.1 any more!


The seconed part loads the MySQL Database driver in the memory of the webserver to make it faster.

Both options will only be used if mod_perl is configured
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
rschirin
Znuny newbie
Posts: 35
Joined: 16 Apr 2012, 18:25
Znuny Version: 3.1.2

Re: [Doubt]What does it do?

Post by rschirin »

thank you!so I should use only the second code
OTRS 3.1.6 on ubuntu with MySQL
Locked