{"id":23,"date":"2006-06-10T13:22:51","date_gmt":"2006-06-10T04:22:51","guid":{"rendered":"https:\/\/deskplate.net\/blog\/2006\/06\/10\/mysql-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab\/"},"modified":"2006-06-10T13:22:51","modified_gmt":"2006-06-10T04:22:51","slug":"mysql-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/deskplate.net\/blog\/archives\/23","title":{"rendered":"MySQL  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>MySQL 3.23.58\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30e2\u3067\u3059\u3000\u3061\u3087\u3063\u3068\u53e4\u3044\u3051\u3069\u30fb\u30fb\u30fb<br \/>\n\u30e6\u30fc\u30b6\u30fc mysql \u3068\u3000\u30b0\u30eb\u30fc\u30d7 mysql \u306f\u4f5c\u3063\u3066\u304a\u304f\u3082\u306e\u3068\u3057\u307e\u3059<br \/>\ntar xvzf mysql-3.23.58.tar.gz<br \/>\ncd mysql-3.23.58<br \/>\n.\/configure &#8211;with-charset=ujis &#8211;with-extra-charsets=all &#8211;with-mysqld-user=mysql &#8211;with-innodb &#8211;enable-local-infile &#8211;prefix=\/usr\/local\/mysql &#8211;with-unix-socket-path=\/mp\/mysql.sock<br \/>\nmake<br \/>\nmake install > install.log<br \/>\ncp \/usr\/local\/mysql\/share\/mysql\/my-medium.cnf \/etc\/my.cnf<br \/>\nchown -R mysql \/usr\/local\/mysql<br \/>\nchgrp -R mysql \/usr\/local\/mysql<br \/>\n#DB\u521d\u671f\u5316<br \/>\n\/usr\/local\/mysql\/bin\/mysql_install_db &#8211;user=mysql<br \/>\n#\u6e96\u5099<br \/>\nmkdir \/mp<br \/>\ntouch \/mp\/mysql.sock<br \/>\nchown mysql -R \/mp<br \/>\nchmod 666 \/mp\/mysql.sock<br \/>\n#\u8d77\u52d5<br \/>\n\/usr\/local\/mysql\/bin\/safe_mysqld &#8211;user=mysql &#038;<br \/>\n\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3068\u304d\u306f<br \/>\n\/usr\/local\/mysql\/var\/localhost.localdomain.err \u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u898b\u3066\u307f\u308b<br \/>\n\u304a\u305d\u3089\u304f\/mp\/mysql.sock \u306e\u6a29\u9650\u304b\/usr\/local\/mysql\/var\/\u306e\u30aa\u30fc\u30ca\u30fc\u3060<br \/>\nchown mysql.mysql -R \/usr\/local\/mysql\/<br \/>\nchown mysql.mysql -R \/mp<br \/>\n# \u8d77\u52d5<br \/>\n\/usr\/local\/mysql\/bin\/mysqld_safe &#8211;user=mysql &#038;<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u6210\u529f\u3057\u305f\u304b\u3069\u3046\u304b\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<br \/>\n# \u30c6\u30b9\u30c8<br \/>\n\/usr\/local\/mysql\/bin\/mysqlshow<br \/>\n# \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u6210\u529f\u3057\u3066\u3044\u308c\u3070\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n+&#8212;&#8212;&#8212;&#8211;+<br \/>\n| Databases\u3000\u3000|<br \/>\n+&#8212;&#8212;&#8212;&#8211;+<br \/>\n| mysql\u3000\u3000\u3000\u3000\u3000|<br \/>\n| test\u3000\u3000\u3000\u3000\u3000\u3000|<br \/>\n+&#8212;&#8212;&#8212;&#8211;+<br \/>\n#mysql \u306eroot\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3000\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u4efb\u610f\u306e\u6587\u5b57\u5217\u3067\uff2f\uff2b<br \/>\n\/usr\/local\/mysql\/bin\/mysqladmin -u root  password [\u30d1\u30b9\u30ef\u30fc\u30c9]<br \/>\n\/usr\/local\/mysql\/bin\/mysqladmin -u root -h localhost.localdomain  password [\u30d1\u30b9\u30ef\u30fc\u30c9]<br \/>\n#\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u8a2d\u5b9a<br \/>\ncp \/usr\/local\/mysql\/share\/mysql\/mysql.server \/etc\/init.d\/mysql<br \/>\nchmod +x \/etc\/init.d\/mysql<br \/>\n\/etc\/init.d\/mysql start \u3067\u8d77\u52d5\u3000<br \/>\n\/etc\/init.d\/mysql stop \u3067\u505c\u6b62<br \/>\n\u3010\u5fd8\u308c\u305froot\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u518d\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u3011\u3000<br \/>\n\u8a2d\u5b9a\u624b\u9806<br \/>\nMySQL\u306f\u3001root\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u3001\u3044\u3063\u305f\u3093\u6a29\u9650\u3092\u7121\u52b9\u306b\u3057\u3066\u8d77\u52d5\u3059\u308c\u3070\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u3066\u3082\u518d\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3044\u3063\u305f\u3093MySQL\u3092\u505c\u6b62\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u30aa\u30d7\u30b7\u30e7\u30f3\uff08&#8221;&#8211;skip-grant-tables&#8221;\uff09\u3092\u4ed8\u52a0\u3057\u3066\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n# service mysqld stop<br \/>\n# \/usr\/bin\/safe_mysqld &#8211;skip-grant-tables<br \/>\nStarting mysqld daemon with databases from \/var\/lib\/mysql<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067MySQL\u3092\u7acb\u3061\u4e0a\u3052\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308c\u3070\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<br \/>\n# mysql -u root mysql<br \/>\nmysql> UPDATE user SET Password=PASSWORD(&#8216;mynewpassword&#8217;) WHERE User=&#8217;root&#8217;;<br \/>\nmysql> FLUSH PRIVILEGES;<br \/>\n\u5909\u66f4\u5f8c\u306f\u3001MySQL\u3092\u843d\u3068\u3057\u3066\u3001\u901a\u5e38\u306e\u8a2d\u5b9a\u3067\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n\/etc\/init.d\/mysql start<br \/>\n\u3000<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL 3.23.58\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":0,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"wp:attachment":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}