{"id":2513,"date":"2020-03-15T12:08:05","date_gmt":"2020-03-15T03:08:05","guid":{"rendered":"http:\/\/taki-lab.site\/bocci\/?p=2513"},"modified":"2020-05-24T11:55:15","modified_gmt":"2020-05-24T02:55:15","slug":"%e3%80%90linux%e3%80%91mysql%e3%82%92%e3%82%bb%e3%83%83%e3%83%88%e3%82%a2%e3%83%83%e3%83%97%e3%81%97%e3%81%9f%e3%82%89%e8%ba%93%e3%81%84%e3%81%9f%e3%81%ae%e3%81%a7","status":"publish","type":"post","link":"https:\/\/taki-lab.site\/bocci\/?p=2513","title":{"rendered":"\u3010Linux\u3011mysql\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u305f\u3089\u8e93\u3044\u305f\u306e\u3067"},"content":{"rendered":"\n<p>\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u30e1\u30e2\u3057\u3066\u304a\u304f\u3002<\/p>\n\n\n\n<p>MySQL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get install mysql-server<\/code><\/pre>\n\n\n\n<p>root\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo mysql_secure_installation<\/code><\/pre>\n\n\n\n<p>\u554f\u3044\u5408\u308f\u305b\u306f\u3059\u3079\u3066y\u3092\u5165\u529b\u3002<\/p>\n\n\n\n<p>root\u3067\u30ed\u30b0\u30a4\u30f3\u3092\u78ba\u8a8d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo mysql -u root -p<\/code><\/pre>\n\n\n\n<p>MySQL\u306b\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql> CREATE USER 'user'@'localhost' IDENTIFIED BY 'password'<\/code><\/pre>\n\n\n\n<p>\u30e6\u30fc\u30b6\u30fc\u306b\u6a29\u9650\u3092\u8a2d\u5b9a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql> GRANT all ON *.* TO 'user'@'localhost'<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u30e1\u30e2\u3057\u3066\u304a\u304f\u3002 MySQL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb root\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a \u554f\u3044\u5408\u308f\u305b\u306f\u3059\u3079\u3066y\u3092\u5165\u529b\u3002 root\u3067\u30ed\u30b0\u30a4\u30f3\u3092\u78ba\u8a8d MySQL\u306b\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0 \u30e6\u30fc\u30b6\u30fc\u306b\u6a29\u9650\u3092\u8a2d\u5b9a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[8,3],"tags":[79],"class_list":["post-2513","post","type-post","status-publish","format-standard","hentry","category-linux","category-3","tag-linux"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8SDbY-Ex","jetpack-related-posts":[{"id":8195,"url":"https:\/\/taki-lab.site\/bocci\/?p=8195","url_meta":{"origin":2513,"position":0},"title":"\u3010Linux\u3011MySQL\u306eroot\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u306e\u518d\u8a2d\u5b9a\u65b9\u6cd5","author":"taki","date":"2022\u5e744\u670823\u65e5","format":false,"excerpt":"\u3053\u3061\u3089\u306e\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002 https:\/\/blog.katsubemakito.net\/my\u2026","rel":"","context":"Linux","block_context":{"text":"Linux","link":"https:\/\/taki-lab.site\/bocci\/?cat=8"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1652,"url":"https:\/\/taki-lab.site\/bocci\/?p=1652","url_meta":{"origin":2513,"position":1},"title":"\u3010Linux\u3011\u3010Laravel\u3011Laravel\u304b\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3002","author":"taki","date":"2019\u5e7411\u670814\u65e5","format":false,"excerpt":"Laravel\u304b\u3089mysql\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3068\u3053\u308d\u307e\u3067\u3084\u308a\u307e\u3057\u305f\u3002 mysql\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb $ s\u2026","rel":"","context":"Linux","block_context":{"text":"Linux","link":"https:\/\/taki-lab.site\/bocci\/?cat=8"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":833,"url":"https:\/\/taki-lab.site\/bocci\/?p=833","url_meta":{"origin":2513,"position":2},"title":"VPS\u306bMySQL\u3092\u5165\u308c\u308b","author":"taki","date":"2019\u5e742\u67082\u65e5","format":false,"excerpt":"VPS\u306bMySQL\u3092\u5165\u308c\u307e\u3059\u3002 $ sudo apt-get install mysql-serve\u2026","rel":"","context":"Linux","block_context":{"text":"Linux","link":"https:\/\/taki-lab.site\/bocci\/?cat=8"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2516,"url":"https:\/\/taki-lab.site\/bocci\/?p=2516","url_meta":{"origin":2513,"position":3},"title":"\u3010Laravel\u3011\u307e\u3063\u3055\u3089\u306a\u72b6\u614b\u306eLinux\u304b\u3089\u74b0\u5883\u69cb\u7bc9","author":"taki","date":"2020\u5e743\u670815\u65e5","format":false,"excerpt":"\u3053\u306e\u8a18\u4e8b\u3001\u5b9a\u671f\u7684\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3066\u3044\u3053\u3046\u3002 MySQL\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7 https:\/\/taki-la\u2026","rel":"","context":"Laravel","block_context":{"text":"Laravel","link":"https:\/\/taki-lab.site\/bocci\/?cat=167"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":831,"url":"https:\/\/taki-lab.site\/bocci\/?p=831","url_meta":{"origin":2513,"position":4},"title":"VPS\u306bPHP\u3092\u5165\u308c\u308b","author":"taki","date":"2019\u5e742\u67082\u65e5","format":false,"excerpt":"\u524d\u56de\u306fVPS\u306bnginx\u3092\u5165\u308c\u307e\u3057\u305f\u3002 \u4eca\u56de\u306fPHP\u3092\u5165\u308c\u3066\u3001nginx\u3068\u9023\u643a\u3055\u305b\u307e\u3059\u3002 \u307e\u305a\u306f\u30a4\u30f3\u2026","rel":"","context":"Linux","block_context":{"text":"Linux","link":"https:\/\/taki-lab.site\/bocci\/?cat=8"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4273,"url":"https:\/\/taki-lab.site\/bocci\/?p=4273","url_meta":{"origin":2513,"position":5},"title":"\u3010\u30c0\u30a4\u30a8\u30c3\u30c8\u652f\u63f4\u3011\u3010\u5165\u529b\u5c65\u6b74\u6a5f\u80fd\u3011\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u69cb\u7bc9","author":"taki","date":"2020\u5e7410\u67087\u65e5","format":false,"excerpt":"\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30b5\u30af\u30c3\u3068\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002 $ php artisan make:migration \u2026","rel":"","context":"Laravel","block_context":{"text":"Laravel","link":"https:\/\/taki-lab.site\/bocci\/?cat=167"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/10\/d544a19b4ab5409990f08842f77d57f0.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/10\/d544a19b4ab5409990f08842f77d57f0.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/10\/d544a19b4ab5409990f08842f77d57f0.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/10\/d544a19b4ab5409990f08842f77d57f0.png?resize=700%2C400 2x"},"classes":[]}],"jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2513"}],"version-history":[{"count":2,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2513\/revisions"}],"predecessor-version":[{"id":3043,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2513\/revisions\/3043"}],"wp:attachment":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}