Does the script OTRSCloneDB work if I use MySQL or MS SQL ? Or should I only use postgresql ?
Thank you.Search found 0 matches: OTSRCloneDB
Moderator: crythias
Thank you.Search found 0 matches: OTSRCloneDB
I tried all versions of OTRSCloneDB that the same issue.Backend ERROR: OTRS-CGI-01 Perl: 5.12.3 OS: MSWin32 Time: Fri Oct 30 16:26:49 2015 Message: Sorry, can't install/upgrade package, because the framework version required by the package (5.0.x;) does not match your Framework (3.1.11)! Traceback (1344): Module: Kernel::System::Package::_CheckFramework (v1.130.2.5) Line: 2229 Module: Kernel::System::Package::PackageInstall (v1.130.2.5) Line: 416 Module: Kernel::Modules::AdminPackageManager::_InstallHandling (v1.108) Line: 1483 Module: Kernel::Modules::AdminPackageManager::Run (v1.108) Line: 1050 Module: Kernel::System::Web::InterfaceAgent::Run (v1.64) Line: 868 Module: ModPerl::ROOT::ModPerl::Registry::D_3a_OTRS_OTRS_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 46 Module: (eval) (v1.90) Line: 204 Module: ModPerl::RegistryCooker::run (v1.90) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.90) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31
Right, just mysqldump and mysql restore. Use a popular search engine to determine how to backup and restore a MySQL database.Sayannara wrote:As I have a mysql database (hallelujah) I don't need OTRSCloneDB right ?
I've already addressed this. Install your next OTRS upgrade step on the destination (If your Windows is 3.1.x, install 3.2.latest on Linux), then restore the database on Linux. Follow the instructions in the Upgrading steps for the other files to copy from Source (Windows) and run the database migration steps. Note that if you're running 3.1 it's possible your database tables aren't running InnoDB. If your MySQLdump .sql file of your export has MyISAM all through it, you may want to global search replace and save as something else just to be safe.Sayannara wrote:Updating my Windows installation to 3.1->3.2->3.3 before migrating to Linux is only required if I need OTRSCloneDB ?
If you wanted the same version, install the same version. If you want to upgrade, this question has already been answered.Sayannara wrote:In order to migrate from Windows to Linux, do I need the same version of OTRS for the source and destination ? Or the next release at my destination ?
Code: Select all
bin/otrs.CheckDB.pl
Code: Select all
cat scripts/DBUpdate-to-3.2.mysql.sql | mysql otrs -p -f root -u
Any suggestion ?You will get this message if you're trying to add a constraint with a name that's already used somewhere else
cat filename displays the file (actually, it conCATenates files together, but outputs to the screen by default, as does most linux commands.) But that's just where the output is sent, the pipe | says send it to a command. The equivalent, more or less is to do:Sayannara wrote:I don't even understand the command. Why do we use cat ? Should I understand that we display the file and we sent the content to mysql ?
I'll check and come back.sed -e 's/MyISAM/InnoDB/g' -i '/home/admin/otrs_restore/dump.sql'
Code: Select all
SHOW CREATE TABLE article;
Code: Select all
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 |
It seems all good.... I took a snapshot and I'll try to go further.MariaDB [otrs]> SHOW CREATE TABLE pm_process;
+------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
| pm_process | CREATE TABLE `pm_process` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`entity_id` varchar(50) NOT NULL,
`name` varchar(200) NOT NULL,
`state_entity_id` varchar(50) NOT NULL,
`layout` longblob NOT NULL,
`config` longblob NOT NULL,
`create_time` datetime NOT NULL,
`create_by` int(11) NOT NULL,
`change_time` datetime NOT NULL,
`change_by` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `pm_process_entity_id` (`entity_id`),
KEY `FK_pm_process_create_by_id` (`create_by`),
KEY `FK_pm_process_change_by_id` (`change_by`),
CONSTRAINT `FK_pm_process_change_by_id` FOREIGN KEY (`change_by`) REFERENCES `users` (`id`),
CONSTRAINT `FK_pm_process_create_by_id` FOREIGN KEY (`create_by`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
Code: Select all
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"