{"id":1205,"date":"2007-08-26T20:16:49","date_gmt":"2007-08-26T11:16:49","guid":{"rendered":"http:\/\/www.inohome.net\/kuma\/blog\/archives\/2007\/08\/post_1205.html"},"modified":"2010-04-28T16:11:24","modified_gmt":"2010-04-28T07:11:24","slug":"centos%e3%81%abmysql%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.inohome.net\/kuma\/blog\/archives\/2007\/08\/post_1205.html","title":{"rendered":"CentOS\u306bmysql\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>RHEL(RedHat),FC(FedoraCore)\u3067\u3082\u540c\u3058\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>yum install -y mysql-server\u3000\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n(-y\u306f\u9014\u4e2d\u3067\u300c\u3053\u3093\u3060\u3051\u5bb9\u91cf\u3042\u308b\u3051\u3069\uff72\uff9d\uff7d\uff7a\u3057\u3066\u3044\u3044\uff1f\u300d\u3068\u805e\u3044\u3066\u304f\u308b\u306e\u3067\u554f\u7b54\u7121\u7528yes\u306e\u610f\u5473)<\/p>\n<p>service mysqld start \u3053\u308c\u3067\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<p>mysql -u root \u3053\u308c\u3067root\u3067\u5165\u308c\u308b\u3002<\/p>\n<p>\u3067\u3001\u3053\u306e\u3042\u3068\u3084\u308b\u3053\u3068\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u8a2d\u5b9a\u306a\u3093\u3067\u3059\u304c\u306d\u3002<br \/>\n\u3053\u3053\u91cd\u8981\u3002<strong>web\u306b\u66f8\u3044\u3066\u3042\u308b\u3053\u3068\u306e\u30b3\u30d4\u30da\u3092\u3084\u308b\u3068\u6ce3\u304d\u307e\u3059\u3002<\/strong><br \/>\n\u306a\u3093\u304b\u5909\u306a\u6587\u5b57\u30b3\u30fc\u30c9\u62fe\u3063\u3066\u3082<strong>\u305d\u306e\u307e\u307e\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u3055\u308c\u307e\u3059\u3088<\/strong>\u3002<br \/>\n\u305d\u308c\u3060\u3082\u3093\u8a2d\u5b9a\u3057\u305f\u306f\u305a\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u5165\u308c\u306a\u304f\u3066\u6ce3\u304d\u3092\u898b\u308b\u306e\u3067\u30b3\u30c4\u30b3\u30c4\u3068\u3046\u3061\u307e\u3057\u3087\u3046\u306d\u3002<\/p>\n<p>\u25cfmysql\u306e\u8a2d\u5b9a<\/p>\n<p>mysql -u root -p\u3000root\u3067\u5165\u308b<\/p>\n<p>mysql> set password for root@localhost=password(\u2018\u30d1\u30b9\u30ef\u30fc\u30c9\u2019); \u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b(\u5fc5\u9808\u3001\u30b3\u30d4\u30da\u7981\u6b62)<br \/>\n\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u30b3\u30d4\u30da\u3059\u308b\u3068\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u9762\u5012\u306a\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3061\u3083\u3093\u3068\u6253\u3061\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30c7\u30d5\u30a9\u3067\u5165\u3063\u3066\u3044\u308b\u3064\u304b\u308f\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u3068db\u3092\u524a\u9664\u3057\u3088\u3046\u3002<br \/>\n\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u554f\u984c\u3068\u306a\u308b\u306e\u3067\u3002<\/p>\n<p>$ mysql -u root -p<br \/>\nEnter password:<br \/>\nWelcome to the MySQL monitor. Commands end with ; or \\g.<br \/>\nYour MySQL connection id is 1 to server version: 5.0.27-standard<\/p>\n<p>Type \u2018help;\u2019 or \u2018\\h\u2019 for help. Type \u2018\\c\u2019 to clear the buffer.<\/p>\n<p>mysql> use mysql<br \/>\nReading table information for completion of table and column names<br \/>\nYou can turn off this feature to get a quicker startup with -A<\/p>\n<p>Database changed<br \/>\nmysql> delete from user where User=\u201d;<br \/>\nQuery OK, 2 rows affected (0.02 sec)<\/p>\n<p>mysql> delete from db where User=\u201d;<br \/>\nQuery OK, 2 rows affected (0.00 sec)<\/p>\n<p>mysql> flush privileges;<br \/>\nQuery OK, 0 rows affected (0.00 sec)<\/p>\n<p>\u25cfmysql\u306b\u30e6\u30fc\u30b6\u30fc\u8ffd\u52a0<br \/>\nroot\u4f7f\u3063\u3066\u3082\u826f\u3044\u3051\u3069\u304d\u3082\u3061\u308f\u308b\u304f\u306a\u3044\u304b\u3044\uff1f<\/p>\n<p>\u30e6\u30fc\u30b6\u30fcuhyahya \u3067\u30d1\u30b9\u30ef\u30fc\u30c9ohyahya \u3067\u4f5c\u6210<\/p>\n<p>mysql> grant all privileges on uhyahya.* to hoge identified by \u2018ohyahya\u2019;<br \/>\nQuery OK, 0 rows affected (0.00 sec)<\/p>\n<p>\u3053\u3053\u3092\u53c2\u7167\u3057\u307e\u3057\u305f\u3002\u3000\u2192\u3000<a href=\"http:\/\/centossrv.com\/mysql.shtml\">http:\/\/centossrv.com\/mysql.shtml<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>RHEL(RedHat),FC(FedoraCore)\u3067\u3082\u540c\u3058\u304b\u3068\u601d\u3044\u307e\u3059\u3002 yum install -y mysql-server\u3000\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb (-y\u306f\u9014\u4e2d\u3067\u300c\u3053\u3093\u3060\u3051\u5bb9\u91cf\u3042\u308b\u3051\u3069\uff72\uff9d\uff7d\uff7a\u3057\u3066\u3044\u3044\uff1f\u300d\u3068\u805e\u3044\u3066\u304f\u308b\u306e &hellip; <a href=\"https:\/\/www.inohome.net\/kuma\/blog\/archives\/2007\/08\/post_1205.html\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;CentOS\u306bmysql\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1205","post","type-post","status-publish","format-standard","hentry","category-web"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inohome.net\/kuma\/wp-json\/wp\/v2\/posts\/1205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inohome.net\/kuma\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inohome.net\/kuma\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inohome.net\/kuma\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inohome.net\/kuma\/wp-json\/wp\/v2\/comments?post=1205"}],"version-history":[{"count":0,"href":"https:\/\/www.inohome.net\/kuma\/wp-json\/wp\/v2\/posts\/1205\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inohome.net\/kuma\/wp-json\/wp\/v2\/media?parent=1205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inohome.net\/kuma\/wp-json\/wp\/v2\/categories?post=1205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inohome.net\/kuma\/wp-json\/wp\/v2\/tags?post=1205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}