{"id":28351,"date":"2023-08-24T12:41:37","date_gmt":"2023-07-31T08:51:27","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb\/"},"modified":"2025-08-12T07:43:16","modified_gmt":"2025-08-11T23:43:16","slug":"%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb\/","title":{"rendered":"\u5728macOS\u4e0a\u4f7f\u7528MariaDB"},"content":{"rendered":"<p>\u5207\u6362\u5230MairaDB\u65f6\u7684MySQL\u5907\u5fd8\u5f55\u3002<\/p>\n<p>\u7531\u4e8e\u5c1d\u8bd5\u8ba9MySQL\u4e0e\u5176\u4ed6\u7a0b\u5e8f\u4e00\u8d77\u8fd0\u884c\u65f6\u9047\u5230\u4e86\u5404\u79cd\u9519\u8bef\uff0c\u6240\u4ee5\u6682\u65f6\u653e\u5f03\u4e86\u8fd9\u4e2a\u65b9\u6848\u3002<br \/>\n\u5728\u5378\u8f7dMySQL\u540e\uff0c\u5c06\u91cd\u65b0\u5b89\u88c5MariaDB\u3002<\/p>\n<p>\u6211\u4eec\u5047\u8bbe\u5df2\u5b89\u88c5\u4e86Homebrew\u3002<\/p>\n<h1>\u5b89\u88c5MariaDB<\/h1>\n<p>\u4f7f\u7528Homebrew\u5b89\u88c5MariaDB\u3002<\/p>\n<pre class=\"post-pre\"><code>% brew install mariadb\r\n<\/code><\/pre>\n<p>\u7136\u540e\u81ea\u52a8\u5f00\u59cb\u5b89\u88c5\uff0c\u8bf7\u7a0d\u7b49\u7247\u523b\u3002<\/p>\n<pre class=\"post-pre\"><code>A \"\/etc\/my.cnf\" from another install may interfere with a Homebrew-built\r\nserver starting up correctly.\r\n\r\nMySQL is configured to only allow connections from localhost by default\r\n\r\nTo start mariadb now and restart at login:\r\n  brew services start mariadb\r\nOr, if you don't want\/need a background service you can just run:\r\n  \/usr\/local\/opt\/mariadb\/bin\/mysqld_safe --datadir\\=\/usr\/local\/var\/mysql\r\n<\/code><\/pre>\n<p>\u4e00\u65e6\u51fa\u73b0\u8fd9\u4e2a\uff0c\u5b89\u88c5\u5c31\u5b8c\u6210\u4e86\u3002<\/p>\n<h1>2. MariaDB\u7684\u542f\u52a8<\/h1>\n<p>\u5b89\u88c5\u5b8c\u4e4b\u540e\u9a6c\u4e0a\u542f\u52a8\u5427\u3002<\/p>\n<pre class=\"post-pre\"><code>% brew services start mariadb\r\n<\/code><\/pre>\n<p>\u5982\u679c\u6ca1\u6709\u95ee\u9898\uff0c\u5c06\u663e\u793a&#8221;\u6210\u529f\u542f\u52a8&#8217;mariadb&#8217;\uff08\u6807\u7b7e\uff1ahomebrew.mxcl.mariadb\uff09&#8221;\u3002<\/p>\n<p>\u7528ps\u547d\u4ee4\u6765\u786e\u8ba4\u3002<\/p>\n<pre class=\"post-pre\"><code>% ps -ax | grep mysql\r\n 7888 ??         0:00.03 \/bin\/sh \/usr\/local\/opt\/mariadb\/bin\/mysqld_safe --datadir=\/usr\/local\/var\/mysql\r\n 7961 ??         0:00.30 \/usr\/local\/opt\/mariadb\/bin\/mariadbd --basedir=\/usr\/local\/opt\/mariadb --datadir=\/usr\/local\/var\/mysql --plugin-dir=\/usr\/local\/opt\/mariadb\/lib\/plugin --log-error=\/usr\/local\/var\/mysql\/MacBookPro.local.err --pid-file=MacBookPro.local.pid\r\n 8281 ttys000    0:00.00 grep mysql\r\n<\/code><\/pre>\n<p>\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0c\u8981\u505c\u6b62Mariadb\uff1a<br \/>\n% brew services stop mariadb<br \/>\n\u8981\u91cd\u65b0\u542f\u52a8\uff1a<br \/>\n% brew services restart mariadb<br \/>\n\u3002<\/p>\n<h1>3. \u5b89\u5168\u8bbe\u7f6e<\/h1>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ea\u6709root\u5e10\u6237\uff0c\u5e76\u4e14root\u5e10\u6237\u6ca1\u6709\u8bbe\u7f6e\u5bc6\u7801\uff0c\u6240\u4ee5\u9996\u5148\u8981\u4e3aroot\u5e10\u6237\u8bbe\u7f6e\u5bc6\u7801\u3002<\/p>\n<p>% \u4f7f\u7528sudo\u547d\u4ee4\u8fd0\u884cmysql_secure_installation\u547d\u4ee4<\/p>\n<p>\u4e0d\u8981\u5fd8\u8bb0\u4f7f\u7528sudo\u6765\u6267\u884c\u3002<br \/>\n\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0cmysql_secure_installation\u5df2\u7ecf\u4e0d\u63a8\u8350\u4f7f\u7528\u4e86\uff0c\u6211\u4eec\u5c3d\u53ef\u80fd\u4f7f\u7528mariadb-secure-installation\u3002<\/p>\n<pre class=\"post-pre\"><code>In 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): \r\n<\/code><\/pre>\n<p>\u7531\u4e8e\u662f\u521a\u521a\u5b89\u88c5\uff0c\u6240\u4ee5\u6ca1\u6709\u8bbe\u7f6eroot\u5bc6\u7801\u3002\u8bf7\u6309Enter\u952e\u3002<\/p>\n<pre class=\"post-pre\"><code>Setting 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] \r\n<\/code><\/pre>\n<p>\u4f60\u8981\u5207\u6362\u5230unix_socket\u8ba4\u8bc1\u5417\uff1f\u8fd9\u662f\u4e00\u4e2a\u95ee\u9898\u3002<br \/>\nunix_socket\u8ba4\u8bc1\u662f\u6307\u5f53\u64cd\u4f5c\u7cfb\u7edf\u7684\u7528\u6237\u540d\u548cMariaDB\u7684\u7528\u6237\u540d\u76f8\u540c\u65f6\uff0c\u53ef\u4ee5\u65e0\u9700\u5bc6\u7801\u767b\u5f55\u7684\u8ba4\u8bc1\u65b9\u5f0f\u3002<br \/>\n\u867d\u7136\u53ef\u80fd\u6709\u76f8\u540c\u7684\u60c5\u51b5\uff0c\u4f46\u662f\u4f3c\u4e4e\u66f4\u5e38\u89c1\u7684\u662f\u4e0d\u76f8\u540c\u7684\u60c5\u51b5\uff0c\u6240\u4ee5\u8f93\u5165&#8221;n&#8221;\u3002<\/p>\n<pre class=\"post-pre\"><code>Change the root password? [Y\/n] Y\r\nNew password: \r\nRe-enter new password: \r\n<\/code><\/pre>\n<p>\u8bf7\u8bbe\u7f6e\uff08\u6216\u66f4\u6539\uff09\u8def\u7531\u5668\u5bc6\u7801\uff0c\u8f93\u5165\u6240\u8981\u8bbe\u7f6e\u7684\u5bc6\u7801\u540e\uff0c\u518d\u6b21\u8f93\u5165\u4ee5\u786e\u8ba4\u3002<\/p>\n<pre class=\"post-pre\"><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] \r\n<\/code><\/pre>\n<p>\u300c\u9ed8\u8ba4\u6709\u4e00\u4e2a\u533f\u540d\u7528\u6237\u8bbe\u7f6e\u300d\uff0c\u8fd9\u53e5\u8bdd\u8868\u793a\u53ef\u4ee5\u5220\u9664\u5b83\u6ca1\u6709\u95ee\u9898\uff0c\u9009\u62e9&#8221;Y&#8221;\u3002<\/p>\n<pre class=\"post-pre\"><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]\r\n<\/code><\/pre>\n<p>\u662f\u5426\u5141\u8bb8\u4ee5root\u7528\u6237\u8fdc\u7a0b\u767b\u5f55\u3002<br \/>\n\u6839\u636e\u5f00\u53d1\u73af\u5883\u7684\u9700\u6c42\u8fdb\u884c\u9002\u5f53\u8c03\u6574\uff0c\u672c\u6b21\u9009\u62e9\u4e3a&#8221;n&#8221;\u3002<\/p>\n<pre class=\"post-pre\"><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]\r\n<\/code><\/pre>\n<p>\u662f\u5426\u5220\u9664\u540d\u4e3atest\u7684\u9ed8\u8ba4\u6570\u636e\u5e93\uff1f<br \/>\n\u56e0\u4e3a\u4e0d\u9700\u8981\uff0c\u6240\u4ee5\u9009\u62e9&#8221;Y&#8221;\u3002<\/p>\n<pre class=\"post-pre\"><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]\r\n<\/code><\/pre>\n<p>\u662f\u5426\u786e\u5b9a\u8981\u786e\u4fdd\u66f4\u6539\u8bbe\u7f6e\u88ab\u53cd\u6620\uff1f<br \/>\n\u5f53\u7136\u4f1a\u88ab\u53cd\u6620\uff0c\u6ca1\u6709\u4e0d\u88ab\u53cd\u6620\u7684\u7406\u7531\uff0c\u6240\u4ee5\u9009\u62e9&#8221;Y&#8221;\u3002<\/p>\n<pre class=\"post-pre\"><code>All done!  If you've completed all of the above steps, your MariaDB\r\ninstallation should now be secure.\r\n\r\nThanks for using MariaDB!\r\n<\/code><\/pre>\n<p>\u8fd9\u6837\u5b89\u5168\u8bbe\u7f6e\u5c31\u5b8c\u6210\u4e86\u3002<\/p>\n<h1>4. \u521b\u5efa\u7528\u6237<\/h1>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u7528\u4e8e\u4f7f\u7528MariaDB\u7684\u7528\u6237\u3002\u9996\u5148\u4ee5root\u8d26\u6237\u767b\u5f55MariaDB\u3002<\/p>\n<pre class=\"post-pre\"><code>% mysql -u root -p\r\nelcome to the MariaDB monitor.  Commands end with ; or \\g.\r\nYour MariaDB connection id is 14\r\nServer version: 11.1.2-MariaDB Homebrew\r\n\r\nCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nMariaDB [(none)]&gt;\r\n<\/code><\/pre>\n<p>\u786e\u8ba4\u5f53\u524d\u6ce8\u518c\u7528\u6237<br \/>\nMariaDB [(none)]&gt; \u9009\u62e9 mysql.user \u8868\u4e2d\u7684 User\u3001Host \u548c Password<\/p>\n<pre class=\"post-pre\"><code>+-------------+-----------+-------------------------------------------+\r\n| User        | Host      | Password                                  |\r\n+-------------+-----------+-------------------------------------------+\r\n| mariadb.sys | localhost |                                           |\r\n| root        | localhost | ***************************************** |\r\n| OSuser      | localhost | invalid                                   |\r\n| PUBLIC      |           |                                           |\r\n+-------------+-----------+-------------------------------------------+\r\n4 rows in set (0.003 sec)\r\n<\/code><\/pre>\n<p>\u5927\u6982\u662f\u8fd9\u6837\u7684\u611f\u89c9\u3002<br \/>\n\u6211\u8ba4\u4e3aOS\u7528\u6237\u662f\u6ce8\u518c\u5728\u7ec8\u7aef\u4e0a\u7684\u767b\u5f55\u7528\u6237\u3002<br \/>\n\u4f60\u53ef\u4ee5\u53ea\u6539\u53d8\u8fd9\u4e2a\u7528\u6237\u7684\u5bc6\u7801\u6765\u4f7f\u7528\uff0c\u4e5f\u53ef\u4ee5\u65b0\u5efa\u4e00\u4e2a\u7528\u6237\u4e5f\u53ef\u4ee5\u3002<\/p>\n<pre class=\"post-pre\"><code>MariaDB [(none)]&gt; GRANT ALL ON *.* TO 'username'@'localhost' IDENTIFIED BY '********';\r\nQuery OK, 0 rows affected (0.022 sec)\r\n<\/code><\/pre>\n<p>\u5982\u679c\u60a8\u6253\u7b97\u7ee7\u7eed\u4f7f\u7528\u73b0\u6709\u7684OS\u7528\u6237\uff0c\u8bf7\u4f7f\u7528OS\u7528\u6237\uff1b\u5982\u679c\u60a8\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7528\u6237\uff0c\u8bf7\u8f93\u5165\u4e00\u4e2a\u65b0\u7684\u7528\u6237\u540d\u3002\u5728\u201c********\u201d\u5904\u586b\u5165\u4efb\u610f\u7684\u5bc6\u7801\u3002<\/p>\n<pre class=\"post-pre\"><code>+-------------+-----------+-------------------------------------------+\r\n| User        | Host      | Password                                  |\r\n+-------------+-----------+-------------------------------------------+\r\n| mariadb.sys | localhost |                                           |\r\n| root        | localhost | ***************************************** |\r\n| OSuser      | localhost | ***************************************** |\r\n| PUBLIC      |           |                                           |\r\n| NewUser     | localhost | ***************************************** |\r\n+-------------+-----------+-------------------------------------------+\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3067\u30e6\u30fc\u30b6\u4f5c\u6210\u306f\u5b8c\u4e86\u3067\u3059\u3002<br \/>\nMariaDB\u304b\u3089\u629c\u3051\u3066\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>MariaDB [(none)]&gt; exit\r\nBye\r\n\r\n% mysql -u username -p\r\nEnter password: \r\nWelcome to the MariaDB monitor.  Commands end with ; or \\g.\r\nYour MariaDB connection id is 11\r\nServer version: 11.1.2-MariaDB Homebrew\r\n\r\nCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nMariaDB [(none)]&gt; \r\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u4e2a\uff0cMariaDB\u5df2\u7ecf\u51c6\u5907\u5c31\u7eea\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5207\u6362\u5230MairaDB\u65f6\u7684MySQL\u5907\u5fd8\u5f55\u3002 \u7531\u4e8e\u5c1d\u8bd5\u8ba9MySQL\u4e0e\u5176\u4ed6\u7a0b\u5e8f\u4e00\u8d77\u8fd0\u884c\u65f6\u9047\u5230\u4e86\u5404\u79cd\u9519\u8bef\uff0c\u6240\u4ee5\u6682\u65f6\u653e [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-28351","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728macOS\u4e0a\u4f7f\u7528MariaDB - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u5728macOS\u4e0a\u4f7f\u7528MariaDB\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728macos\u4e0a\u4f7f\u7528mariadb\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728macOS\u4e0a\u4f7f\u7528MariaDB\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u5728macOS\u4e0a\u4f7f\u7528MariaDB\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728macos\u4e0a\u4f7f\u7528mariadb\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-31T08:51:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-11T23:43:16+00:00\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb\/\",\"name\":\"\u5728macOS\u4e0a\u4f7f\u7528MariaDB - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-07-31T08:51:27+00:00\",\"dateModified\":\"2025-08-11T23:43:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"description\":\"\u5173\u4e8e\u5728macOS\u4e0a\u4f7f\u7528MariaDB\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728macOS\u4e0a\u4f7f\u7528MariaDB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728macOS\u4e0a\u4f7f\u7528MariaDB - Blog - Silicon Cloud","description":"\u5173\u4e8e\u5728macOS\u4e0a\u4f7f\u7528MariaDB\u7684\u6280\u672f\u6587\u7ae0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728macos\u4e0a\u4f7f\u7528mariadb\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728macOS\u4e0a\u4f7f\u7528MariaDB","og_description":"\u5173\u4e8e\u5728macOS\u4e0a\u4f7f\u7528MariaDB\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728macos\u4e0a\u4f7f\u7528mariadb\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-31T08:51:27+00:00","article_modified_time":"2025-08-11T23:43:16+00:00","author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb\/","name":"\u5728macOS\u4e0a\u4f7f\u7528MariaDB - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-07-31T08:51:27+00:00","dateModified":"2025-08-11T23:43:16+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"description":"\u5173\u4e8e\u5728macOS\u4e0a\u4f7f\u7528MariaDB\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728macOS\u4e0a\u4f7f\u7528MariaDB"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8macos%e4%b8%8a%e4%bd%bf%e7%94%a8mariadb\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/28351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=28351"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/28351\/revisions"}],"predecessor-version":[{"id":93961,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/28351\/revisions\/93961"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=28351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=28351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=28351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}