{"id":19,"date":"2014-03-09T18:56:14","date_gmt":"2014-03-09T17:56:14","guid":{"rendered":"https:\/\/x2d2.de\/blog\/?p=19"},"modified":"2015-02-24T22:18:39","modified_gmt":"2015-02-24T21:18:39","slug":"owncloud-6-0-2-migration-von-sqlite-zu-mysql","status":"publish","type":"post","link":"https:\/\/x2d2.de\/blog\/index.php\/2014\/03\/09\/owncloud-6-0-2-migration-von-sqlite-zu-mysql\/","title":{"rendered":"ownCloud 6.0.2 Migration von SQLite zu MySQL"},"content":{"rendered":"<p>Dies ist eine Anleitung um ownCloud 6.0.2 von SQLite nach MySQL zu migrieren<\/p>\n<p><strong>!!!ACHTUNG!!!<\/strong><\/p>\n<p><strong>ES KOMMT BEI DER MIGRATION ZU SONDERZEICHEN PROBLEMEN!<\/strong><\/p>\n<p>Ihr k\u00f6nnt aber folgendes Tool von mir ausprobieren: <a title=\"DB - Migrator\" href=\"https:\/\/x2d2.de\/rhodecode\/db-migrator\/archive\/tip.zip\">DB-Migrator<\/a> (lauff\u00e4hig, aber nicht getestet)<\/p>\n<hr \/>\n<p><strong><span style=\"color: #ff0000;\">AB OWNCLOUD 7 K\u00d6NNT IHR DIREKT \u00dcBER CLI EINEN MIGRATIONSPROZESS ANSTO\u00dfEN, DER BEI MIR PERFEKT FUNKTIONIERT HAT.<\/span><\/strong><\/p>\n<ul>\n<li>&#8220;php \/var\/www\/owncloud\/occ db:convert-type &#8211;help&#8221; sollte euch dabei helfen<\/li>\n<\/ul>\n<hr \/>\n<p>Schritt 1.) Backup der config.php erstellen<\/p>\n<p>Schritt 2.) \u00fcber taps die Datenbank \u00fcbertragen:<\/p>\n<ul>\n<li>taps server sqlite:\/\/\/var\/www\/owncloud\/data\/owncloud.db temp temp<\/li>\n<\/ul>\n<blockquote>\n<ul>\n<li>sqlite = Quell-Datenbank<\/li>\n<li>\/var\/www\/owncloud = Hauptpfad von owncloud<\/li>\n<li>owncloud.db = Quell-Datenbankdatei<\/li>\n<li>1. temp = Benutzername<\/li>\n<li>2. temp = Passwort<\/li>\n<\/ul>\n<\/blockquote>\n<ul>\n<li>taps pull mysql:\/\/user:passwort@localhost\/owncloud http:\/\/temp:temp@localhost:5000<\/li>\n<\/ul>\n<blockquote>\n<ul>\n<li>mysql = Ziel-Datenbank Server<\/li>\n<li>user = Datenbank Benutzer der Ziel-Datenbank<\/li>\n<li>passwort = Datenbank Passwort des Benutzers der Ziel-Datenbank<\/li>\n<li>localhost = Host auf dem die Ziel-Datenbank l\u00e4uft (lokaler Computer)<\/li>\n<li>owncloud = Ziel-Datenbank Name<\/li>\n<li>1. temp = Benutzer \u00fcber den taps auf die andere taps instanz zugreifen kann<\/li>\n<li>2. temp = Passwort \u00fcber den taps auf die andere taps instanz zugreifen kann<\/li>\n<li>localhost = Host auf dem die andere taps instanz l\u00e4uft (lokaler Computer)<\/li>\n<li>5000 = Port der anderen taps Instanz<\/li>\n<\/ul>\n<\/blockquote>\n<p>Schritt 3.) config Einstellungen f\u00fcr mysql in die config.php eintragen:<\/p>\n<ul>\n<li>&#8216;dbtype&#8217; =&gt; &#8216;mysql&#8217;,<br \/>\n&#8216;dbname&#8217; =&gt; &#8216;owncloud&#8217;,<br \/>\n&#8216;dbuser&#8217; =&gt; &#8216;owncloud&#8217;,<br \/>\n&#8216;dbpassword&#8217; =&gt; &#8216;xxx&#8217;,<br \/>\n&#8216;dbhost&#8217; =&gt; &#8216;localhost&#8217;,<br \/>\n&#8216;dbtableprefix&#8217; =&gt; &#8216;oc_&#8217;,<\/li>\n<li>den dbtype sqlite m\u00fcsst ihr l\u00f6schen<\/li>\n<\/ul>\n<p>Schritt 4.) in der OwnCloud Installation anmelden und testen<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dies ist eine Anleitung um ownCloud 6.0.2 von SQLite nach MySQL zu migrieren !!!ACHTUNG!!! ES KOMMT BEI DER MIGRATION ZU SONDERZEICHEN PROBLEMEN! Ihr k\u00f6nnt aber folgendes Tool von mir ausprobieren: DB-Migrator (lauff\u00e4hig, aber nicht getestet) AB OWNCLOUD 7 K\u00d6NNT IHR DIREKT \u00dcBER CLI EINEN MIGRATIONSPROZESS ANSTO\u00dfEN, DER BEI MIR PERFEKT FUNKTIONIERT HAT. &#8220;php \/var\/www\/owncloud\/occ db:convert-type [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[6,4,3,5],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-datenbanken","tag-migration","tag-mysql","tag-owncloud","tag-sqlite"],"_links":{"self":[{"href":"https:\/\/x2d2.de\/blog\/index.php\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/x2d2.de\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/x2d2.de\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/x2d2.de\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/x2d2.de\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":8,"href":"https:\/\/x2d2.de\/blog\/index.php\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":39,"href":"https:\/\/x2d2.de\/blog\/index.php\/wp-json\/wp\/v2\/posts\/19\/revisions\/39"}],"wp:attachment":[{"href":"https:\/\/x2d2.de\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/x2d2.de\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/x2d2.de\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}