{"id":2181,"date":"2014-07-12T09:34:52","date_gmt":"2014-07-12T03:34:52","guid":{"rendered":"http:\/\/blog.amigas.ru\/?p=2181"},"modified":"2014-07-14T16:42:48","modified_gmt":"2014-07-14T10:42:48","slug":"perexod-s-mysql-5-1-na-mysq-l5-5","status":"publish","type":"post","link":"http:\/\/blog.amigas.ru\/?p=2181","title":{"rendered":"\u041f\u0435\u0440\u0435\u0445\u043e\u0434 \u0441 mysql 5.1 \u043d\u0430 mysq l5.5"},"content":{"rendered":"<p>\u0420\u0435\u0448\u0438\u043b \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u0442\u044c \u043d\u0430 mysql server 5.5 \u0442\u043a \u0441\u0447\u0438\u0442\u0430\u044e \u0447\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u043e \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u043d\u0435 \u043e\u0433\u0440\u0435\u0431\u0430\u044f \u043a\u0443\u0447\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c.<br \/>\n\u041d\u0430\u0447\u043d\u0451\u043c.<br \/>\n<code>1. \u0414\u0435\u043b\u0430\u0435\u043c \u0431\u044d\u043a\u0430\u043f \u0432\u0441\u0435\u0445 \u0431\u0430\u0437<br \/>\nmysqldump --all-databases > alldb.sql<br \/>\n2. \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c mysql<br \/>\nmysqladmin shutdown<br \/>\n3. \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0441\u0442\u0430\u0440\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e<br \/>\ncd \/usr\/ports\/databases\/mysql51-server<br \/>\nmake deinstall clean<br \/>\ncd \/usr\/ports\/databases\/mysql51-client<br \/>\nmake deinstall clean<br \/>\n4. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e<br \/>\ncd \/usr\/ports\/databases\/mysql55-server<br \/>\n5. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c<br \/>\n\/usr\/local\/etc\/rc.d\/mysql-server start<br \/>\n6. \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0431\u0430\u0437\u044b<br \/>\nmysql -uroot -ppassword < alldb.sql\n7. \u0414\u0435\u043b\u0430\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\nmysql_upgrade<\/code><br \/>\n\u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451. \u041e\u0431\u043d\u043e\u0432\u0438\u043b \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0430 \u0434\u0432\u0443\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445. \u0412\u0441\u0451 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u043e\u0441\u044c \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0420\u0435\u0448\u0438\u043b \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u0442\u044c \u043d\u0430 mysql server 5.5 \u0442\u043a \u0441\u0447\u0438\u0442\u0430\u044e \u0447\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u043e \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u0433\u0434\u0430 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u043d\u0435 \u043e\u0433\u0440\u0435\u0431\u0430\u044f \u043a\u0443\u0447\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c. \u041d\u0430\u0447\u043d\u0451\u043c. 1. \u0414\u0435\u043b\u0430\u0435\u043c \u0431\u044d\u043a\u0430\u043f \u0432\u0441\u0435\u0445 \u0431\u0430\u0437 mysqldump &#8212;all-databases > alldb.sql 2. \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c mysql mysqladmin shutdown 3. \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0441\u0442\u0430\u0440\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e cd \/usr\/ports\/databases\/mysql51-server make deinstall clean cd \/usr\/ports\/databases\/mysql51-client make deinstall clean 4. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[131],"tags":[149,132,61],"class_list":["post-2181","post","type-post","status-publish","format-standard","hentry","category-database","tag-freebsd","tag-mysql","tag-obnovlenie"],"views":804,"_links":{"self":[{"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/posts\/2181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2181"}],"version-history":[{"count":0,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=\/wp\/v2\/posts\/2181\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2181"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.amigas.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}