[SOLVED]Can I use an existing DB into installation´s phase?

Moderator: crythias

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

[SOLVED]Can I use an existing DB into installation´s phase?

Post by rschirin »

as I say into the title, if I have an existing mysql DB, can I specify it(and the admin user) during the installation? or I have to create a new DB?
Last edited by rschirin on 23 Jun 2012, 17:09, edited 1 time in total.
OTRS 3.1.6 on ubuntu with MySQL
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Can I use an existing DB into installation´s phase?

Post by crythias »

If you have an existing db, you probably do not want to do an install, as it may drop your tables.

inbefore "But how ..." just make the new tables and then change Config.pm to point to the old data.

Also, your old data may need to be converted to the version being installed. Check upgrading documentation for the installed version.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
rschirin
Znuny newbie
Posts: 35
Joined: 16 Apr 2012, 18:25
Znuny Version: 3.1.2

Re: Can I use an existing DB into installation´s phase?

Post by rschirin »

My Db is empty. I want only that OTRS will work on it. I don need to drop any data.
if, during installation, I use the name of my Db what will happen?
OTRS 3.1.6 on ubuntu with MySQL
rschirin
Znuny newbie
Posts: 35
Joined: 16 Apr 2012, 18:25
Znuny Version: 3.1.2

Re: Can I use an existing DB into installation´s phase?

Post by rschirin »

can someone help me?
if during the web installation I insert the existing db´s name, otrs returns me an error

Code: Select all

FALSE :-(---==> Can't create database 'prova'; database exists
so what can I do?
crythias wrote: inbefore "But how ..." just make the new tables and then change Config.pm to point to the old data.
why I have to create a new DB if I have yet an empty DB?
OTRS 3.1.6 on ubuntu with MySQL
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Can I use an existing DB into installation´s phase?

Post by crythias »

Your options:

Create a new database

Delete your current database and use the setup procedures

Ignore the setup procedure and manually import the sql according to the README.database

http://source.otrs.org/viewvc.cgi/otrs/ ... iew=markup

Any particular method will be good enough, but if you're encountering an issue because the setup is not happy with you already having the database, then just do an import.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
rschirin
Znuny newbie
Posts: 35
Joined: 16 Apr 2012, 18:25
Znuny Version: 3.1.2

Re: Can I use an existing DB into installation´s phase?

Post by rschirin »

I used the manually procedures. :)

now, imagine that I start from the beginning, configure manually the db and don´t use web installer. at last, is root@localhost user set automatically?
OTRS 3.1.6 on ubuntu with MySQL
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Can I use an existing DB into installation´s phase?

Post by crythias »

Yes, and you can verify from the sql user table .. or view viewtopic.php?f=62&t=9101
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked