{"id":2706,"date":"2022-03-23T14:07:29","date_gmt":"2022-03-23T05:07:29","guid":{"rendered":"https:\/\/je1sgh.mydns.jp\/?page_id=2706"},"modified":"2022-03-23T14:07:29","modified_gmt":"2022-03-23T05:07:29","slug":"mariadb-installation-on-slackwarearm-15-0","status":"publish","type":"page","link":"https:\/\/je1sgh.mydns.jp\/?page_id=2706","title":{"rendered":"MariaDB installation on SlackwareARM 15.0"},"content":{"rendered":"\n<p><a href=\"https:\/\/je1sgh.mydns.jp\/?page_id=1110\" data-type=\"page\" data-id=\"1110\">Tech<\/a> &gt; <a href=\"https:\/\/je1sgh.mydns.jp\/?page_id=2679\" data-type=\"page\" data-id=\"2679\">SlackwareARM<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u57fa\u672c<\/h2>\n\n\n\n<p>SlackwareARM\u306b\u9650\u3089\u305a\uff0cSlackware (x86), Slackware64\u3067\u3082\u5171\u901a\u3060\u3068\u601d\u3044\u307e\u3059\uff0eSlackware\u7684\u306b\u5168\u90e8<strong>root<\/strong>\u3067\u4f5c\u696d\u3057\u307e\u3059\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql_install_db<\/pre>\n\n\n\n<p>\u6b21\u306b\uff0c<code>\/var\/lib\/mysql<\/code>\u5185\u306e\u6240\u6709\u8005\u3092\u5168\u90e8<code>mysql:mysql<\/code>\u306b\u3057\u3066\u304a\u304d\u307e\u3059\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chown -Rv mysql:mysql \/var\/lib\/mysql<\/pre>\n\n\n\n<p>\u305d\u3057\u3066\uff0cSlackware\u306e\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u3057\u3066\uff0c\u30c7\u30fc\u30e2\u30f3\u3082\u7acb\u3061\u4e0a\u3052\u307e\u3059\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chmod -v a+x \/etc\/rc.d\/rc.mysqld\n\/etc\/rc.d\/rc.mysqld  start<\/pre>\n\n\n\n<p>\u3055\u3089\u306b\uff0c\u5927\u7518\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u3092\u4fee\u6b63\u3057\u307e\u3059\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql_secure_installation<\/pre>\n\n\n\n<p>\u307e\u305f\uff0cSlackware\u306e\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u307e\u307e\u3060\u3068\u30cd\u30c3\u30c8\u8d8a\u3057\u306b\u63a5\u7d9a\u3067\u304d\u307e\u305b\u3093\u306e\u3067\uff0c<code>\/etc\/rc.d\/rc.mysqld<\/code>\u5185\u306e<code>SKIP<\/code>\u306e\u5b9a\u7fa9\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u307e\u3059\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># SKIP=\"--skip-networking\"<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u79fb\u8ee2<\/h2>\n\n\n\n<p>\u307e\u3042\uff0c\u666e\u901a\u306f\u65b0\u3057\u3044\u30de\u30b7\u30f3\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u52d5\u304b\u3057\u306f\u3058\u3081\u3066\uff0c\u30bc\u30ed\u304b\u3089\u30c7\u30fc\u30bf\u3092\u5165\u308c\u3066\u3044\u304f\u3063\u3066\u3053\u3068\u306f\u306a\u3044\u3067\u3057\u3087\u3046\uff0e\u3069\u3053\u304b\u3067\u52d5\u3044\u3066\u3044\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u79fb\u8ee2\u3059\u308b\u304b\u30b3\u30d4\u30fc\u3059\u308b\u304b\u3057\u307e\u3059\uff0e<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d0\u30a4\u30ca\u30ea\u30fc\u3067\u30b3\u30d4\u30fc\u3057\u3066\u307f\u308b<\/h3>\n\n\n\n<p>\u3053\u308c\u304c\u3046\u307e\u304f\u3044\u304f\u3068\uff0c\u697d\u3060\u3057\u5b8c\u74a7\u306a\u30af\u30ed\u30fc\u30cb\u30f3\u30b0\u304c\u3067\u304d\u307e\u3059\uff0e\u30b3\u30d4\u30fc\u5143\u3068\uff0c\u30b3\u30d4\u30fc\u5148\uff08\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4f5c\u696d\u4e2d\u306eWS\uff09\u306e\u4e21\u65b9\u306e<code>mysql<\/code>\u30c7\u30fc\u30e2\u30f3\u3092\u305d\u308c\u305e\u308c<code>root<\/code>\u6a29\u9650\u3067\uff0c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/etc\/rc.d\/rc.mysqld stop<\/pre>\n\n\n\n<p>\u3068\u3057\u3066\u6b62\u3081\u307e\u3059\uff0e\u305d\u308c\u3067\uff0ctar\u3067\u3082\uff0crsync\u3067\u3082\u3044\u3044\u304b\u3089\uff0c\u30d0\u30a4\u30ca\u30ea\u30fc\u3067\/var\/lib\/mysql\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u3054\u3068\uff0c\u30b3\u30d4\u30fc\u5148\u306b\u79fb\u3057\u3066\u5c55\u958b\u3057\u307e\u3059\uff0e<\/p>\n\n\n\n<p>rsync\u3067\u30af\u30ed\u30fc\u30cb\u30f3\u30b0\u3057\u3066\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\uff0e\u3042\u3068\u3042\u3068\u66f4\u65b0\u3055\u308c\u305f\u30b3\u30d4\u30fc\u5143\u306b\u8ffd\u3044\u3064\u304f\u305f\u3081\u306b\uff0crsync\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u3063\u3066\u304a\u304f\u306e\u304c\u4e00\u756a\u826f\u3044\u3068\u601d\u3044\u307e\u3059\uff0e<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u3053\u3093\u306a\u611f\u3058\u3067\u3059\uff0e<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#!\/bin\/sh\ncd \/var\/lib\/mysql\nrsync -artlvd --delete remote.host:\/var\/lib\/mysql\/ .<\/pre>\n\n\n\n<p>\u30b7\u30f3\u30d7\u30eb\u306b\u3057\u3066\u307e\u3059\u304c\uff0c\u9aa8\u683c\u306f\u3053\u3093\u306a\u3082\u3093\u3067\u3059\uff0e\u30c6\u30b9\u30c8\u6bb5\u968e\u3067\u306f\uff0c<code>\"-n\"<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b\u3053\u3068\u3092\u304a\u85a6\u3081\u3057\u307e\u3059\ud83d\ude13 \u307e\u305f\uff0c<code>root<\/code>\u3067\uff0c\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3057\u3067\u30b3\u30d4\u30fc\u5143\u30db\u30b9\u30c8\u306e<code>root<\/code>\u306b<code>ssh<\/code>\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b<code>id_rsa.pub<\/code>\u3092<code>authenticate_users<\/code>\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304f\u306e\u304c\u697d\u3067\u3059\uff0e<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6b63\u653b\u6cd5\u3067\u30b3\u30d4\u30fc<\/h3>\n\n\n\n<p>Plan B\u3067\u3059\uff0e<\/p>\n\n\n\n<p>\u53ef\u8aad\u30c6\u30ad\u30b9\u30c8\u306bexport\u3057\u3066\uff0c\u30b3\u30d4\u30fc\u5148\u3067import\u3059\u308b\u306e\u304c\uff0c\u4e00\u756a\u307e\u3068\u3082\u306a\u65b9\u6cd5\u3060\u3068\u601d\u3044\u307e\u3059\uff0e\u3067\u3059\u304c\uff0c\u30d0\u30a4\u30ca\u30ea\u30fc\u306e\u30b3\u30d4\u30fc\u3067\u3046\u307e\u304f\u3044\u3063\u305f\u306e\u3067\u8a66\u3057\u307e\u305b\u3093\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tech &gt; SlackwareARM \u57fa\u672c SlackwareARM\u306b\u9650\u3089\u305a\uff0cSlackware (x86), Slackware64\u3067\u3082\u5171\u901a\u3060\u3068\u601d\u3044\u307e\u3059\uff0eSlackware\u7684\u306b\u5168\u90e8root\u3067\u4f5c\u696d\u3057\u307e\u3059\uff0e mysql_install_db \u6b21\u306b\uff0c\/var\/lib\/mysql\u5185\u306e\u6240\u6709\u8005\u3092\u5168\u90e8mysql:mysql\u306b\u3057\u3066\u304a\u304d\u307e\u3059\uff0e chown -Rv mysql:mysql \/var\/lib\/mysql \u305d\u3057\u3066\uff0cSlackware\u306e\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u3057\u3066\uff0c\u30c7\u30fc\u30e2\u30f3\u3082\u7acb\u3061\u4e0a\u3052\u307e\u3059\uff0e chmod -v a+x \/etc\/rc.d\/rc.mysqld \/etc\/rc.d\/rc.mysqld start \u3055\u3089\u306b\uff0c\u5927\u7518\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u3092\u4fee\u6b63\u3057\u307e\u3059\uff0e mysql_secure_installation \u307e\u305f\uff0cSlackware\u306e\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u307e\u307e\u3060\u3068\u30cd\u30c3\u30c8\u8d8a\u3057\u306b\u63a5\u7d9a\u3067\u304d\u307e\u305b\u3093\u306e\u3067\uff0c\/etc\/rc.d\/rc.mysqld\u5185\u306eSKIP\u306e\u5b9a\u7fa9\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u307e\u3059\uff0e # SKIP=&#8221;&#8211;skip-networking&#8221; \u79fb\u8ee2 \u307e\u3042\uff0c\u666e\u901a\u306f\u65b0\u3057\u3044\u30de\u30b7\u30f3\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u52d5\u304b\u3057\u306f\u3058\u3081\u3066\uff0c\u30bc\u30ed\u304b\u3089\u30c7\u30fc\u30bf\u3092\u5165\u308c\u3066\u3044\u304f\u3063\u3066\u3053\u3068\u306f\u306a\u3044\u3067\u3057\u3087\u3046\uff0e\u3069\u3053\u304b\u3067\u52d5\u3044\u3066\u3044\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u79fb\u8ee2\u3059\u308b\u304b\u30b3\u30d4\u30fc\u3059\u308b\u304b\u3057\u307e\u3059\uff0e \u30d0\u30a4\u30ca\u30ea\u30fc\u3067\u30b3\u30d4\u30fc\u3057\u3066\u307f\u308b \u3053\u308c\u304c\u3046\u307e\u304f\u3044\u304f\u3068\uff0c\u697d\u3060\u3057\u5b8c\u74a7\u306a\u30af\u30ed\u30fc\u30cb\u30f3\u30b0\u304c\u3067\u304d\u307e\u3059\uff0e\u30b3\u30d4\u30fc\u5143\u3068\uff0c\u30b3\u30d4\u30fc\u5148\uff08\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4f5c\u696d\u4e2d\u306eWS\uff09\u306e\u4e21\u65b9\u306emysql\u30c7\u30fc\u30e2\u30f3\u3092\u305d\u308c\u305e\u308croot\u6a29\u9650\u3067\uff0c \/etc\/rc.d\/rc.mysqld stop \u3068\u3057\u3066\u6b62\u3081\u307e\u3059\uff0e\u305d\u308c\u3067\uff0ctar\u3067\u3082\uff0crsync\u3067\u3082\u3044\u3044\u304b\u3089\uff0c\u30d0\u30a4\u30ca\u30ea\u30fc\u3067\/var\/lib\/mysql\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u3054\u3068\uff0c\u30b3\u30d4\u30fc\u5148\u306b\u79fb\u3057\u3066\u5c55\u958b\u3057\u307e\u3059\uff0e rsync\u3067\u30af\u30ed\u30fc\u30cb\u30f3\u30b0\u3057\u3066\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\uff0e\u3042\u3068\u3042\u3068\u66f4\u65b0\u3055\u308c\u305f\u30b3\u30d4\u30fc\u5143\u306b\u8ffd\u3044\u3064\u304f\u305f\u3081\u306b\uff0crsync\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u3063\u3066\u304a\u304f\u306e\u304c\u4e00\u756a\u826f\u3044\u3068\u601d\u3044\u307e\u3059\uff0e \u4f8b\u3048\u3070\u3053\u3093\u306a\u611f\u3058\u3067\u3059\uff0e #!\/bin\/sh cd \/var\/lib\/mysql rsync -artlvd &#8211;delete remote.host:\/var\/lib\/mysql\/ . \u30b7\u30f3\u30d7\u30eb\u306b\u3057\u3066\u307e\u3059\u304c\uff0c\u9aa8\u683c\u306f\u3053\u3093\u306a\u3082\u3093\u3067\u3059\uff0e\u30c6\u30b9\u30c8\u6bb5\u968e\u3067\u306f\uff0c&#8221;-n&#8221;\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b\u3053\u3068\u3092\u304a\u85a6\u3081\u3057\u307e\u3059\ud83d\ude13 \u307e\u305f\uff0croot\u3067\uff0c\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3057\u3067\u30b3\u30d4\u30fc\u5143\u30db\u30b9\u30c8\u306eroot\u306bssh\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306bid_rsa.pub\u3092authenticate_users\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304f\u306e\u304c\u697d\u3067\u3059\uff0e \u6b63\u653b\u6cd5\u3067\u30b3\u30d4\u30fc Plan B\u3067\u3059\uff0e \u53ef\u8aad\u30c6\u30ad\u30b9\u30c8\u306bexport\u3057\u3066\uff0c\u30b3\u30d4\u30fc\u5148\u3067import\u3059\u308b\u306e\u304c\uff0c\u4e00\u756a\u307e\u3068\u3082\u306a\u65b9\u6cd5\u3060\u3068\u601d\u3044\u307e\u3059\uff0e\u3067\u3059\u304c\uff0c\u30d0\u30a4\u30ca\u30ea\u30fc\u306e\u30b3\u30d4\u30fc\u3067\u3046\u307e\u304f\u3044\u3063\u305f\u306e\u3067\u8a66\u3057\u307e\u305b\u3093\uff0e<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2679,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2706","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=\/wp\/v2\/pages\/2706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2706"}],"version-history":[{"count":0,"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=\/wp\/v2\/pages\/2706\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=\/wp\/v2\/pages\/2679"}],"wp:attachment":[{"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}