Remote configuration of MySQL

Moderator: crythias

Locked
fondofotrs
Znuny newbie
Posts: 42
Joined: 13 Jan 2011, 09:40
Znuny Version: 3.04

Remote configuration of MySQL

Post by fondofotrs »

hi,

is it possible to install mysql on remote system and access it from a system where we have OTRS and apache? has anybody done it? can someone share high level view or steps to configure OTRS with remote mysql ? i am referring to installing otrs for the first time by having its MySQL database installed remotely.

TIA.
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Remote configuration of MySQL

Post by Wolfgangf »

sure you can!

look at your Config.pm and you'll find the parameters:

Code: Select all

$Self->{DatabaseHost} = 'localhost';
# Database
# (The database name.)
$Self->{Database} = 'otrs';
# DatabaseUser
# (The database user.)
$Self->{DatabaseUser} = 'otrs';
$Self->{DatabasePw} = 'some-pass';
# DatabaseDSN
# (The database DSN for MySQL ==> more: "man DBD::mysql")
$Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};"; 
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
fondofotrs
Znuny newbie
Posts: 42
Joined: 13 Jan 2011, 09:40
Znuny Version: 3.04

Re: Remote configuration of MySQL

Post by fondofotrs »

thanks a ton Wolfgangf. if i mention dataabase DSN, database name and host ip address for the below fields{DatabaseDSN}, {Database} and {DatabaseHost}, that should work. right?

$Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Remote configuration of MySQL

Post by Wolfgangf »

exactly!

I only change this four settings to my remote mySql database and it worked just find

$Self->{DatabaseHost} = 'localhost';
$Self->{Database} = 'otrs';
$Self->{DatabaseUser} = 'otrs';
$Self->{DatabasePw} = 'some-pass';
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
fondofotrs
Znuny newbie
Posts: 42
Joined: 13 Jan 2011, 09:40
Znuny Version: 3.04

Re: Remote configuration of MySQL

Post by fondofotrs »

Excellent. thank you. i think that otrs and apache can reside on one system while mysql can be separately installed on other system. am i right?
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Remote configuration of MySQL

Post by Wolfgangf »

exactly
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
fondofotrs
Znuny newbie
Posts: 42
Joined: 13 Jan 2011, 09:40
Znuny Version: 3.04

Re: Remote configuration of MySQL

Post by fondofotrs »

initially, i was thinking to install otrs completely (including apache and mysql) on the same server, install a separate remote mysql server and then change it appropriately in config.pm. but now i am thinking that i can just untar the otrs on first server, install apache and then install mysql on remote server. after this change config.pm appropriately. this way, i don't need to install mysql twice. wolfgangf, can you let me know which method you had tried please?
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Remote configuration of MySQL

Post by Wolfgangf »

you can do it like this:

Server 1: otrs + apache
Server 2: mySql

start the installation procedure; on the web-installer, take server 2 as database server (make sure server 1 has rights to access)

Myself, i splitted up database and apache after having OTRS running for 2 year, so i install Mysql on a seperate server, exported the database from server 1, imported in server2, made sure server1 can access mysql on server2 and changed Config.pm as stated earlier
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
fondofotrs
Znuny newbie
Posts: 42
Joined: 13 Jan 2011, 09:40
Znuny Version: 3.04

Re: Remote configuration of MySQL

Post by fondofotrs »

perfect, thanks a ton. i didn't realize of specifying server2 as database server while installing otrs db in the first instance.
hariprasaadh
Znuny newbie
Posts: 2
Joined: 27 Jul 2011, 08:21
Znuny Version: 12
Real Name: hariprasaadh
Company: cegonsoft

Re: Remote configuration of MySQL

Post by hariprasaadh »

I want the complete tutorials about mysql.can any one post it..
MichaelR
Znuny expert
Posts: 250
Joined: 12 Oct 2010, 01:35
Znuny Version: 3.0.9
Company: LRS Health

Re: Remote configuration of MySQL

Post by MichaelR »

hariprasaadh wrote:I want the complete tutorials about mysql.can any one post it..
Sure! They all can be found right here!

http://lmgtfy.com/?q=mysql+tutorials
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks :)
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
hariprasaadh
Znuny newbie
Posts: 2
Joined: 27 Jul 2011, 08:21
Znuny Version: 12
Real Name: hariprasaadh
Company: cegonsoft

Re: Remote configuration of MySQL

Post by hariprasaadh »

thanks for your posting.i want to learn adobe flash.do you have any tutorials like this.
Locked