{"id":113,"date":"2022-08-08T13:01:45","date_gmt":"2022-08-08T04:01:45","guid":{"rendered":"https:\/\/global-hack.com\/blog\/?p=113"},"modified":"2022-08-09T08:58:59","modified_gmt":"2022-08-08T23:58:59","slug":"error-2002-hy000-cant-connect-to-local-mysql-server","status":"publish","type":"post","link":"https:\/\/global-hack.com\/blog\/archives\/113","title":{"rendered":"ERROR 2002 (HY000): Can&#8217;t connect to local MySQL server"},"content":{"rendered":"<h3>ERROR 2002 (HY000)\u301c\u30a8\u30e9\u30fc\u304c\u7acb\u3066\u7d9a\u3044\u305f\u306e\u3067MariaDB\u3092\u5165\u308c\u76f4\u3059\u3053\u3068\u306b\u3057\u305f<\/h3>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>ERROR 2002 (HY000): Can't connect to local MySQL server through socket '\/var\/run\/mysqld\/mysqld.sock' (2)<\/code><\/pre>\n<\/div>\n<p>\u4e0a\u8a18\u306e\u30a8\u30e9\u30fc\u3067MariaDB\u306b\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u518d\u5ea6\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u306f\u30cf\u30c3\u30ad\u30ea\u3068\u306f\u3057\u3066\u3044\u306a\u3044\u304c\u3001\u8907\u6570\u30b5\u30fc\u30d0\u30fc\u306b\u540c\u3058\u4ed5\u69d8\u306eMariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u5404\u3005DB\u306e\u4e2d\u8eab\u306e\u4e00\u90e8\u5206\u3060\u3051\u306f\u500b\u5225\u306b\u5f04\u308d\u3046\u3068\u3044\u3046\u3053\u3068\u3092\u3057\u3066\u3044\u305f\u6642\u306b\u3053\u306e\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3057\u305f\u3002<\/p>\n<p>\u5fc3\u5f53\u305f\u308a\u304c\u3042\u308b\u3068\u3059\u308b\u306a\u3089\u3070\u3001\u8907\u6570\u30b5\u30fc\u30d0\u30fc\u306eDB\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u7528\u610f\u3057\u3001\u305d\u308c\u3089ID\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5404\u3005\u500b\u5225\u306b\u5272\u308a\u632f\u3063\u3066\u3044\u305f\u3002\u3053\u308c\u306f\u59a5\u5f53\u306a\u4f5c\u696d\u306a\u306e\u3060\u304c\u3001\u3069\u3053\u304b\u3067\u305d\u306e\u8907\u6570\u30b5\u30fc\u30d0\u30fc\u9593\u3067ID\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u30c6\u30ec\u30b3\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3088\u3046\u3067\u3001\u4f5c\u6210\u3057\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u3044\u306a\u3089\u3070\u76f4\u3050\u306b\u30c6\u30ec\u30b3\u3068\u6c17\u3065\u3051\u3070\u826f\u3044\u3082\u306e\u306e\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u308a\u518d\u5ea6\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u76f4\u3057\u305f\u308a\u3068\u3057\u3066\u3044\u308b\u3046\u3061\u306b\u3001\u73fe\u5728\u306e\u30a8\u30e9\u30fc\u306b\u884c\u304d\u7740\u304d\u7acb\u3061\u5f80\u751f\u3068\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3060\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u308c\u304b\u3089\u5f53\u8a72\u4f5c\u696d\u3092\u884c\u3046\u4e0a\u3067\u3001DB\u306e\u4e2d\u8eab\u304c\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306a\u3069\u691c\u8a3c\u7528\u3067\u306f\u306a\u304f\u3001<span style=\"color: #ff0000;\"><strong>\u4f5c\u696d\u9032\u6357\u3084\u672c\u756a\u74b0\u5883\u81ea\u4f53\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u306a\u3089\u3070\u3001\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3084sqldump\u306a\u3069\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3068\u3063\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u826f\u3044<\/strong><\/span>\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u56de\u306e\u30df\u30c3\u30b7\u30e7\u30f3\u306f\u3001<\/p>\n<ol>\n<li><strong>MariaDB\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/li>\n<li><strong>MariaDB\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/li>\n<li><strong>MariaDB\u521d\u671f\u8a2d\u5b9a<\/strong><\/li>\n<li><strong>\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u4f5c\u6210<\/strong><\/li>\n<li><strong>\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u3067\u30ed\u30b0\u30a4\u30f3<\/strong><\/li>\n<\/ol>\n<p>\u4e0a\u8a185\u3064\u3092\u30af\u30ea\u30a2\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3>\u958b\u767a\u74b0\u5883<\/h3>\n<ul>\n<li><a href=\"https:\/\/releases.ubuntu.com\/20.04\/\" target=\"_blank\" rel=\"nofollow noopener\">Ubuntu20.04<\/a><\/li>\n<li><a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/ja\/\" target=\"_blank\" rel=\"nofollow noopener\">Apache2.4<\/a><\/li>\n<li><a href=\"https:\/\/mariadb.com\/kb\/en\/mariadb-10516-release-notes\/\" target=\"_blank\" rel=\"nofollow noopener\">MariaDB 10.5.16<\/a><\/li>\n<li><a href=\"https:\/\/www.php.net\/releases\/8_0_7.php\" target=\"_blank\" rel=\"nofollow noopener\">PHP 8.0.7<\/a><\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h3>1 \u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4f5c\u696d\u958b\u59cb<\/h3>\n<p>\u300cpurge\u300d\u30b3\u30de\u30f3\u30c9\u3092\u7528\u3044\u3066\u5b8c\u5168\u524a\u9664\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ <span>sudo apt-get remove --purge mysql-server* mysql-common<\/span><\/code><\/pre>\n<\/div>\n<p>\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u305f\u3081\u4e00\u65e6\u6b62\u307e\u308a\u307e\u3057\u305f\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Some packages could not be installed. This may mean that you have\r\nrequested an impossible situation or if you are using the unstable\r\ndistribution that some required packages have not yet been created\r\nor been moved out of Incoming.\r\nThe following information may help to resolve the situation:\r\n\r\nThe following packages have unmet dependencies:\r\n default-mysql-client : Depends: mysql-client-8.0 but it is not going to be installed\r\nN: Ignoring file 'mariadb.list.old_1' in directory '\/etc\/apt\/sources.list.d\/' as it has an invalid filename extension\r\nE: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.<\/code><\/pre>\n<\/div>\n<p>\u307e\u305anotice\u306e\u65b9\u304b\u3089\u3001\/etc\/apt\/sources.list.d\/mariadb.list.old_1\u3092\u7121\u52b9\u306a\u62e1\u5f35\u5b50\u3060\u304b\u3089\u7121\u8996\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u304c\u3001\u4e00\u65e6MariaDB\u306b\u95a2\u9023\u3059\u308b\u3082\u306e\u306f\u524a\u9664\u3057\u3066\u304a\u304d\u305f\u3044\u306e\u3067\u524a\u9664\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo rm \/etc\/apt\/sources.list.d\/mariadb.list.old_1<\/code><\/pre>\n<\/div>\n<p>\u6b21\u306b\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.<\/code><\/pre>\n<\/div>\n<p>\u58ca\u308c\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u898b\u3064\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002\u3053\u3061\u3089\u306f\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u8a73\u7d30\u3092\u8abf\u3079\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo dpkg --audit<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>The following packages are only half configured, probably due to problems\r\nconfiguring them the first time.  The configuration should be retried using\r\ndpkg --configure <package> or the configure menu option in dselect:\r\n phpmyadmin           MySQL web administration tool<\/package><\/code><\/pre>\n<\/div>\n<p>phpmyadmin\u304c\u4e2d\u9014\u534a\u7aef\u306a\u72b6\u614b\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u524a\u9664\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u5148\u307b\u3069\u3001\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u6b62\u307e\u3063\u305f\u5f71\u97ff\u306b\u3082\u3042\u308b\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo apt-get purge phpmyadmin\r\n<\/code><\/pre>\n<\/div>\n<p>\u3053\u308c\u3067\u304a\u305d\u3089\u304f\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3063\u305f\u3068\u3057\u3066\u3082\u30a8\u30e9\u30fc\u306f\u51fa\u529b\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u5ff5\u306e\u305f\u3081\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo dpkg --audit<\/code><\/pre>\n<\/div>\n<p>\u3069\u3046\u3067\u3057\u3087\u3046\u304b\u3002\u79c1\u306f\u30a8\u30e9\u30fc\u306f\u51fa\u529b\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h4>MySQL\u95a2\u9023\u524a\u9664<\/h4>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo apt-get remove --purge mysql-server* mysql-common\r\n$ sudo apt-get autoremove --purge\r\n$ sudo rm -r \/etc\/mysql\r\n$ sudo rm -r \/var\/lib\/mysql<\/code><\/pre>\n<\/div>\n<h4>MariaDB\u95a2\u9023\u524a\u9664<\/h4>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo <span>apt purge mariadb-server<\/span>\r\n$ sudo <span>apt autoremove<\/span>\r\n$ sudo <span>apt clean<\/span><\/code><\/pre>\n<\/div>\n<h4>\u7247\u3063\u7aef\u304b\u3089\u524a\u9664\u3059\u308b\u5834\u5408<\/h4>\n<p>\u4e0a\u8ff0\u3057\u305f\u524a\u9664\u306b\u52a0\u3048\u3001\u3055\u3089\u306b\u63a2\u3057\u51fa\u3057\u3066\u624b\u52d5\u524a\u9664\u3059\u308b\u5834\u5408\u306f\u300cgrep\u300d\u3067\u8abf\u3079\u3042\u3052\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ dpkg -l | grep mysql<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ dpkg -l | grep mariadb<\/code><\/pre>\n<\/div>\n<h3>2 \u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4f5c\u696d\u958b\u59cb<\/h3>\n<p>\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067MariaDB\u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ <span>sudo apt <\/span><span class=\"hljs-keyword\">update<\/span>\r\n$ sudo <span>apt install mariadb-server mariadb<span class=\"hljs-operator\">-<\/span>client<\/span><\/code><\/pre>\n<\/div>\n<p>\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Warning: The unit file, source configuration file or drop-ins of mariadb.service changed on disk. Run 'systemctl daemon-reload' to reload units.<\/code><\/pre>\n<\/div>\n<p>\u4e0a\u8a18\u306e daemon-reload \u306f\u3001Unit\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3081\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u518d\u5ea6\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo systemctl daemon-reload<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo <span>apt install mariadb-server mariadb<span class=\"hljs-operator\">-<\/span>client<\/span>\r\n<\/code><\/pre>\n<\/div>\n<p>\u30a8\u30e9\u30fc\u306f\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ mysql --version<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>mysql Ver 15.1 Distrib 10.5.16-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2<\/code><\/pre>\n<\/div>\n<p>\u3046\u307e\u304f\u3044\u3063\u305f\u3088\u3046\u3067\u3059\u306d\u3002<\/p>\n<p>MariaDB\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3064\u3044\u3066\u306f\u4e0b\u8a18\u3092\u53c2\u8003\u306b\u3059\u308b\u3068\u826f\u3044\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-mariadb-on-ubuntu-20-04-ja\" target=\"_blank\" rel=\"nofollow noopener\" title=\"Ubuntu 20.04\u306bMariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\">Ubuntu 20.04\u306bMariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/a><\/p>\n<h3><span>3 mysql_secure_installation\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u30b5\u30fc\u30d0\u30a2\u30af\u30bb\u30b9\u3092\u5236\u9650<\/span><\/h3>\n<p>MariaDB\u521d\u671f\u8a2d\u5b9a\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002\u307e\u305a\u306f\u4e0b\u8a18\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo mysql_secure_installation<\/code><\/pre>\n<\/div>\n<p><span>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u73fe\u5728\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/span><strong>root<\/strong><span>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u3088\u3046\u306b\u6c42\u3081\u3089\u308c\u308b\u3002\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304c\u307e\u30601\u3064\u6b8b\u3063\u3066\u3044\u308b\u306e\u3067\u3001<\/span><code>ENTER<\/code><span>\u30ad\u30fc\u3092\u62bc\u3057\u3066\u300cnone\u300d\u3092\u793a\u3059\u3002<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB\r\n      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!\r\n\r\nIn order to log into MariaDB to secure it, we'll need the current\r\npassword for the root user. If you've just installed MariaDB, and\r\nhaven't set the root password yet, you should just press enter here.\r\n\r\nEnter current password for root (enter for none):<\/code><\/pre>\n<\/div>\n<p><span>\u6b21\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/span><strong>root<\/strong><span>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u304b\u3069\u3046\u304b\u304c\u5c0b\u306d\u3089\u308c\u308b\u3002<\/span><\/p>\n<p>\u4e0a\u8ff0\u3057\u305f\u30ea\u30f3\u30af\u5148\u3092\u53c2\u8003\u306b\u3059\u308b\u3068\u3001<span style=\"color: #ff0000;\"><strong>Ubuntu\u3067\u306f\u3001MariaDB\u306eroot<\/strong><\/span><span><span style=\"color: #ff0000;\"><strong>\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u81ea\u52d5\u30b7\u30b9\u30c6\u30e0\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3068\u5bc6\u63a5\u306b\u7d50\u3073\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b<\/strong><\/span>\u305f\u3081\u3001\u305d\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u7528\u306b\u8a2d\u5b9a\u3055\u308c\u305f\u8a8d\u8a3c\u65b9\u6cd5\u3092\u5909\u66f4\u3057\u3066\u306f\u3044\u3051\u306a\u3044\u3002<strong><span style=\"color: #ff0000;\">\u5909\u66f4\u3059\u308b\u3068\u30d1\u30c3\u30b1\u30fc\u30b8\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u3088\u308a\u3001\u7ba1\u7406\u30a2\u30ab\u30a6\u30f3\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u524a\u9664\u3055\u308c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u304c\u7834\u640d\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002<\/span><\/strong><\/span>\u4e0b\u8a18\u306e\u3088\u3046\u306b<code>N<\/code><span>\u3068\u5165\u529b\u3057\u3066\u304b\u3089\u3001<\/span><code>ENTER<\/code><span>\u3092\u62bc\u3057\u307e\u3059\u3002<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>OK, successfully used password, moving on...\r\n\r\nSetting the root password or using the unix_socket ensures that nobody\r\ncan log into the MariaDB root user without the proper authorisation.\r\n\r\nYou already have your root account protected, so you can safely answer 'n'.\r\n\r\nSwitch to unix_socket authentication [Y\/n] N<\/code><\/pre>\n<\/div>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b\u306e\u3067\u3001<code>Y<\/code><span>\u3068\u5165\u529b\u3057\u3066\u304b\u3089\u3001<\/span><code>ENTER<\/code><span>\u3092\u62bc\u3057\u307e\u3059\u3002<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Change the root password? [Y\/n] y<\/code><\/pre>\n<\/div>\n<p>\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3001<code>ENTER<\/code><span>\u3092\u62bc\u3057\u307e\u3059\u3002\u3055\u3089\u306b<\/span>\u78ba\u8a8d\u306e\u305f\u3081\u306b\u518d\u5ea6\u540c\u3058\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3001<code>ENTER<\/code><span>\u3092\u62bc\u3057\u307e\u3059\u3002<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>By default, a MariaDB installation has an anonymous user, allowing anyone\r\nto log into MariaDB without having to have a user account created for\r\nthem.  This is intended only for testing, and to make the installation\r\ngo a bit smoother.  You should remove them before moving into a\r\nproduction environment.\r\n\r\nRemove anonymous users? [Y\/n] Y<\/code><\/pre>\n<\/div>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u300c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001MariaDB\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306f\u533f\u540d\u30e6\u30fc\u30b6\u30fc\u304c\u3042\u308a\u3001\u8ab0\u3067\u3082\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306a\u304fMariaDB\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u30c6\u30b9\u30c8\u7528\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5c11\u3057\u30b9\u30e0\u30fc\u30ba\u306b\u3059\u308b\u305f\u3081\u3060\u3051\u3067\u3059\u3002\u672c\u756a\u74b0\u5883\u306b\u79fb\u884c\u3059\u308b\u524d\u306b\u524a\u9664\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u300d\u3068\u306e\u3053\u3068\u306a\u306e\u3067\u3001\u533f\u540d\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u6545\u306b\u3001<code>Y<\/code><span>\u3068\u5165\u529b\u3057\u3066\u304b\u3089\u3001<\/span><code>ENTER<\/code><span>\u3092\u62bc\u3057\u307e\u3059\u3002<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Normally, root should only be allowed to connect from 'localhost'.  This\r\nensures that someone cannot guess at the root password from the network.\r\n\r\nDisallow root login remotely? [Y\/n] Y<\/code><\/pre>\n<\/div>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u300c\u901a\u5e38\u3001root\u306f\u300elocalhost\u300f\u304b\u3089\u306e\u63a5\u7d9a\u3057\u304b\u8a31\u53ef\u3055\u308c\u306a\u3044\u306f\u305a\u3067\u3059\u3002 \u3053\u308c\u306f \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304b\u3089root\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u63a8\u6e2c\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3067\u3059\u3002\u300d\u3068\u306e\u3053\u3068\u306a\u306e\u3067\u3001root\u3067\u30ea\u30e2\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u3066\u3057\u307e\u3046\u306e\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7684\u306b\u826f\u304f\u306a\u3044\u6545\u306b\u3001<code>Y<\/code><span>\u3068\u5165\u529b\u3057\u3066\u304b\u3089\u3001<\/span><code>ENTER<\/code><span>\u3092\u62bc\u3057\u307e\u3059\u3002<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>By default, MariaDB comes with a database named 'test' that anyone can\r\naccess.  This is also intended only for testing, and should be removed\r\nbefore moving into a production environment.\r\n\r\nRemove test database and access to it? [Y\/n] Y<\/code><\/pre>\n<\/div>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u300c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001MariaDB\u306b\u306f\u8ab0\u3067\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b&#8217;test&#8217;\u3068\u3044\u3046\u540d\u524d\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u4ed8\u5c5e\u3057\u3066\u3044\u307e\u3059\u3002\u3068\u3044\u3046\u540d\u524d\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u4ed8\u5c5e\u3057\u3066\u304a\u308a\u3001\u8ab0\u3067\u3082\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3053\u308c\u3082\u30c6\u30b9\u30c8\u7528\u306a\u306e\u3067\u3001\u672c\u756a\u74b0\u5883\u306b\u79fb\u884c\u3059\u308b\u524d\u306b \u672c\u756a\u74b0\u5883\u306b\u79fb\u884c\u3059\u308b\u524d\u306b\u524a\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u300d\u3068\u306e\u3053\u3068\u306a\u306e\u3067\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u524a\u9664\u306e\u305f\u3081\u3001<code>Y<\/code><span>\u3068\u5165\u529b\u3057\u3066\u304b\u3089\u3001<\/span><code>ENTER<\/code><span>\u3092\u62bc\u3057\u307e\u3059\u3002<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>Reloading the privilege tables will ensure that all changes made so far\r\nwill take effect immediately.\r\n\r\nReload privilege tables now? [Y\/n] Y<\/code><\/pre>\n<\/div>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u300c\u6a29\u9650\u30c6\u30fc\u30d6\u30eb\u3092\u518d\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u308c\u307e\u3067\u306b\u884c\u308f\u308c\u305f\u3059\u3079\u3066\u306e\u5909\u66f4\u304c\u5373\u5ea7\u306b\u53cd\u6620\u3055\u308c\u76f4\u3061\u306b\u6709\u52b9\u306b\u306a\u308a\u307e\u3059\u3002\u300d\u3068\u306e\u3053\u3068\u306a\u306e\u3067\u3001\u76f4\u3061\u306b\u53cd\u6620\u3055\u305b\u308b\u305f\u3081\u3001<code>Y<\/code><span>\u3068\u5165\u529b\u3057\u3066\u304b\u3089\u3001<\/span><code>ENTER<\/code><span>\u3092\u62bc\u3057\u307e\u3059\u3002<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code> ... \u6210\u529f!\r\n\r\n\u5f8c\u7247\u4ed8\u3051\u4e2d...\r\n\r\n\u3059\u3079\u3066\u5b8c\u4e86\u3067\u3059!  \u4e0a\u8a18\u306e\u624b\u9806\u304c\u3059\u3079\u3066\u5b8c\u4e86\u3057\u305f\u306a\u3089\u3001MariaDB\r\n\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b89\u5168\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002\r\n\r\nMariaDB\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/code><\/pre>\n<\/div>\n<p>\u3044\u3048\u3044\u3048\u3053\u3061\u3089\u3053\u305d\ud83d\udca6<\/p>\n<p>MariaDB\u69d8\u3044\u3064\u3082\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u304a\u308a\u307e\u3059\ud83d\udca6<\/p>\n<p>\u3068\u6700\u5f8c\u306b\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u753b\u9762\u3078\u6df1\u3005\u3068\u304a\u8f9e\u5100\u3092\u3057\u305f\u3089\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h3>4 root\u3067\u306f\u306a\u3044MariaDB\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<p>\u307e\u305a\u524d\u8ff0\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u6642\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u7528\u3044\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ mysql -u root -p<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>MariaDB&gt; CREATE USER '[\u8ffd\u52a0\u30e6\u30fc\u30b6\u30fcID]'@'[\u30db\u30b9\u30c8\u540d or IP\u30a2\u30c9\u30ec\u30b9]' IDENTIFIED BY '[\u30d1\u30b9\u30ef\u30fc\u30c9]';\r\nMariaDB&gt; GRANT ALL PRIVILEGES ON [\u30b9\u30ad\u30fc\u30de\u540d].* TO '[\u8ffd\u52a0\u3057\u305f\u30e6\u30fc\u30b6\u30fcID]'@'[\u63a5\u7d9a\u5143\u30db\u30b9\u30c8\u540d\u3084IP\u30a2\u30c9\u30ec\u30b9]';\r\nMariaDB&gt; FLUSH PRIVILEGES;\r\nMariaDB&gt; quit;<\/code><\/pre>\n<\/div>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u30e6\u30fc\u30b6\u30fc\u306e\u8ffd\u52a0\u3068\u6a29\u9650\u306e\u4ed8\u4e0e\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u5916\u90e8\u304b\u3089\u63a5\u7d9a\u3092\u8a31\u53ef\u3059\u308b\u5834\u5408\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u300c%\u300d\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3092\u3064\u3051\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>MariaDB&gt; CREATE USER '[\u8ffd\u52a0\u30e6\u30fc\u30b6\u30fcID]'@'%' IDENTIFIED BY '[\u30d1\u30b9\u30ef\u30fc\u30c9]';<\/code><\/pre>\n<\/div>\n<p>\u524d\u8ff0\u3057\u305f\u300c<code>GRANT ALL PRIVILEGES ON [\u30b9\u30ad\u30fc\u30de\u540d].*<\/code>\u300d\u306e\u90e8\u5206\u3067\u6a29\u9650\u8a2d\u5b9a\u306e\u305f\u3081\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30fb\u30c6\u30fc\u30d6\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u304c\u3001\u5168\u6a29\u9650\u3092\u4ed8\u4e0e\u3059\u308b\u5834\u5408\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u300c<code>GRANT ALL<\/code>\u300d\u306eALL\u306e\u90e8\u5206\u306fselect\u3084update\u306a\u3069\u306e\u64cd\u4f5c\u5236\u9650\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/mariadb.com\/kb\/en\/grant\/\" target=\"_blank\" rel=\"nofollow noopener\" title=\"GRANT - MariaDB Knowledge Base\">GRANT &#8211; MariaDB Knowledge Base<\/a><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>MariaDB&gt; GRANT ALL PRIVILEGES ON *.* TO '[\u8ffd\u52a0\u30e6\u30fc\u30b6\u30fcID]'@'[\u30db\u30b9\u30c8\u540d or IP\u30a2\u30c9\u30ec\u30b9]';<\/code><\/pre>\n<\/div>\n<p>\u30e6\u30fc\u30b6\u30fc\u524a\u9664\u306e\u5834\u5408\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u884c\u3044\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>MariaDB&gt; DROP USER '[\u8ffd\u52a0\u30e6\u30fc\u30b6\u30fcID]'@'[\u30db\u30b9\u30c8\u540d or IP\u30a2\u30c9\u30ec\u30b9]';<\/code><\/pre>\n<\/div>\n<p>\u6700\u5f8c\u306b\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u3066\u5b8c\u4e86\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>MariaDB&gt; FLUSH PRIVILEGES;\r\nMariaDB&gt; quit;<\/code><\/pre>\n<\/div>\n<p>\u3061\u306a\u307f\u306b\u8ffd\u52a0\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u306e\u78ba\u8a8d\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>MariaDB&gt; SELECT user,host FROM mysql.user;<\/code><\/pre>\n<\/div>\n<h3>5 \u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fMariaDB\u3078\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u308b<\/h3>\n<p>\u30e6\u30fc\u30b6\u30fcID\u3092\u6307\u5b9a\u3057\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ mysql -u [\u30e6\u30fc\u30b6\u30fcID] -p\r\n<\/code><\/pre>\n<\/div>\n<p>\u6b63\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u5f8c\u3001\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u305f\u3089\u4eca\u56de\u306e\u30df\u30c3\u30b7\u30e7\u30f3\u306f\u3068\u308a\u3042\u3048\u305a\u5b8c\u4e86\u3067\u3059\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u3053\u307e\u3067\u3061\u3087\u3063\u3068\u3057\u305f\u9577\u65c5\u3067\u3057\u305f\u304c\u3001\u304a\u305d\u3089\u304f\u7686\u3055\u3093\u306e\u4e2d\u306b\u3082\u6b62\u3080\u306b\u6b62\u307e\u308c\u305aDB\u3092\u5165\u308c\u76f4\u3059\u5fc5\u8981\u304c\u3067\u3066\u304d\u3066\u3057\u307e\u3063\u305f\u65b9\u3082\u3044\u3089\u3063\u3057\u3083\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u79c1\u3082\u904e\u53bb\u73fe\u5834\u3067\u3001\u8272\u3005\u3084\u3089\u304b\u3057\u305f\u4eba\u9593\u306e\u4e00\u4eba\u3067\u3059\u306e\u3067\u304a\u6c17\u6301\u3061\u306f\u304a\u5bdf\u3057\u3057\u307e\u3059\u3002\u5931\u6557\u306e\u6839\u672c\u7684\u306a\u539f\u56e0\u3068\u3057\u3066\u3001\u5468\u308a\u304b\u3089\u717d\u3089\u308c\u305f\u308a\u3001\u304a\u5ba2\u69d8\u304b\u3089\u4ed5\u69d8\u5909\u66f4\u639b\u304b\u3063\u3066\u30d1\u30cb\u30c3\u30af\u3063\u305f\u308a\u3001\u672c\u6765\u843d\u3061\u7740\u3044\u3066\u3084\u308b\u3079\u304d\u4ed5\u4e8b\u304c\u3067\u304d\u305a\u306b\u3001\u81ea\u5206\u3067\u3082\u4e88\u60f3\u5916\u306a\u884c\u52d5\u3092\u53d6\u3063\u3066\u3057\u307e\u3046\u306a\u3069\u69d8\u3005\u306a\u539f\u56e0\u304c\u3042\u308b\u3067\u3057\u3087\u3046\u3002\u3053\u308c\u3070\u3063\u304b\u308a\u306f\u7d4c\u9a13\u7a4d\u3080\u3057\u304b\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u79c1\u3082\u307e\u3060\u307e\u3060\u672a\u719f\u8005\u306a\u306e\u3067\u3001\u305f\u304f\u3055\u3093\u306e\u5931\u6557\u304c\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u5931\u6557\u3092\u8ca1\u7523\u3068\u3057\u3066\u3001\u3053\u3061\u3089\u306e\u30d6\u30ed\u30b0\u306b<del>\u30cd\u30bf<\/del>\u8a18\u4e8b\u3068\u3057\u3066\u3042\u3052\u3066\u3044\u3051\u308c\u3070\u5f8c\u9032\u306e\u305f\u3081\u306b\u3082\u306a\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u305f\u304f\u3055\u3093\u5931\u6557\u3057\u3066\u901d\u304d\u307e\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>ERROR 2002 (HY000)\u301c\u30a8\u30e9\u30fc\u304c\u7acb\u3066\u7d9a\u3044\u305f\u306e\u3067MariaDB\u3092\u5165\u308c\u76f4\u3059\u3053\u3068\u306b\u3057\u305f ERROR 2002 (HY000): Can&#8217;t connect to local MySQL server through socket &#8216; <a class=\"mh-excerpt-more\" href=\"https:\/\/global-hack.com\/blog\/archives\/113\" title=\"ERROR 2002 (HY000): Can&#8217;t connect to local MySQL server\">&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":114,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63,29,15],"tags":[66,65,64],"class_list":{"0":"post-113","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-mariadb","8":"category-mysql","9":"category-15","10":"tag-grant","11":"tag-localhost","12":"tag-root"},"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/global-hack.com\/blog\/wp-content\/uploads\/2022\/08\/MariaDB.jpeg","_links":{"self":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":0,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/media\/114"}],"wp:attachment":[{"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/global-hack.com\/blog\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}