Remote configuration of MySQL
Moderator: crythias
-
- Znuny newbie
- Posts: 42
- Joined: 13 Jan 2011, 09:40
- Znuny Version: 3.04
Remote configuration of MySQL
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.
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.
-
- 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
sure you can!
look at your Config.pm and you'll find the parameters:
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
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
-
- Znuny newbie
- Posts: 42
- Joined: 13 Jan 2011, 09:40
- Znuny Version: 3.04
Re: Remote configuration of MySQL
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};";
$Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";
-
- 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
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';
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
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
-
- Znuny newbie
- Posts: 42
- Joined: 13 Jan 2011, 09:40
- Znuny Version: 3.04
Re: Remote configuration of MySQL
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?
-
- 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
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
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
-
- Znuny newbie
- Posts: 42
- Joined: 13 Jan 2011, 09:40
- Znuny Version: 3.04
Re: Remote configuration of MySQL
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?
-
- 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
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
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
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
-
- Znuny newbie
- Posts: 42
- Joined: 13 Jan 2011, 09:40
- Znuny Version: 3.04
Re: Remote configuration of MySQL
perfect, thanks a ton. i didn't realize of specifying server2 as database server while installing otrs db in the first instance.
-
- Znuny newbie
- Posts: 2
- Joined: 27 Jul 2011, 08:21
- Znuny Version: 12
- Real Name: hariprasaadh
- Company: cegonsoft
Re: Remote configuration of MySQL
I want the complete tutorials about mysql.can any one post it..
-
- Znuny expert
- Posts: 250
- Joined: 12 Oct 2010, 01:35
- Znuny Version: 3.0.9
- Company: LRS Health
Re: Remote configuration of MySQL
Sure! They all can be found right here!hariprasaadh wrote:I want the complete tutorials about mysql.can any one post it..
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

[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
-
- Znuny newbie
- Posts: 2
- Joined: 27 Jul 2011, 08:21
- Znuny Version: 12
- Real Name: hariprasaadh
- Company: cegonsoft
Re: Remote configuration of MySQL
thanks for your posting.i want to learn adobe flash.do you have any tutorials like this.