{"id":4071,"date":"2020-05-12T15:15:18","date_gmt":"2020-05-12T07:15:18","guid":{"rendered":"https:\/\/jeng.lifenet.com.tw\/\/?p=4071"},"modified":"2020-05-12T15:15:18","modified_gmt":"2020-05-12T07:15:18","slug":"%e6%a8%b9%e8%8e%93%e6%b4%be%e5%ae%89%e8%a3%9d-apache2mysqlphp7","status":"publish","type":"post","link":"https:\/\/jeng.lifenet.com.tw\/?p=4071","title":{"rendered":"\u6a39\u8393\u6d3e\u5b89\u88dd Apache2+MySQL+PHP7"},"content":{"rendered":"\n<p><a href=\"http:\/\/yhhuang1966.blogspot.com\/2019\/12\/apachemysqlphp7.html\">http:\/\/yhhuang1966.blogspot.com\/2019\/12\/apachemysqlphp7.html<\/a><\/p>\n\n\n<p><\/p>\n\n\n<p><\/p>\n\n\n<p>\u5b89\u88dd phpmyadmin \u5f8c\u767b\u5165\u7684\u554f\u984c<\/p>\n\n\n<p>\u7db2\u8def\u4e0a\u627e\u4e86\u4e00\u4e0b\uff0c\u9019\u500b\u554f\u984c\u4f3c\u4e4e\u4e0d\u6b62\u51fa\u73fe\u5728 Ubuntu16.04\u3002<br \/>\u8209\u51e1 PHP 5.X \u5347\u7d1a PHP 7.X\uff0c\u6216\u8005 MySQL \u8b8a\u66f4\u4f7f\u7528 MariaDB \u90fd\u6709\u4eba\u9047\u5230\u3002<\/p>\n\n\n<p>\u89e3\u6c7a\u65b9\u6cd5\u4e00\u5982 wonton \u6240\u63d0\uff0c\u4f7f\u7528\u6307\u4ee4\u5982\u4e0b\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><code>#sudo mysql --user=root mysql\nMariaDB &#91;mysql]> CREATE USER 'newaccount'@'localhost' IDENTIFIED BY 'newpassword';\nMariaDB &#91;mysql]> GRANT ALL PRIVILEGES ON *.* TO 'newaccount'@'localhost' WITH GRANT OPTION;\nMariaDB &#91;mysql]> FLUSH PRIVILEGES;\nMariaDB &#91;mysql]> quit\n#sudo service mysql restart\n<\/code><\/pre>\n\n\n<p>\u7136\u5f8c\u7528\u65b0\u5e33\u865f(newaccount)\u3001\u65b0\u5bc6\u78bc(newpassword)\u5373\u53ef\u767b\u5165<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/yhhuang1966.blogspot.com\/2019\/12\/apachemysqlphp7 &hellip; <a href=\"https:\/\/jeng.lifenet.com.tw\/?p=4071\" class=\"more-link\">\u95b1\u8b80\u5168\u6587 <span class=\"screen-reader-text\">\u6a39\u8393\u6d3e\u5b89\u88dd Apache2+MySQL+PHP7<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-4071","post","type-post","status-publish","format-standard","hentry","category-27"],"_links":{"self":[{"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/4071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4071"}],"version-history":[{"count":0,"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/4071\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}