Serverumzug auf Ubuntu 16.04

tomnick

Member
Liebe Forumgemeinde,

möchte gern vom https://www.howtoforge.com/perfect-...2-php-mysql-pureftpd-bind-dovecot-ispconfig-3 auf https://www.howtoforge.com/perfect-...2-php-mysql-pureftpd-bind-dovecot-ispconfig-3 umziehen. Leider habe bei dem Kopieren der mysql Datenbank dbispconfig Probleme. Exportieren über phpadmin, keine Problem aber beim Import kommt folgender Fehler:
Code:
SQL-Befehl:

CREATE TABLE IF NOT EXISTS `aps_instances` (
  `id` int(4) NOT NULL AUTO_INCREMENT,
  `sys_userid` int(11) unsigned NOT NULL DEFAULT '0',
  `sys_groupid` int(11) unsigned NOT NULL DEFAULT '0',
  `sys_perm_user` varchar(5) DEFAULT NULL,
  `sys_perm_group` varchar(5) DEFAULT NULL,
  `sys_perm_other` varchar(5) DEFAULT NULL,
  `server_id` int(11) NOT NULL DEFAULT '0',
  `customer_id` int(4) NOT NULL DEFAULT '0',
  `package_id` int(4) NOT NULL DEFAULT '0',
  `instance_status` int(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1

MySQL meldet: Dokumentation
#1046 - No database selected

Kann damit jemand etwas anfangen?

Vielen Dank für etwas Hilfe
 

Till

Administrator
Du musst in phpmyadmin erst in die dbispconfig datenbank gehen und dann dort den sql dump importieren.
 

tomnick

Member
Hi Till, ja habe ich gemacht, dann kommt aber:

Code:
Fehler

SQL-Befehl:

INSERT INTO `aps_packages` (`id`, `path`, `name`, `category`, `version`, `release`, `package_url`, `package_status`) VALUES
(1, 'tikiwiki-10.2-2.app.zip', 'tikiwiki', 'Collaboration/Portal', '10.2', 2, 'http://apscatalog.com/1/info.tikiwiki.org/tikiwiki/10.2-2.aps?arch=undefined&packager=www.glowtouch.com&os=undefined&platform=undefined', 2),
(2, 'SugarCRM-6.5.13-1.app.zip', 'SugarCRM', 'Back office/Customer Relationship Management', '6.5.13', 1, 'http://apscatalog.com/1/www.sugarcrm.com/SugarCRM/6.5.13-1.aps?arch=undefined&packager=www.sofcloudit.com&os=undefined&platform=undefined', 2),
(3, 'AjaxChat-0.8.3-3.app.zip', 'AjaxChat', 'Collaboration/Chat', '0.8.3', 3, 'http://apscatalog.com/1/blueimp.net/AjaxChat/0.8.3-3.aps?arch=undefined&packager=www.softec-internet.com&os=undefined&platform=undefined', 2),
(4, 'Prestashop-1.4.6.2-5.app.zip', 'Prestashop', 'Web/E-commerce', '1.4.6.2', 5, 'http://apscatalog.com/1/www.prestashop.com/Prestashop/1.4.6.2-5.aps?arch=undefined&packager=www.sof[...]

MySQL meldet: Dokumentation
#1062 - Duplicate entry '1' for key 'PRIMARY'
 

nightcode

New Member
Dort gibt es schon einen Eintrag mit der ID 1 (und vmtl auch mehr).
Das Feld ist Unique, das heißt es darf diese ID nur einmal geben.
Entweder Tabelle leeren oder IDs anpassen.
 

tomnick

Member
Problem gelöst, habe Euer Migration Tool benutzt. Eine hervorragende Investition, kann ich nur weiter empfehlen...
 

Werbung

Top