{"id":13294,"date":"2026-11-22T17:56:19","date_gmt":"2026-11-22T08:56:19","guid":{"rendered":"https:\/\/yorozu.cloudfree.jp\/wordpress\/?p=13294"},"modified":"2026-11-23T15:32:36","modified_gmt":"2026-11-23T06:32:36","slug":"mariadb%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/yorozu.cloudfree.jp\/wordpress\/?p=13294","title":{"rendered":"MariaDB\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\"><strong>\uff11\uff0eDBMS\uff08Database Management System\uff09\u306e\u9078\u629e<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000DBMS\u3068\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u30fb\u64cd\u4f5c\u30fb\u7ba1\u7406\u3092\u884c\u3046\u305f\u3081\u306e\u30bd\u30d5\u30c8<br><br>\u3000WordPress\u3092\u898b\u636e\u3048\u308b\u306a\u3089\u3001DBMS\u306f <strong>MariaDB<\/strong> \u304b <strong>MySQL 8.0<\/strong> \u304b<br>\u3000\u3000\u3000\uff08WordPress\u306e\u63a8\u5968\u306f MySQL 8.0\u4ee5\u4e0a \/ MariaDB 10.5\u4ee5\u4e0a\uff09<br><br>\u3000Ubuntu\u306e\u6a19\u6e96\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089apt\u3067\u5165\u308c\u308b\u306e\u304c\u6700\u3082\u7c21\u5358<br>\u3000\u3000\u3000\u66f4\u65b0\u3082\u7ba1\u7406\u3057\u3084\u3059\u3044<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>MariaDB<\/strong><\/td><td><strong>MySQL <\/strong><\/td><\/tr><tr><td>MySQL 5.1\u7cfb\u304b\u3089\u30d5\u30a9\u30fc\u30af\u3057\u8a95\u751f<\/td><td>Oracle\u793e\u304c\u958b\u767a\u30fb\u7ba1\u7406<\/td><\/tr><tr><td>JSON \u30ec\u30dd\u30fc\u30c8\u3092\u6587\u5b57\u5217\u3067\u4fdd\u5b58<br><\/td><td>JSON \u30ec\u30dd\u30fc\u30c8\u3092\u30d0\u30a4\u30ca\u30ea\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u4fdd\u5b58<\/td><\/tr><tr><td>\u30d0\u30a4\u30ca\u30ea\u30ed\u30b0\u6697\u53f7\u5316\u3068\u4e00\u6642\u30c6\u30fc\u30d6\u30eb\u6697\u53f7\u5316\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b<br><br><\/td><td>\u7ba1\u7406\u30e6\u30fc\u30b6\u30fc\u304c REDO \u30ed\u30b0\u3068 UNDO \u30ed\u30b0\u3092\u8a2d\u5b9a\u3057\u3066\u6697\u53f7\u5316\u3059\u308b\u304c\u3001\u4e00\u6642\u7684\u306a\u30c6\u30fc\u30d6\u30eb\u30b9\u30da\u30fc\u30b9\u3084\u30d0\u30a4\u30ca\u30ea\u30ed\u30b0\u306f\u6697\u53f7\u5316\u3057\u306a\u3044<\/td><\/tr><tr><td>\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u3092\u7ba1\u7406\u3059\u308b\u306e\u306b\u9069\u3057\u3066\u3044\u308b<\/td><td>\u305a\u3063\u3068\u9577\u3044\u6b74\u53f2\u304c\u3042\u308b<br><\/td><\/tr><tr><td>MariaDB \u306f MySQL \u3068\u306e\u4e0b\u4f4d\u4e92\u63db\u6027\u304c\u3042\u308b\uff08MySQL \u7528\u306b\u4f5c\u6210\u3055\u308c\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001\u5927\u304d\u306a\u5909\u66f4\u3092\u52a0\u3048\u308b\u3053\u3068\u306a\u304f MariaDB \u3067\u52d5\u4f5c\u3059\u308b\uff09<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><br><strong>\uff12\uff0e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000MariaDB\u306e\u4f8b\u3067\u8a18\u8ff0\u3059\u308b<br>\u3000\u3000\u3000MySQL\u306e\u5834\u5408\u306f <code>mariadb-server<\/code> \u3092 <code>mysql-server<\/code> \u306b\u8aad\u307f\u66ff\u3048\u308b<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>\u4f5c\u696d\u5185\u5bb9<\/td><td>\u30b3\u30de\u30f3\u30c9<\/td><\/tr><tr><td><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u66f4\u65b0\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><br><\/td><td>sudo apt update<br><br>sudo apt install mariadb-server<\/td><\/tr><tr><td><strong>\u8d77\u52d5\u3068\u81ea\u52d5\u8d77\u52d5\u306e\u78ba\u8a8d<\/strong><br><br><br><\/td><td>sudo systemctl status mariadb<br><br>sudo systemctl enable mariadb <br>\u3000\u901a\u5e38\u306f\u81ea\u52d5\u3067\u6709\u52b9\u5316\u6e08\u307f<\/td><\/tr><tr><td><strong>\u521d\u671f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a<\/strong><br><\/td><td>sudo mariadb-secure-installation<br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u9014\u4e2d\u3067\u306e\u89e3\u7b54\u4f8b<br>\u3000\u3000\u3000unix_socket\u8a8d\u8a3c\u3078\u306e\u5207\u308a\u66ff\u3048\uff1a\u73fe\u72b6\u7dad\u6301\uff08n \u3067\u3082\u53ef\uff09<br>\u3000\u3000\u3000root\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\uff1a\u4efb\u610f<br>\u3000\u3000\u3000\u533f\u540d\u30e6\u30fc\u30b6\u30fc\u306e\u524a\u9664\uff1a<strong>Y<\/strong><br>\u3000\u3000\u3000root\u306e\u30ea\u30e2\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u7981\u6b62\uff1a<strong>Y<\/strong><br>\u3000\u3000\u3000test\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u524a\u9664\uff1a<strong>Y<\/strong><br>\u3000\u3000\u3000\u6a29\u9650\u30c6\u30fc\u30d6\u30eb\u306e\u518d\u8aad\u307f\u8fbc\u307f\uff1a<strong>Y<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>\u30b3\u30de\u30f3\u30c9\u3078\u306e\u8fd4\u4fe1<\/td><td>\u5185\u5bb9\uff08\u7ffb\u8a33\uff09<\/td><\/tr><tr><td>NOTE: MariaDB is secure by default in Debian. Running this script is<br>useless at best, and misleading at worst. This script will be<br>removed in a future MariaDB release in Debian. Please read<br>\/usr\/share\/doc\/mariadb-server\/README.Debian.gz for details.<\/td><td>\u6ce8: Debian\u306b\u304a\u3044\u3066\u3001MariaDB\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30bb\u30ad\u30e5\u30a2\u306a\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u3066\u3082\u610f\u5473\u304c\u306a\u3044\u304b\u3001\u3042\u308b\u3044\u306f\u8aa4\u89e3\u3092\u62db\u304f\u6050\u308c\u3055\u3048\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001Debian\u306b\u304a\u3051\u308b\u4eca\u5f8c\u306eMariaDB\u30ea\u30ea\u30fc\u30b9\u3067\u524a\u9664\u3055\u308c\u308b\u4e88\u5b9a\u3067\u3059\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\/usr\/share\/doc\/mariadb-server\/README.Debian.gz \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u3000\u203b\u95a2\u4fc2\u306e\u306a\u3044\u30e1\u30c3\u30bb\u30fc\u30b8<\/td><\/tr><tr><td>Enter root user password or leave blank<\/td><td>root\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u304b\u3001\u7a7a\u6b04\u306e\u307e\u307e\u306b\u3057\u3066\u304f\u3060\u3055\u3044<\/td><\/tr><tr><td>Setting the root password or using the unix_socket ensures that nobody<br>can log into the MariaDB root user without the proper authorisation.<br>You already have your root account protected, so you can safely answer &#8216;n&#8217;.<br>Switch to unix_socket authentication [Y\/n]<\/td><td>root\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u304b\u3001unix_socket\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u9069\u5207\u306a\u6a29\u9650\u3092\u6301\u305f\u306a\u3044\u8005\u304cMariaDB\u306eroot\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3053\u3068\u3092\u9632\u3052\u307e\u3059\u3002 <br>\u3059\u3067\u306broot\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u4fdd\u8b77\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u306f\u300cn\u300d\u3068\u7b54\u3048\u3066\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002 unix_socket\u8a8d\u8a3c\u306b\u5207\u308a\u66ff\u3048\u307e\u3059\u304b\uff1f [Y\/n]<br>\u3000\uff4e\u3092\u5165\u529b<\/td><\/tr><tr><td>You already have your root account protected, so you can safely answer &#8216;n&#8217;.<br>Change the root password? [Y\/n]<\/td><td>\u30eb\u30fc\u30c8\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u3059\u3067\u306b\u4fdd\u8b77\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u5b89\u5fc3\u3057\u3066\u300cn\u300d\u3068\u7b54\u3048\u3066\u69cb\u3044\u307e\u305b\u3093\u3002 \u30eb\u30fc\u30c8\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3057\u307e\u3059\u304b\uff1f [Y\/n]<br>\u3000\uff4e\u3092\u5165\u529b<\/td><\/tr><tr><td>By default, a MariaDB installation has an anonymous user, allowing anyone<br>to log into MariaDB without having to have a user account created for<br>them. This is intended only for testing, and to make the installation<br>go a bit smoother. You should remove them before moving into a<br>production environment.<br>Remove anonymous users? [Y\/n]<\/td><td>MariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u521d\u671f\u72b6\u614b\u3067\u306f\u3001\u533f\u540d\u30e6\u30fc\u30b6\u30fc\u304c\u5b58\u5728\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u500b\u5225\u306e\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u306a\u304f\u3066\u3082\u3001\u8ab0\u3067\u3082MariaDB\u306b\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3042\u304f\u307e\u3067\u30c6\u30b9\u30c8\u7528\u3067\u3042\u308a\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4f5c\u696d\u3092\u5186\u6ed1\u306b\u9032\u3081\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002\u672c\u756a\u74b0\u5883\u3078\u79fb\u884c\u3059\u308b\u524d\u306b\u306f\u3001\u5fc5\u305a\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u533f\u540d\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3057\u307e\u3059\u304b\uff1f [Y\/n]<br>\u3000\uff59\u3092\u5165\u529b<\/td><\/tr><tr><td>SQL executed without errors!<br>The operation might have been successful, or it might have not done anything.<br>Normally, root should only be allowed to connect from &#8216;localhost&#8217;. This<br>ensures that someone cannot guess at the root password from the network.<br>Disallow root login remotely? [Y\/n]<\/td><td>SQL\u306f\u30a8\u30e9\u30fc\u306a\u304f\u5b9f\u884c\u3055\u308c\u307e\u3057\u305f\uff01 \u64cd\u4f5c\u304c\u6210\u529f\u3057\u305f\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u306f\u4f55\u3082\u884c\u308f\u308c\u306a\u304b\u3063\u305f\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002 \u901a\u5e38\u3001root\u30e6\u30fc\u30b6\u30fc\u306e\u63a5\u7d9a\u306f\u300clocalhost\u300d\u304b\u3089\u306e\u307f\u8a31\u53ef\u3059\u3079\u304d\u3067\u3059\u3002 \u3053\u308c\u306b\u3088\u308a\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7d4c\u7531\u3067root\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u63a8\u6e2c\u3055\u308c\u308b\u3053\u3068\u3092\u9632\u3052\u307e\u3059\u3002 root\u30e6\u30fc\u30b6\u30fc\u306b\u3088\u308b\u30ea\u30e2\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u3092\u7981\u6b62\u3057\u307e\u3059\u304b\uff1f [Y\/n]<br>\u3000y\u3092\u5165\u529b<\/td><\/tr><tr><td>SQL executed without errors!<br>The operation might have been successful, or it might have not done anything.<br>By default, MariaDB comes with a database named &#8216;test&#8217; that anyone can<br>access. This is also intended only for testing, and should be removed<br>before moving into a production environment.<br>Remove test database and access to it? [Y\/n]<\/td><td>SQL\u306f\u30a8\u30e9\u30fc\u306a\u304f\u5b9f\u884c\u3055\u308c\u307e\u3057\u305f\uff01 \u64cd\u4f5c\u304c\u6210\u529f\u3057\u305f\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u306f\u4f55\u3082\u884c\u308f\u308c\u306a\u304b\u3063\u305f\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002 MariaDB\u306b\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u300ctest\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u542b\u307e\u308c\u3066\u304a\u308a\u3001\u8ab0\u3067\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3042\u304f\u307e\u3067\u30c6\u30b9\u30c8\u7528\u3067\u3042\u308a\u3001\u672c\u756a\u74b0\u5883\u3078\u79fb\u884c\u3059\u308b\u524d\u306b\u524a\u9664\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304a\u3088\u3073\u305d\u308c\u3078\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u524a\u9664\u3057\u307e\u3059\u304b\uff1f [Y\/n]<br>\u3000y\u3092\u5165\u529b<\/td><\/tr><tr><td>Dropping test database&#8230;<br>SQL executed without errors!<br>The operation might have been successful, or it might have not done anything.<br>Removing privileges on test database&#8230;<br>SQL executed without errors!<br>The operation might have been successful, or it might have not done anything.<br>Reloading the privilege tables will ensure that all changes made so far<br>will take effect immediately.<br>Reload privilege tables now? [Y\/n]<\/td><td>&#8211; \u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u524a\u9664\u4e2d&#8230; SQL\u306f\u30a8\u30e9\u30fc\u306a\u304f\u5b9f\u884c\u3055\u308c\u307e\u3057\u305f\uff01 \u64cd\u4f5c\u304c\u6210\u529f\u3057\u305f\u304b\u3001\u3042\u308b\u3044\u306f\u4f55\u3082\u5909\u66f4\u304c\u884c\u308f\u308c\u306a\u304b\u3063\u305f\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 &#8211; \u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5bfe\u3059\u308b\u6a29\u9650\u3092\u524a\u9664\u4e2d&#8230; SQL\u306f\u30a8\u30e9\u30fc\u306a\u304f\u5b9f\u884c\u3055\u308c\u307e\u3057\u305f\uff01 \u64cd\u4f5c\u304c\u6210\u529f\u3057\u305f\u304b\u3001\u3042\u308b\u3044\u306f\u4f55\u3082\u5909\u66f4\u304c\u884c\u308f\u308c\u306a\u304b\u3063\u305f\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u6a29\u9650\u30c6\u30fc\u30d6\u30eb\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u308c\u307e\u3067\u306e\u5909\u66f4\u304c\u3059\u3079\u3066\u5373\u5ea7\u306b\u53cd\u6620\u3055\u308c\u307e\u3059\u3002 \u4eca\u3059\u3050\u6a29\u9650\u30c6\u30fc\u30d6\u30eb\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u307e\u3059\u304b\uff1f [Y\/n]<br>\u3000y\u3092\u5165\u529b<\/td><\/tr><tr><td>&#8230; Success!<br>Cleaning up&#8230;<br>All done! If you&#8217;ve completed all of the above steps, your MariaDB<br>installation should now be secure.<br>Thanks for using MariaDB!<\/td><td>&#8230; \u6210\u529f\u3057\u307e\u3057\u305f\uff01 \u5f8c\u51e6\u7406\u3092\u5b9f\u884c\u4e2d&#8230; \u3059\u3079\u3066\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff01\u4e0a\u8a18\u306e\u624b\u9806\u3092\u3059\u3079\u3066\u5b9f\u884c\u6e08\u307f\u3067\u3042\u308c\u3070\u3001MariaDB\u306e \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b89\u5168\u306a\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002 MariaDB\u3092\u3054\u5229\u7528\u3044\u305f\u3060\u304d\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\uff01<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\uff13\uff0ePHP\u304b\u3089DB\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u62e1\u5f35\u3092\u5165\u308c\u308b<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>\u4f5c\u696d\u5185\u5bb9<\/td><td>\u30b3\u30de\u30f3\u30c9<\/td><\/tr><tr><td>PHP\u62e1\u5f35\u6a5f\u80fd\u306e\u5c0e\u5165<\/td><td>sudo apt install php-mysql<br><br>sudo systemctl restart apache2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3053\u308c\u3092\u5fd8\u308c\u308b\u3068\u3001WordPress\u5c0e\u5165\u6642\u306b<br>\u3000\u3000\u3000\u300cMySQL\u62e1\u5f35\u304c\u3042\u308a\u307e\u305b\u3093\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u306b\u306a\u308b<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\uff14\uff0e\u52d5\u4f5c\u78ba\u8a8d<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>\u4f5c\u696d\u5185\u5bb9<\/td><td>\u30b3\u30de\u30f3\u30c9<\/td><\/tr><tr><td>\u52d5\u4f5c\u78ba\u8a8d<\/td><td>sudo mariadb<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000<code>MariaDB [(none)]><\/code> \u3068\u8868\u793a\u3055\u308c\u308c\u3070\u6210\u529f<br>\u3000\u3000\u3000<code>exit<\/code> \u3067\u629c\u3051\u308b<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\uff15\uff0e\u6ce8\u610f\u70b9<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000<strong>root\u3092\u30a2\u30d7\u30ea\u3067\u4f7f\u308f\u306a\u3044<\/strong><br>\u3000\u3000\u3000WordPress\u306b\u306f\u5c02\u7528\u30e6\u30fc\u30b6\u30fc\uff08\u4e0a\u306e <code>wpuser<\/code>\uff09\u3092\u4f7f\u3046<br>\u3000\u3000\u3000\u6a29\u9650\u3082\u305d\u306eDB\u3060\u3051\u306b\u9650\u5b9a\u3059\u308b<br><br>\u3000<strong>root\u306f\u30bd\u30b1\u30c3\u30c8\u8a8d\u8a3c<\/strong><br>\u3000\u3000\u3000Ubuntu\u3067\u306f <code>sudo mariadb<\/code>\u3067\u5165\u308b<br>\u3000\u3000\u3000\u3000\u3000\u30d1\u30b9\u30ef\u30fc\u30c9\u4ed8\u304d\u306e\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u7528root\u306f\u4f5c\u3089\u306a\u3044<br><br>\u3000<strong>\u5916\u90e8\u516c\u958b\u3057\u306a\u3044<\/strong><br>\u3000\u3000\u3000\u521d\u671f\u8a2d\u5b9a\u3067\u306f <code>127.0.0.1<\/code> \u306e\u307f\u3067\u5f85\u3061\u53d7\u3051\u308b<br>\u3000\u3000\u3000\u3000\u3000WordPress\u3092\u540c\u3058\u30b5\u30fc\u30d0\u30fc\u3067\u52d5\u304b\u3059\u306a\u3089\u5909\u66f4\u4e0d\u8981<br>\u3000\u3000\u3000\u3000\u3000\u30dd\u30fc\u30c83306\u3092\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u958b\u653e\u3057\u306a\u3044<br><br>\u3000<strong>\u6587\u5b57\u30b3\u30fc\u30c9\u306f utf8mb4<\/strong><br>\u3000\u3000\u3000\u65e5\u672c\u8a9e\u3084\u7d75\u6587\u5b57\u3092\u6271\u3046\u305f\u3081\u3001DB\u4f5c\u6210\u6642\u306b\u5fc5\u305a\u6307\u5b9a\u3059\u308b<br><br>\u3000<strong>\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u7ba1\u7406<\/strong><br>\u3000\u3000\u3000SQL\u5185\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5fc5\u305a\u81ea\u5206\u3067\u5f37\u3044\u3082\u306e\u306b\u7f6e\u304d\u63db\u3048\u308b<br>\u3000\u3000\u3000\u3000\u3000\u63a7\u3048\u3092\u5b89\u5168\u306a\u5834\u6240\u306b\u4fdd\u7ba1\u3059\u308b<br>\u3000\u3000\u3000WordPress\u306e <code>wp-config.php<\/code> \u306b\u5f8c\u3067\u5165\u529b\u3059\u308b<br><br>\u3000<strong>MySQL\u3068MariaDB\u306e\u6df7\u5728\u7981\u6b62<\/strong><br>\u3000\u3000\u3000\u3069\u3061\u3089\u304b\u4e00\u65b9\u3060\u3051\u3092\u5165\u308c\u308b<br>\u3000\u3000\u3000\u3000\u3000\u4e57\u308a\u63db\u3048\u308b\u5834\u5408\u306f\u3001\u5148\u306b\u5b8c\u5168\u306b\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<br><br>\u3000<strong>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/strong><br>\u3000\u3000\u3000<code>mysqldump<\/code> \u306b\u3088\u308b\u5b9a\u671f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u4ed5\u7d44\u307f\u3092\u6c7a\u3081\u3066\u304a\u304f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30fbMariaDB\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[103],"class_list":["post-13294","post","type-post","status-publish","format-standard","hentry","category-99_","tag-103"],"_links":{"self":[{"href":"https:\/\/yorozu.cloudfree.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/13294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yorozu.cloudfree.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yorozu.cloudfree.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yorozu.cloudfree.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/yorozu.cloudfree.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13294"}],"version-history":[{"count":18,"href":"https:\/\/yorozu.cloudfree.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/13294\/revisions"}],"predecessor-version":[{"id":13330,"href":"https:\/\/yorozu.cloudfree.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/13294\/revisions\/13330"}],"wp:attachment":[{"href":"https:\/\/yorozu.cloudfree.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yorozu.cloudfree.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yorozu.cloudfree.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}