{"id":1245,"date":"2007-09-28T23:24:15","date_gmt":"2007-09-28T14:24:15","guid":{"rendered":"http:\/\/www.inohome.net\/kuma\/blog\/archives\/2007\/09\/post_1245.html"},"modified":"2007-09-29T00:01:20","modified_gmt":"2007-09-28T15:01:20","slug":"vinelinux41%e3%81%a7phpmysql%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e6%a7%8b%e7%af%89","status":"publish","type":"post","link":"https:\/\/www.inohome.net\/kuma\/blog\/archives\/2007\/09\/post_1245.html","title":{"rendered":"VineLinux4.1\u3067php+MySQL\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9"},"content":{"rendered":"<p>CentOS,ubuntu\u3068\u6e21\u308a\u6b69\u304d\u307e\u3057\u305f\u304c\u3001Vine\u3067\u5b89\u5b9a\uff1f\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>vine\u5909\uff57<br \/>\nservice\u3084chkconfig\u30b3\u30de\u30f3\u30c9\u304c\/sbin\u306b\u5c45\u308b\u306e\u3060\u3051\u3069\u30d1\u30b9\u304c\u901a\u3063\u3066\u3044\u306a\u3044\u3002<br \/>\n\u3044\u3061\u3044\u3061 \/sbin\/chkconfig \u3068\u304b\u6253\u3061\u305f\u304f\u306a\u3044\u306e\u3067.bash_profile\u306bPATH\u8a2d\u5b9a\u3002<\/p>\n<p><em>PATH=$PATH:$HOME:\/sbin<br \/>\nexport PATH<\/em><\/p>\n<p>\u518d\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u30fb\u30fb\u30fb\u3075\u3045\u301c\u3002<br \/>\n\u74b0\u5883\u3092\u4fee\u6b63\u3059\u308b\u3068\u6c17\u5206\u304c\u826f\u3044\u3002<\/p>\n<p>php\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n<em>apt-get install php5 php5-apache2 php5-devel php5-pear php5-mysql<\/em><\/p>\n<p>mysql5\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30fb\u8d77\u52d5\u30fb\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a<br \/>\n<em>apt-get install MySQL-server MySQL-client<br \/>\nservice mysql start<br \/>\nchkconfig mysql on<\/em><\/p>\n<p>apache2\u3092\u8d77\u52d5\u30fb\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a<br \/>\n<em>service apache2 start<br \/>\nchkconfig apache2 on<\/em><\/p>\n<p>\/var\/www\/html \u306binfo.php\u3092\u7f6e\u3044\u3066<br \/>\n<code>< ?php  phpinfo()  ?><\/code><br \/>\n\u3092\u66f8\u3044\u3066\u304a\u304f\u3002<br \/>\n\u30d6\u30e9\u30a6\u30b6\u3067info.php\u3092\u8aad\u307f\u306b\u884c\u3063\u3066php\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u305f\u3089OK,<br \/>\n\u305d\u306e\u4e2d\u306bmysql\u306e\u9805\u76ee\u304c\u3042\u308b\u3053\u3068\u3082\u78ba\u8a8d\u3057\u3088\u3046\u3002<\/p>\n<p>\u25cfmysql\u306e\u8a2d\u5b9a<\/p>\n<p><em>mysql -u root -p<\/em>\u3000root\u3067\u5165\u308b<br \/>\n<em><br \/>\nmysql> set password for root@localhost=password(&#8216;\u30d1\u30b9\u30ef\u30fc\u30c9&#8217;); <\/em> \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<br \/>\n<em><br \/>\n$ 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 &#8216;help;&#8217; or &#8216;\\h&#8217; for help. Type &#8216;\\c&#8217; 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=&#8221;;<br \/>\nQuery OK, 2 rows affected (0.02 sec)<\/p>\n<p>mysql> delete from db where User=&#8221;;<br \/>\nQuery OK, 2 rows affected (0.00 sec)<\/p>\n<p>mysql> flush privileges;<br \/>\nQuery OK, 0 rows affected (0.00 sec)<\/em><\/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><em>mysql> grant all privileges on uhyahya.* to hoge identified by &#8216;ohyahya&#8217;;<br \/>\nQuery OK, 0 rows affected (0.00 sec)<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS,ubuntu\u3068\u6e21\u308a\u6b69\u304d\u307e\u3057\u305f\u304c\u3001Vine\u3067\u5b89\u5b9a\uff1f\u3057\u307e\u3057\u305f\u3002 vine\u5909\uff57 service\u3084chkconfig\u30b3\u30de\u30f3\u30c9\u304c\/sbin\u306b\u5c45\u308b\u306e\u3060\u3051\u3069\u30d1\u30b9\u304c\u901a\u3063\u3066\u3044\u306a\u3044\u3002 \u3044\u3061\u3044\u3061 \/sbin\/chkconfig  &hellip; <a href=\"https:\/\/www.inohome.net\/kuma\/blog\/archives\/2007\/09\/post_1245.html\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;VineLinux4.1\u3067php+MySQL\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9&#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":[],"tags":[],"class_list":["post-1245","post","type-post","status-publish","format-standard","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inohome.net\/kuma\/wp-json\/wp\/v2\/posts\/1245","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=1245"}],"version-history":[{"count":0,"href":"https:\/\/www.inohome.net\/kuma\/wp-json\/wp\/v2\/posts\/1245\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inohome.net\/kuma\/wp-json\/wp\/v2\/media?parent=1245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inohome.net\/kuma\/wp-json\/wp\/v2\/categories?post=1245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inohome.net\/kuma\/wp-json\/wp\/v2\/tags?post=1245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}