{"id":132,"date":"2021-03-10T09:10:14","date_gmt":"2021-03-10T00:10:14","guid":{"rendered":"https:\/\/sirius10.dip.jp\/blog\/wordpress\/?p=132"},"modified":"2021-03-17T09:38:42","modified_gmt":"2021-03-17T00:38:42","slug":"%e3%82%b5%e3%83%bc%e3%83%90%e7%94%a8raspberry-pi-%e3%81%ae%e8%a8%ad%e5%ae%9a5","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/03\/10\/132\/","title":{"rendered":"\u30b5\u30fc\u30d0\u7528Raspberry Pi \u306e\u8a2d\u5b9a5"},"content":{"rendered":"\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000LAMP \u74b0\u5883\u306e M\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br>\u3000MySQL \u306a\u3093\u3060\u3051\u3069\u3001MySQL \u306f Oracle \u306e\u7d10\u4ed8\u304d\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u4f7f\u3044\u305f\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3000\u3082\u3068\u3082\u3068 MySQL \u306f SUN Microsystems \u306e\u6301\u3061\u7269\u3067\u3057\u305f\u304c\u3001SUN \u306f Oracle \u306b\u5438\u53ce\u5408\u4f75\u3055\u308c\u3001MySQL \u306f Oracle \u306e\u6301\u3061\u7269\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3000SUN \u306e\u30ef\u30fc\u30af\u30b9\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u61a7\u308c\u3067\u3057\u305f\u3002\u4ed5\u4e8b\u3067\u89e6\u3063\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u3057\u305f\u304c\u3001SUN \u306e\u30ef\u30fc\u30af\u30b9\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u958b\u767a\u3057\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br>\u3000SUN \u306f\u6280\u8853\u306e\u4f1a\u793e\u3067\u3001\u69d8\u3005\u306a\u30cf\u30fc\u30c9\u3084\u30bd\u30d5\u30c8\u3092\u958b\u767a\u3057\u3066\u3001\u696d\u754c\u306e\u767a\u5c55\u306e\u305f\u3081\u3001\u30aa\u30fc\u30d7\u30f3\u306b\u3057\u3066\u3044\u304d\u307e\u3057\u305f\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u9451\u3060\u3068\u304a\u3082\u3044\u307e\u3059\u3002<br>\u3000SolarisOS \u3084\u3001VertualBox \u306a\u3069\u3082 SUN \u304c\u958b\u767a\u3057\u305f\u3082\u3067\u3001MySQL \u3092\u8cb7\u53ce\u3057\u307e\u3057\u305f\u3002<br>\u3000\u3082\u3068\u3082\u3068 SUN \u306f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3092\u3088\u304f\u7406\u89e3\u3057\u3066\u3044\u305f\u305f\u3081\u3001MySQL \u306e\u8cb7\u53ce\u306f\u597d\u610f\u7684\u306b\u898b\u3089\u308c\u305f\u3057\u3001\u306a\u3093\u306e\u554f\u984c\u3082\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br>\u3000SUN \u306b\u5bfe\u3057 Oracle \u306e\u30a4\u30e1\u30fc\u30b8\u306f\u826f\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u306e\u3067 IT \u4f01\u696d\u3068\u8a00\u3048\u307e\u3059\u304c\u81ea\u5206\u3068\u3057\u3066\u306e\u30a4\u30e1\u30fc\u30b8\u306f\u3001\u5546\u793e\u306b\u8fd1\u3044\u3067\u3059\u3002\u8981\u306f\u5229\u76ca\u512a\u5148\u306e\u4f01\u696d\u3067\u3042\u308b\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<br>\u3000\u3053\u306e\u30a4\u30e1\u30fc\u30b8\u306f\u81ea\u5206\u3060\u3051\u3067\u306a\u304f\u3001\u591a\u304f\u306e\u4eba\u304c\u6301\u3063\u3066\u3044\u305f\u306e\u3060\u3068\u601d\u3044\u307e\u3059\u3002Oracle \u304c SUN \u3092\u8cb7\u53ce\u3057\u3066\u9593\u3082\u306a\u304f\u3001MySQL \u4e92\u63db\u306e MariaDB \u304c\u958b\u767a\u3055\u308c\u307e\u3057\u305f\u3002<br>\u3000\u4f01\u696d\u3068\u3057\u3066\u3069\u3061\u3089\u304c\u3044\u3044\u304b\u3068\u3044\u3048\u3070\u3001\u7d50\u5c40 SUN \u306f\u306a\u304f\u306a\u308a\u3001Oracle \u306f\u751f\u304d\u6b8b\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u6b8b\u5ff5\u3067\u3059\u304c\u3002<\/p>\n\n\n\n<p>\u3000\u3068\u3044\u3046\u3053\u3068\u3067\u3001MariaDB \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ sudo apt-get install -y mariadb-server<\/p>\n\n\n\n<p>\u3000\u52d5\u4f5c\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ sudo mysql -u root<br>> use mysql<br>> show tables;<\/p>\n\n\n\n<p>\u3000\u30b7\u30b9\u30c6\u30e0\u306e\u30c6\u30fc\u30d6\u30eb\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u4e2d\u306e user \u30c6\u30fc\u30d6\u30eb\u306b\u30e6\u30fc\u30b6\u60c5\u5831\u304c\u3042\u308a\u307e\u3059\u3002<br>\u3000user \u30c6\u30fc\u30d6\u30eb\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8abf\u3079\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">&gt; show fields from user;<\/p>\n\n\n\n<p>\u3000user \u30c6\u30fc\u30d6\u30eb\u306e\u30db\u30b9\u30c8\u540d\u3001\u30e6\u30fc\u30b6\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">&gt; select Host,User,Password from user;<\/p>\n\n\n\n<p>\u3000root \u30e6\u30fc\u30b6\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">&gt; update user set password=password(&#8216;\u30d1\u30b9\u30ef\u30fc\u30c9&#8217;) where user = &#8216;root&#8217;;<\/p>\n\n\n\n<p>\u3000\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">> select user,password from user;<\/p>\n\n\n\n<p>\u3000unix_socket \u304c\u6709\u52b9\u3060\u3068 unix \u306e\u30e6\u30fc\u30b6\u304c\u305d\u306e\u307e\u307e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001pi \u30e6\u30fc\u30b6\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7ba1\u7406\u304c\u3067\u304d\u307e\u305b\u3093\u3002(sudo \u3092\u4ed8\u3051\u308c\u3070\u7ba1\u7406\u3067\u304d\u307e\u3059\u304c)<br>\u3000unix_socket \u3092\u7121\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">&gt; update user set plugin=&#8221; where User=&#8217;root&#8217;;<\/p>\n\n\n\n<p>\u3000\u629c\u3051\u307e\u3059\u3002(exit \u3067\u3082\u826f\u3044\u3067\u3059)<\/p>\n\n\n\n<p class=\"console\">&gt; quit<\/p>\n\n\n\n<p>\u3000MariaDB \u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ sudo service mysql restart<\/p>\n\n\n\n<p>\u3000sudo \u3092\u4ed8\u3051\u306a\u304f\u3066\u3082\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u304b\u78ba\u304b\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ mysql -u root -p<br>Enter password:<\/p>\n\n\n\n<p>\u3000\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308c\u3070 OK \u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">&gt; quit<\/p>\n\n\n\n<p>\u3000PHP \u304b\u3089\u4f7f\u3048\u308b\u3088\u3046\u306b\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ sudo apt-get install -y php-mysql<\/p>\n\n\n\n<p>\u3053\u308c\u3067 Linux, Apache, MariaDB, PHP \u306e LAMP \u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u3000LAMP \u74b0\u5883\u306e M\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u3000MySQL \u306a\u3093\u3060\u3051\u3069\u3001MySQL \u306f Oracle \u306e\u7d10\u4ed8\u304d\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u4f7f\u3044\u305f\u304f\u3042\u308a\u307e\u305b\u3093\u3002 \u3000\u3082\u3068\u3082\u3068 MyS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-server-config"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":2,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":309,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/132\/revisions\/309"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}