<br />
<b>Warning</b>:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/qtranslate-x/qtranslate_frontend.php</b> on line <b>497</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
{"id":2394,"date":"2019-04-19T05:28:14","date_gmt":"2019-04-19T05:28:14","guid":{"rendered":"http:\/\/tech.memoecho.com\/?p=2394"},"modified":"2019-04-19T05:29:48","modified_gmt":"2019-04-19T05:29:48","slug":"mysql-accidentally-delete-root-user-or-no-root-user-linux","status":"publish","type":"post","link":"http:\/\/tech.memoecho.com\/ja\/mysql\/mysql-accidentally-delete-root-user-or-no-root-user-linux\/","title":{"rendered":"mysql\u304c\u8aa4\u3063\u3066root\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3059\u308b\u304b\u3001\u307e\u305f\u306froot\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3057\u306a\u3044 &#8211;  linux"},"content":{"rendered":"<!-- WP QUADS Content Ad Plugin v. 2.0.19 -->\n<div class=\"quads-location quads-ad2\" id=\"quads-ad2\" style=\"float:none;margin:0px;\">\n\n <!-- WP QUADS - Quick AdSense Reloaded v.2.0.19 Content AdSense async --> \n\n\n<script type=\"text\/javascript\" >\nvar quads_screen_width = document.body.clientWidth;\nif ( quads_screen_width >= 1140 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width >= 1024  && quads_screen_width < 1140 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width >= 768  && quads_screen_width < 1024 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width < 768 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }\n<\/script>\n\n <!-- end WP QUADS --> \n\n\n<\/div>\n<p>Linux\u306bMysql\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001root\u30e6\u30fc\u30b6\u30fc\u304c\u8868\u793a\u3055\u308c\u306a\u304b\u3063\u305f\u308a\u3001mysql.user\u30c6\u30fc\u30d6\u30eb\u304b\u3089root\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u524a\u9664\u3055\u308c\u305f\u308a\u3057\u3066\u3001\u591a\u304f\u306e\u6a29\u9650\u304c\u5236\u5fa1\u4e0d\u80fd\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u89e3\u6c7a\u65b9\u6cd5root\u30e6\u30fc\u30b6\u30fc\u3092\u518d\u4f5c\u6210\u3057\u3001\u6b21\u306e\u3088\u3046\u306b\u3059\u3079\u3066\u306e\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\u307e\u3059\u3002<br \/>\n1. \/etc\/my.conf\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3057\u3066\u3001skip-grant-tables\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>[mysqld]<\/p>\n<p>Datadir = \/ var \/ lib \/ mysql<br \/>\n\u30bd\u30b1\u30c3\u30c8= \/ var \/ lib \/ mysql \/ mysql.sock<br \/>\n\u30e6\u30fc\u30b6\u30fc= mysql<br \/>\n\uff03\u3055\u307e\u3056\u307e\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u3092\u9632\u3050\u305f\u3081\u306b\u3001\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u7121\u52b9\u306b\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<br \/>\n\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af= 0<\/p>\n<p>\u30b9\u30ad\u30c3\u30d7\u8a31\u53ef\u30c6\u30fc\u30d6\u30eb<\/p>\n<p>[mysqld_safe]<\/p>\n<p>Log-error = \/ var \/ log \/ mysqld.log<br \/>\nPid\u30d5\u30a1\u30a4\u30eb= \/ var \/ run \/ mysqld \/ mysqld.pid<\/p>\n<p>2\u3001MySQL\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059<\/p>\n<p>\/etc\/init.d\/mysqld restart<\/p>\n<p>3\u3001\u30ed\u30b0\u30a4\u30f3mysql\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3057\u306b\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528<\/p>\n<p>[root @ test1]\uff03mysql<\/p>\n<p>4\u3001\u30ed\u30b0\u30a4\u30f3\u5f8c\u3001root\u30e6\u30fc\u30b6\u30fc\u3092\u518d\u8ffd\u52a0<\/p>\n<p>MySQL&gt; mysql\u3092\u4f7f\u7528\u3059\u308b\u3002<br \/>\nMySQL&gt;\u30e6\u30fc\u30b6\u30fc\u30bb\u30c3\u30c8\u306b\u633f\u5165user = &#8216;root&#8217;\u3001ssl_cipher = &#8221;\u3001x509_issuer = &#8221;\u3001x509_subject = &#8221;;<br \/>\nMySQL&gt;\u66f4\u65b0\u30e6\u30fc\u30b6\u30bb\u30c3\u30c8Host = &#8216;localhost&#8217;\u3001select_priv = &#8216;y&#8217;\u3001<\/p>\n<p>MySQL&gt; Alter_priv = &#8216;y&#8217;\u3001delete_priv = &#8216;y&#8217;\u3001create_priv = &#8216;y&#8217;\u3001drop_priv = &#8216;y&#8217;\u3001reload_priv = &#8216;y&#8217;\u3001shutdown_priv = &#8216;y&#8217;\u3001Process_priv = &#8216;y&#8217;\u3001file_priv = &#8216;y&#8217;\u3001 Grant_priv = &#8216;y&#8217;\u3001References_priv = &#8216;y&#8217;\u3001index_priv = &#8216;y&#8217;\u3001create_user_priv = &#8216;y&#8217;\u3001show_db_priv = &#8216;y&#8217;\u3001super_priv = &#8216;y&#8217;\u3001create_tmp_table_priv = &#8216;y&#8217;\u3001Lock_tables_priv = &#8216;y&#8217; &#8216;y&#8217;\u3001repl_slave_priv = &#8216;y&#8217;\u3001repl_client_priv = &#8216;y&#8217;\u3001create_view_priv = &#8216;y&#8217;\u3001show_view_priv = &#8216;y&#8217;\u3001create_routine_priv = &#8216;y&#8217;\u3001alter_routine_priv = &#8216;y&#8217;\u3001create_user_priv = &#8216;y&#8217; &#8216;;<\/p>\n<p>MySQL&gt; quit;<\/p>\n<p>5.\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u518d\u5ea6\u30ed\u30b0\u30a4\u30f3\u3057\u3001root\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>MySQL&gt; mysql -u root<br \/>\nMysql&gt; update mysql.user set password = password\uff08 &#8216;yourrootpasswd&#8217;\uff09\u3053\u3053\u3067\u3001user = &#8216;root&#8217;;<br \/>\nMysql&gt; update user set host = &#8216;\uff05&#8217;\u3053\u3053\u3067\u3001user = &#8216;root&#8217;;<\/p>\n<p>\/\/\uff05\u306f\u3001mysql\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u30ea\u30e2\u30fc\u30c8\u30de\u30b7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<br \/>\nMySQL\u306e&gt;\u30d5\u30e9\u30c3\u30b7\u30e5\u7279\u6a29\u3002<br \/>\nMySQL&gt; quit;<\/p>\n<p>6. \/etc\/my.conf\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3057\u3001skip-grant-tables\u3092\u524a\u9664\u3057\u3066\u3001mysql\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>[root @ test1]\uff03\/etc\/init.d\/mysqld restart\n<!-- WP QUADS Content Ad Plugin v. 2.0.19 -->\n<div class=\"quads-location quads-ad2\" id=\"quads-ad2\" style=\"float:none;margin:0px;\">\n\n <!-- WP QUADS - Quick AdSense Reloaded v.2.0.19 Content AdSense async --> \n\n\n<script type=\"text\/javascript\" >\nvar quads_screen_width = document.body.clientWidth;\nif ( quads_screen_width >= 1140 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width >= 1024  && quads_screen_width < 1140 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width >= 768  && quads_screen_width < 1024 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width < 768 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }\n<\/script>\n\n <!-- end WP QUADS --> \n\n\n<\/div>\n<\/p>\n<p>7.\u666e\u901a\u3001\u3059\u3079\u3066\u554f\u984c\u3042\u308a\u307e\u305b\u3093","protected":false},"excerpt":{"rendered":"<p>Linux\u306bMysql\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001root\u30e6\u30fc\u30b6\u30fc\u304c\u8868\u793a\u3055\u308c\u306a\u304b\u3063\u305f\u308a\u3001mysql.user\u30c6\u30fc\u30d6\u30eb\u304b\u3089root\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u524a\u9664\u3055\u308c\u305f\u308a\u3057\u3066 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[32],"tags":[],"pwapp_after_post_content":"","pwapp_before_post_content":"","androapp_header":"","pwapp_author":{"ID":1,"name":"enadmin","slug":"enadmin"},"pwapp_terms":{"category":[{"term_id":32,"name":"mysql","slug":"mysql","term_group":0,"term_taxonomy_id":32,"taxonomy":"category","description":"","parent":0,"count":21,"filter":"raw","cat_ID":32,"category_count":21,"category_description":"","cat_name":"mysql","category_nicename":"mysql","category_parent":0,"ID":32}]},"pwapp_feed_image_dimension_type":"preview","pwapp_post_image":null,"share_image":null,"featured_image_showhide":"show","pwapp_excerpt":"<p>Linux\u306bMysql\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001root\u30e6\u30fc\u30b6\u30fc\u304c\u8868\u793a\u3055\u308c\u306a\u304b\u3063\u305f\u308a\u3001mysql.user\u30c6\u30fc\u30d6\u30eb\u304b\u3089root\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u524a\u9664\u3055\u308c\u305f\u308a\u3057\u3066 [&hellip;]<\/p>\n","pwapp_title":"mysql\u304c\u8aa4\u3063\u3066root\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3059\u308b\u304b\u3001\u307e\u305f\u306froot\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3057\u306a\u3044 &#8211;  linux","androapp_image_list":[],"pwapp_post_content":"<style type=\"text\/css\">androapp img{\r\n    max-width: 100%;\r\n    height: auto;\r\n}\r\niframe{\r\n    max-width: 100%;    \r\n}\r\nfigure {\r\n    max-width: 100%;\r\n    height: auto;\r\n}\r\nimg{\r\n    max-width: 100% !important;\r\n    height: auto;\r\n}\r\ndiv {\r\n    max-width: 100% !important;\r\n}\r\nspan {\r\n    max-width:100%;\r\n    overflow: auto;\r\n}\r\naudio {\r\n    display:block;\r\n    visibility:visible !important;\r\n}\r\nvideo{\r\n    width:100%;\r\n    height:auto;\r\n}\r\n<\/style><div class='androapp'><p>Linux\u306bMysql\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001root\u30e6\u30fc\u30b6\u30fc\u304c\u8868\u793a\u3055\u308c\u306a\u304b\u3063\u305f\u308a\u3001mysql.user\u30c6\u30fc\u30d6\u30eb\u304b\u3089root\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u524a\u9664\u3055\u308c\u305f\u308a\u3057\u3066\u3001\u591a\u304f\u306e\u6a29\u9650\u304c\u5236\u5fa1\u4e0d\u80fd\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u89e3\u6c7a\u65b9\u6cd5root\u30e6\u30fc\u30b6\u30fc\u3092\u518d\u4f5c\u6210\u3057\u3001\u6b21\u306e\u3088\u3046\u306b\u3059\u3079\u3066\u306e\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\u307e\u3059\u3002<br \/>\n1. \/etc\/my.conf\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3057\u3066\u3001skip-grant-tables\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>[mysqld]<\/p>\n<p>Datadir = \/ var \/ lib \/ mysql<br \/>\n\u30bd\u30b1\u30c3\u30c8= \/ var \/ lib \/ mysql \/ mysql.sock<br \/>\n\u30e6\u30fc\u30b6\u30fc= mysql<br \/>\n\uff03\u3055\u307e\u3056\u307e\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u3092\u9632\u3050\u305f\u3081\u306b\u3001\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u7121\u52b9\u306b\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<br \/>\n\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af= 0<\/p>\n<p>\u30b9\u30ad\u30c3\u30d7\u8a31\u53ef\u30c6\u30fc\u30d6\u30eb<\/p>\n<p>[mysqld_safe]<\/p>\n<p>Log-error = \/ var \/ log \/ mysqld.log<br \/>\nPid\u30d5\u30a1\u30a4\u30eb= \/ var \/ run \/ mysqld \/ mysqld.pid<\/p>\n<p>2\u3001MySQL\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059<\/p>\n<p>\/etc\/init.d\/mysqld restart<\/p>\n<p>3\u3001\u30ed\u30b0\u30a4\u30f3mysql\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3057\u306b\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528<\/p>\n<p>[root @ test1]\uff03mysql<\/p>\n<p>4\u3001\u30ed\u30b0\u30a4\u30f3\u5f8c\u3001root\u30e6\u30fc\u30b6\u30fc\u3092\u518d\u8ffd\u52a0<\/p>\n<p>MySQL&gt; mysql\u3092\u4f7f\u7528\u3059\u308b\u3002<br \/>\nMySQL&gt;\u30e6\u30fc\u30b6\u30fc\u30bb\u30c3\u30c8\u306b\u633f\u5165user = &#8216;root&#8217;\u3001ssl_cipher = &#8221;\u3001x509_issuer = &#8221;\u3001x509_subject = &#8221;;<br \/>\nMySQL&gt;\u66f4\u65b0\u30e6\u30fc\u30b6\u30bb\u30c3\u30c8Host = &#8216;localhost&#8217;\u3001select_priv = &#8216;y&#8217;\u3001<\/p>\n<p>MySQL&gt; Alter_priv = &#8216;y&#8217;\u3001delete_priv = &#8216;y&#8217;\u3001create_priv = &#8216;y&#8217;\u3001drop_priv = &#8216;y&#8217;\u3001reload_priv = &#8216;y&#8217;\u3001shutdown_priv = &#8216;y&#8217;\u3001Process_priv = &#8216;y&#8217;\u3001file_priv = &#8216;y&#8217;\u3001 Grant_priv = &#8216;y&#8217;\u3001References_priv = &#8216;y&#8217;\u3001index_priv = &#8216;y&#8217;\u3001create_user_priv = &#8216;y&#8217;\u3001show_db_priv = &#8216;y&#8217;\u3001super_priv = &#8216;y&#8217;\u3001create_tmp_table_priv = &#8216;y&#8217;\u3001Lock_tables_priv = &#8216;y&#8217; &#8216;y&#8217;\u3001repl_slave_priv = &#8216;y&#8217;\u3001repl_client_priv = &#8216;y&#8217;\u3001create_view_priv = &#8216;y&#8217;\u3001show_view_priv = &#8216;y&#8217;\u3001create_routine_priv = &#8216;y&#8217;\u3001alter_routine_priv = &#8216;y&#8217;\u3001create_user_priv = &#8216;y&#8217; &#8216;;<\/p>\n<p>MySQL&gt; quit;<\/p>\n<p>5.\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u518d\u5ea6\u30ed\u30b0\u30a4\u30f3\u3057\u3001root\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>MySQL&gt; mysql -u root<br \/>\nMysql&gt; update mysql.user set password = password\uff08 &#8216;yourrootpasswd&#8217;\uff09\u3053\u3053\u3067\u3001user = &#8216;root&#8217;;<br \/>\nMysql&gt; update user set host = &#8216;\uff05&#8217;\u3053\u3053\u3067\u3001user = &#8216;root&#8217;;<\/p>\n<p>\/\/\uff05\u306f\u3001mysql\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u30ea\u30e2\u30fc\u30c8\u30de\u30b7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<br \/>\nMySQL\u306e&gt;\u30d5\u30e9\u30c3\u30b7\u30e5\u7279\u6a29\u3002<br \/>\nMySQL&gt; quit;<\/p>\n<p>6. \/etc\/my.conf\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3057\u3001skip-grant-tables\u3092\u524a\u9664\u3057\u3066\u3001mysql\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>[root @ test1]\uff03\/etc\/init.d\/mysqld restart<\/p>\n<p>7.\u666e\u901a\u3001\u3059\u3079\u3066\u554f\u984c\u3042\u308a\u307e\u305b\u3093<\/p><\/div>","pwapp_post_content_type":"postprocessed","pwapp_preview_type":"excerpt","androapp_failover_post_content_type":"","share_text":"Linux\u306bMysql\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001root\u30e6\u30fc\u30b6\u30fc\u304c\u8868\u793a\u3055\u308c\u306a\u304b\u3063\u305f\u308a\u3001mysql.user\u30c6\u30fc\u30d6\u30eb\u304b\u3089root\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u524a\u9664\u3055\u308c\u305f\u308a\u3057\u3066 [&hellip;]\n\nvia http:\/\/tech.memoecho.com\/ja\/mysql\/mysql-accidentally-delete-root-user-or-no-root-user-linux\/","supercache":"androappsupercache","_links":{"self":[{"href":"http:\/\/tech.memoecho.com\/ja\/wp-json\/wp\/v2\/posts\/2394"}],"collection":[{"href":"http:\/\/tech.memoecho.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tech.memoecho.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tech.memoecho.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tech.memoecho.com\/ja\/wp-json\/wp\/v2\/comments?post=2394"}],"version-history":[{"count":3,"href":"http:\/\/tech.memoecho.com\/ja\/wp-json\/wp\/v2\/posts\/2394\/revisions"}],"predecessor-version":[{"id":2399,"href":"http:\/\/tech.memoecho.com\/ja\/wp-json\/wp\/v2\/posts\/2394\/revisions\/2399"}],"wp:attachment":[{"href":"http:\/\/tech.memoecho.com\/ja\/wp-json\/wp\/v2\/media?parent=2394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tech.memoecho.com\/ja\/wp-json\/wp\/v2\/categories?post=2394"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tech.memoecho.com\/ja\/wp-json\/wp\/v2\/tags?post=2394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}