{"id":50,"date":"2006-02-15T15:51:44","date_gmt":"2006-02-15T15:51:44","guid":{"rendered":"http:\/\/superficial.name\/?p=50"},"modified":"2006-02-15T15:51:44","modified_gmt":"2006-02-15T15:51:44","slug":"post-50","status":"publish","type":"post","link":"https:\/\/superficial.3724649.net\/?p=50","title":{"rendered":"webmin"},"content":{"rendered":"<p><a href=\"http:\/\/superficial.3724649.net\/wp-content\/uploads\/2006\/02\/webmin.gif\"><img decoding=\"async\" class=\"alignnone size-full wp-image-5406\" src=\"http:\/\/superficial.3724649.net\/wp-content\/uploads\/2006\/02\/webmin.gif\" alt=\"\" width=\"296\" height=\"147\" \/><\/a><\/p>\n<p>MySQL \u306e\u8a2d\u5b9a\u304c\u4eca\u3072\u3068\u3064\u30d4\u30f3\u3068\u6765\u306a\u3044\u306e\u3067\u3001\u8a66\u3057\u306b webmin \u5165\u308c\u3066\u307f\u305f\u3002<br \/>\n\u3053\u308c\u4f7f\u3046\u3068\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u304c\u30e9\u30af\u30c1\u30f3\u306b\u306a\u3063\u3061\u3083\u3046\u306e\u306d\u3093\uff57\uff57<\/p>\n<p>\u3053\u308c\u4f7f\u3063\u3066\u305f\u3089\u624b\u5165\u529b\u3067\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u66f8\u304d\u63db\u3048\u304c\u51fa\u6765\u306a\u304f\u306a\u308a\u305d\u3046\u3067\u6016\u3044\u304b\u3082\u306d\u3002<\/p>\n<p>\u4ee5\u4e0b MySQL \u3068 webmin \u3092 ports \u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806\u3092\u5099\u5fd8\u9332\u3068\u3057\u3066\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\uff08\u3068\u308d\u308a\u3093\u3002\u3061\u3083\u3093 \u4eca\u65e5\u306f\u5b8c\u5168\u306b\u546a\u6587\u3067\u30b4\u30e1\u30f3\uff09<\/p>\n<p>\u30aa\u30e4\u30b8\u306e\u30ed\u30fc\u30ab\u30eb\u3067\u4f7f\u3063\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u306f FreeBSD 5.4R \u3067\u3059\u3002<\/p>\n<p>portinstall databases\/mysql51_server<br \/>\nportinstall \u3092\u4f7f\u3063\u3066 mysql\u306e\u30b5\u30fc\u30d0\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3082\u52dd\u624b\u306b\u5165\u308b<br \/>\n(\uff12\u6708\uff11\uff15\u65e5\u6642\u70b9\u3067 ver 5.1.5\u306e\u03b1\u30d0\u30fc\u30b8\u30e7\u30f3 \u901a\u5e38\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u6700\u65b0\u306f 5.0.8)<\/p>\n<p>root \u306b\u306a\u3063\u3066<br \/>\ncd \/usr\/loca\/bin \u3078\u79fb\u52d5<br \/>\n.\/mysql_install_db \u3092\u5b9f\u884c\u3057\u3066\u521d\u671f\u5316<\/p>\n<p>\u30de\u30cb\u30e5\u30a2\u30eb\u306b\u66f8\u3044\u3066\u3042\u308b<br \/>\n.\/mysqld_safe &#8211;user=mysql &amp;<br \/>\n\u306f Access denied \u3067\u62d2\u5426\u3055\u308c\u308b\u306e\u3067\uff08\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u6b21\u7b2c\u3067\u3059\u304c\uff09<\/p>\n<p>.\/mysqld_safe &#8211;user=root &amp;<br \/>\n\u30eb\u30fc\u30c8\u6a29\u9650\u3067 mysql \u3092\u8d77\u52d5\u3059\u308b<\/p>\n<p>ps -ax | grep mysql \u3067\u52d5\u4f5c\u306e\u78ba\u8a8d<\/p>\n<p>79904 p0 I 0:00.02 \/bin\/sh .\/mysqld_safe &#8211;user=root<br \/>\n79919 p0 S 0:00.50 \/usr\/local\/libexec\/mysqld &#8211;basedir=\/usr\/local &#8211;data<\/p>\n<p>\u52d5\u4f5c\u3057\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u51fa\u6765\u308b<\/p>\n<p>MySQL\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u8ffd\u52a0\u306f GRANT ?? \u3067\u8ffd\u52a0\u3059\u308b\u3089\u3057\u3044\u304c<br \/>\n\u826f\u304f\u5224\u3089\u306a\u3044\u306e\u3067\u697d\u3092\u3057\u3088\u3046\u3068\u8003\u3048\u305f\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\u7d50\u5c40\u6b63\u653b\u6cd5\u304c\u4e00\u756a\u306e\u8fd1\u9053\u3068\u5f8c\u3067\u5224\u308b<\/p>\n<p>\u697d\u3092\u3057\u3088\u3046\u3068 webmin \u3092\u5165\u308c\u3066\u307f\u305f<br \/>\nportinstall sysutils\/webmin<\/p>\n<p>\u3053\u308c\u3060\u3051\u3058\u3083\u52d5\u304b\u3093\u305e\u306a\uff1f<\/p>\n<p>\/usr\/local\/lib\/webmin\/setup.sh \u3092\u5b9f\u884c\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u3089\u3057\u3044<\/p>\n<p>\u9806\u756a\u306b\u8cea\u554f\u3055\u308c\u308b\u304c\u57fa\u672c\u7684\u306b\u30a8\u30f3\u30bf\u30fc\u30ad\u30fc\u3067\uff2f\uff2b<br \/>\n\u5909\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\u306a\u3089 login name(default admin) \u4f4d\u304b\u306a\uff1f<br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5fc5\u9808<\/p>\n<p>\u4f7f\u3046\u6642\u306f\u753b\u50cf\u306e\u3088\u3046\u306b\u30d6\u30e9\u30a6\u30b6\u304b\u3089 https:\/\/\u30b5\u30fc\u30d0\u30fc\u540d:10000\/ \u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306b\u306a\u308b\u306f\u305a<\/p>\n<p>webmin \u8d85\u4fbf\u5229\u3067\u8a2d\u5b9a\u3059\u308b\u306e\u8d85\u7c21\u5358\uff57\uff57<br \/>\n\u3067\u3082\u6016\u3044\uff57\uff57<\/p>\n<p>\u8ffd\u8a18\u3067\u3059\u3002<\/p>\n<p>MySQL \u306e\u30e6\u30fc\u30b6\u30fc\u8ffd\u52a0\u306e\u30b3\u30de\u30f3\u30c9\u306f\u305d\u308c\u7a0b\u96e3\u3057\u304f\u306a\u304b\u3063\u305f\u3063\u3059\uff57\uff57<\/p>\n<p>#mysql -u root \u3067 root \u306b\u306a\u3063\u3066 mysql \u306b\u30a2\u30af\u30bb\u30b9\u5f8c<br \/>\n\uff08mysql&gt; \u306f mysql \u306e\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\uff09<\/p>\n<p>hoge \u3055\u3093\u3092\u30d1\u30b9\u30ef\u30fc\u30c9 password \u3067\u4f55\u3067\u3082\u51fa\u6765\u308b\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u8ffd\u52a0\u3059\u308b\u5834\u5408<\/p>\n<p>localhost \u304b\u3089\u306e\u30ed\u30b0\u30a4\u30f3\u7528<br \/>\nmysql&gt; GRANT ALL PRIVILEGES ON *.* TO hoge@localhost IDENTIFIED BY &#8216;password&#8217; WITH GRANT OPTION;<br \/>\n\uff08\uff11\u884c\u3067\u5165\u529b\u3057\u307e\u3059\u6700\u5f8c\u306e \uff1b \u3092\u5fd8\u308c\u305a\u306b\uff09<\/p>\n<p>\u4f55\u51e6\u3067\u3082\u30db\u30b9\u30c8\u304b\u3089\u306e\u30ed\u30b0\u30a4\u30f3\u7528<br \/>\nmysql&gt; GRANT ALL PRIVILEGES ON *.* TO hoge@&#8221;%&#8221; IDENTIFIED BY &#8216;password&#8217; WITH GRANT OPTION;<\/p>\n<p>\u305d\u306e\u4ed6\u306e\u6a29\u9650\u306e\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u306f\u4ed6\u306e\u30b5\u30a4\u30c8\u3067\u63a2\u3057\u3066\u304f\u3060\u3055\u3044\uff57 \uff08\u51c4\u304f\u4e0d\u89aa\u5207\u3067\u30b9\u30de\u30bd\uff09<\/p>\n<p>mysql&gt; \\\\q \u3067\u8131\u51fa<\/p>\n<p>PostgreSQL \u306e\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089 $createuser<br \/>\n\u306e\u65b9\u304c\u76f4\u611f\u7684\u306b\u5224\u308a\u3084\u3059\u3044\u3068\u601d\u3046\u306e\u306f\u30aa\u30e4\u30b8\u3060\u3051\u304b\u306a\uff1f<br \/>\n\u307e\u3041\u8981\u306f\u6163\u308c\u3067\u3059\u3051\u3069\u30fb\u30fb\u30fb\u30fb<br \/>\npostgre\u3067\u3082 CREATE USER \u3063\u3066\u30b3\u30de\u30f3\u30c9\u306f\u3042\u308b\u3051\u3069\u306d\u30fb\u30fb\u30fb\u30fb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL \u306e\u8a2d\u5b9a\u304c\u4eca\u3072\u3068\u3064\u30d4\u30f3\u3068\u6765\u306a\u3044\u306e\u3067\u3001\u8a66\u3057\u306b webmin \u5165\u308c\u3066\u307f\u305f\u3002 \u3053\u308c\u4f7f\u3046\u3068\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u304c\u30e9\u30af\u30c1\u30f3\u306b\u306a\u3063\u3061\u3083\u3046\u306e\u306d\u3093\uff57\uff57 \u3053\u308c\u4f7f\u3063\u3066\u305f\u3089\u624b\u5165\u529b\u3067\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u66f8\u304d\u63db\u3048\u304c\u51fa\u6765\u306a\u304f\u306a\u308a\u305d\u3046\u3067\u6016\u3044\u304b\u3082\u306d\u3002 \u4ee5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-computer"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/superficial.3724649.net\/index.php?rest_route=\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/superficial.3724649.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/superficial.3724649.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/superficial.3724649.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/superficial.3724649.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50"}],"version-history":[{"count":0,"href":"https:\/\/superficial.3724649.net\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions"}],"wp:attachment":[{"href":"https:\/\/superficial.3724649.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/superficial.3724649.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/superficial.3724649.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}