{"id":6779,"date":"2021-06-30T10:26:02","date_gmt":"2021-06-30T02:26:02","guid":{"rendered":"https:\/\/www.gbase8.cn\/?p=6779"},"modified":"2024-03-12T09:41:48","modified_gmt":"2024-03-12T01:41:48","slug":"gbase-8a%e7%9a%84%e5%85%a8%e6%96%87%e7%b4%a2%e5%bc%95%e5%8a%9f%e8%83%bd%e5%ae%89%e8%a3%85%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/6779","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a\u7684\u5168\u6587\u7d22\u5f15\u529f\u80fd\u5b89\u88c5\u90e8\u7f72\u65b9\u6cd5"},"content":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecdGBase 8a MPP\u96c6\u7fa4\u7684\u5168\u6587\u7d22\u5f15\u7684\u5b89\u88c5\u65b9\u6cd5\u3002\u8be5\u529f\u80fd\u662f\u901a\u8fc7\u63d2\u4ef6\u7684\u5f62\u5f0f\u5b9e\u73b0\uff0c\u9700\u8981\u5355\u72ec\u5b89\u88c5\u3002\u7528\u6237\u5728\u4f7f\u7528\u65f6\u5982\u679c\u9700\u8981\u5168\u6587\u7d22\u5f15\uff0c\u8bf7\u4e00\u8d77\u5411\u5382\u5546\u7d22\u53d6\u5bf9\u5e94\u7684\u5168\u6587\u7d22\u5f15\u63d2\u4ef6\u3002 \u8be5\u63d2\u4ef6\u53ef\u4ee5\u5728\u96c6\u7fa4\u5b89\u88c5\u540e\u7684\u4efb\u4f55\u65f6\u523b\uff0c\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n\n\n\n<p>\u672c\u6587\u53ea\u4ecb\u7ecdV95\u7248\u672c\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Directory Navigation<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2b2ca129d08\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2b2ca129d08\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.gbase8.cn\/en\/6779\/#%E5%8F%82%E8%80%83\" >\u53c2\u8003<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/6779\/#%E7%8E%AF%E5%A2%83\" >\u73af\u5883<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.gbase8.cn\/en\/6779\/#%E5%AE%89%E8%A3%85%E5%8C%85\" >\u5b89\u88c5\u5305<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.gbase8.cn\/en\/6779\/#%E8%A7%A3%E5%8E%8B%E7%BC%A9\" >\u89e3\u538b\u7f29<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.gbase8.cn\/en\/6779\/#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6\" >\u914d\u7f6e\u6587\u4ef6<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.gbase8.cn\/en\/6779\/#%E5%81%9C%E6%9C%8D%E5%8A%A1\" >\u505c\u670d\u52a1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.gbase8.cn\/en\/6779\/#%E5%AE%89%E8%A3%85\" >Install<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.gbase8.cn\/en\/6779\/#%E5%90%AF%E5%8A%A8%E6%9C%8D%E5%8A%A1\" >\u542f\u52a8\u670d\u52a1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.gbase8.cn\/en\/6779\/#%E6%A3%80%E9%AA%8C\" >\u68c0\u9a8c<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.gbase8.cn\/en\/6779\/#%E5%BB%BA%E8%A1%A8%E5%92%8C%E6%95%B0%E6%8D%AE\" >\u5efa\u8868\u548c\u6570\u636e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.gbase8.cn\/en\/6779\/#%E5%BB%BA%E7%B4%A2%E5%BC%95\" >\u5efa\u7d22\u5f15<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.gbase8.cn\/en\/6779\/#%E6%B5%8B%E8%AF%95%E5%85%A8%E6%96%87%E7%B4%A2%E5%BC%95%E6%9F%A5%E8%AF%A2\" >\u6d4b\u8bd5\u5168\u6587\u7d22\u5f15\u67e5\u8be2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.gbase8.cn\/en\/6779\/#%E5%A4%9A%E5%85%A8%E6%96%87%E5%88%97%E6%B5%8B%E8%AF%95\" >\u591a\u5168\u6587\u5217\u6d4b\u8bd5<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83\"><\/span>\u53c2\u8003<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/www.gbase8.cn\/en\/6779\/\">GBase 8a\u5168\u6587\u7d22\u5f15\u529f\u80fd\u5b89\u88c5\u90e8\u7f72\u65b9\u6cd5<\/a><br><a href=\"https:\/\/www.gbase8.cn\/en\/6981\/\">GBase 8a\u5168\u6587\u7d22\u5f15\u521b\u5efa\u3001\u66f4\u65b0\u548c\u5220\u9664\u65b9\u6cd5<br><\/a><a href=\"https:\/\/www.gbase8.cn\/en\/6939\/\">GBase 8a\u5168\u6587\u7d22\u5f15\u5e38\u7528\u914d\u7f6e\u6587\u4ef6\u548c\u914d\u7f6e\u53c2\u6570<br><\/a><a href=\"https:\/\/www.gbase8.cn\/en\/6863\/\">GBase 8a\u5168\u6587\u7d22\u5f15\u63d0\u9ad8\u6a21\u7cca\u67e5\u8be2\u6027\u80fd\u4f7f\u7528\u6837\u4f8b<\/a><br><a href=\"https:\/\/www.gbase8.cn\/en\/6997\/\">GBase 8a\u5168\u6587\u7d22\u5f15\u591a\u5206\u8bcd\u5668\u7684\u529f\u80fd\u4ecb\u7ecd\u548c\u4f7f\u7528<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%8E%AF%E5%A2%83\"><\/span>\u73af\u5883<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>2\u8282\u70b9\u96c6\u7fa4\uff0c1\u4e2a\u8c03\u5ea6\u8282\u70b9\uff0c2\u4e2a\u6570\u636e\u8282\u70b9(\u5176\u4e2d1\u4e2a\u590d\u7528)\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@gbase_rh7_001 ~]$  gcadmin\nCLUSTER STATE:         ACTIVE\nVIRTUAL CLUSTER MODE:  NORMAL\n\n=============================================================\n|           GBASE COORDINATOR CLUSTER INFORMATION           |\n=============================================================\n|   NodeName   | IpAddress  | gcware | gcluster | DataState |\n-------------------------------------------------------------\n| coordinator1 | 10.0.2.101 |  OPEN  |   OPEN   |     0     |\n-------------------------------------------------------------\n=========================================================================================================\n|                                    GBASE DATA CLUSTER INFORMATION                                     |\n=========================================================================================================\n| NodeName |                IpAddress                 | DistributionId | gnode | syncserver | DataState |\n---------------------------------------------------------------------------------------------------------\n|  node1   |                10.0.2.101                |       1        | OPEN  |    OPEN    |     0     |\n---------------------------------------------------------------------------------------------------------\n|  node2   |                10.0.2.115                |       1        | OPEN  |    OPEN    |     0     |\n---------------------------------------------------------------------------------------------------------<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%89%E8%A3%85%E5%8C%85\"><\/span>\u5b89\u88c5\u5305<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>GBase8a_MPP_Cluster-NoLicense-fulltext-9.5.2.37-redhat7.3-x86_64.tar.bz2<\/code><\/pre>\n\n\n\n<p>\u8981\u6ce8\u610f\u5176\u7248\u672c9.5.2.37\u8981\u548c\u96c6\u7fa4\u7684\u7248\u672c\u5bf9\u5e94\uff0c\u5e76\u6838\u5bf9\u64cd\u4f5c\u7cfb\u7edfredhat7 \u4ee5\u53caCPU\u79cd\u7c7bX86_64\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%A7%A3%E5%8E%8B%E7%BC%A9\"><\/span>\u89e3\u538b\u7f29<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u901a\u8fc7tar\u547d\u4ee4\u8fdb\u884c\u89e3\u538b\u7f29\u3002\u8bf7\u6ce8\u610f\u5728V95\u7248\u672c\u53ea\u4f7f\u7528\u64cd\u4f5c\u7cfb\u7edfdbaUser\uff0c\u4e00\u822c\u662fgbase\uff0c\u8fdb\u884c\u64cd\u4f5c\uff0c\u6240\u4ee5\u89e3\u538b\u4e5f\u653e\u5230gbase\u80fd\u8bbf\u95ee\u7684\u76ee\u5f55\u4e0b\u3002\u89e3\u538b\u7f29\u5305\u81ea\u5e26_fulltext\u5b57\u6837\uff0c\u4e0d\u4f1a\u548c\u96c6\u7fa4\u5b89\u88c5\u5305\u4ea7\u751f\u51b2\u7a81\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@gbase_rh7_001 ~]$ tar xvf GBase8a_MPP_Cluster-NoLicense-fulltext-9.5.2.37-redhat7.3-x86_64.tar.bz2\ngcinstall_fulltext\/\ngcinstall_fulltext\/gcwareGroup.json\ngcinstall_fulltext\/fulltext.py\ngcinstall_fulltext\/license.txt\ngcinstall_fulltext\/InstallTar.py\ngcinstall_fulltext\/FileCheck.py\ngcinstall_fulltext\/rootPwd.json\ngcinstall_fulltext\/extendCfg.xml\ngcinstall_fulltext\/replaceStop.py\ngcinstall_fulltext\/SSHThread.py\ngcinstall_fulltext\/demo.options\ngcinstall_fulltext\/RestoreLocal.py\ngcinstall_fulltext\/InstallFuns.py\ngcinstall_fulltext\/rmt.py\ngcinstall_fulltext\/example.xml\ngcinstall_fulltext\/CGConfigChecker.py\ngcinstall_fulltext\/pexpect.py\ngcinstall_fulltext\/cluster.conf\ngcinstall_fulltext\/gccopy.py\ngcinstall_fulltext\/gbase_data_timezone.sql\ngcinstall_fulltext\/gcexec.py\ngcinstall_fulltext\/unInstall_fulltext.py\ngcinstall_fulltext\/SetSysEnv.py\ngcinstall_fulltext\/CorosyncConf.py\ngcinstall_fulltext\/BUILDINFO\ngcinstall_fulltext\/dependRpms\ngcinstall_fulltext\/gcinstall_fulltext.py\ngcinstall_fulltext\/fulltext.tar.bz2\n&#91;gbase@gbase_rh7_001 ~]$ <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6\"><\/span>\u914d\u7f6e\u6587\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u914d\u7f6e\u6587\u4ef6\u548c\u96c6\u7fa4\u5b89\u88c5\u5305\u5b8c\u5168\u4e00\u81f4\u3002\u8fdb\u5165\u89e3\u538b\u7f29\u540e\u7684gcinstall_fulltext\u76ee\u5f55\uff0c\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u3002\u5176\u4e2ddemo.options\u53ea\u662f\u4e2a\u4f8b\u5b50\uff0c\u914d\u7f6e\u6587\u4ef6\u540d\u968f\u610f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@gbase_rh7_001 gcinstall_fulltext]$ cat demo.options\ninstallPrefix= \/opt\/gbase\ncoordinateHost = 10.0.2.101\ncoordinateHostNodeID = 101\ndataHost = 10.0.2.101,10.0.2.115\n#existCoordinateHost =10.0.2.101\n#existDataHost =10.0.2.101\ndbaUser = gbase\ndbaGroup = gbase\ndbaPwd = 'gbase1234'\nrootPwd = ''\n#rootPwdFile = rootPwd.json\n#updateConf=demo.conf\n&#91;gbase@gbase_rh7_001 gcinstall_fulltext]$<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%81%9C%E6%9C%8D%E5%8A%A1\"><\/span>\u505c\u670d\u52a1<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u6240\u6709\u8c03\u5ea6\u548c\u6570\u636e\u8282\u70b9\u90fd\u505c\u6389\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@gbase_rh7_001 gcinstall_fulltext]$ gcluster_services all stop\nStopping GCMonit success!\nStopping gcrecover :                                       &#91;  OK  ]\nStopping gcluster :                                        &#91;  OK  ]\nStopping gcware :                                          &#91;  OK  ]\nStopping gbase :                                           &#91;  OK  ]\nStopping syncserver :                                      &#91;  OK  ]\n&#91;gbase@gbase_rh7_001 gcinstall_fulltext]$ <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%89%E8%A3%85\"><\/span>Install<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>V9\u7684\u53c2\u6570\u53ea\u6709\u64cd\u4f5c\u7cfb\u7edfgbase\u7528\u6237\u7684\u5bc6\u7801\uff0c\u7528\u4e8e\u8fdc\u7a0b\u6267\u884c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@gbase_rh7_001 gcinstall_fulltext]$ .\/gcinstall_fulltext.py --dbaUserPwd=gbase1234\nCoordinateHost:\n10.0.2.101\nDataHost:\n10.0.2.101    10.0.2.115\nAre you sure to install fulltext on these gcluster nodes. (&#91;Y,y]\/&#91;N,n])? y\n10.0.2.101      Install fulltext successfully.\n10.0.2.115      Install fulltext successfully.\n&#91;gbase@gbase_rh7_001 gcinstall_fulltext]$ <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%90%AF%E5%8A%A8%E6%9C%8D%E5%8A%A1\"><\/span>\u542f\u52a8\u670d\u52a1<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u542f\u52a8\u6240\u6709\u8282\u70b9\u7684\u6570\u636e\u5e93\u670d\u52a1\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@gbase_rh7_001 gcinstall_fulltext]$ gcluster_services all start\nStarting gcware :                                          &#91;  OK  ]\nStarting gcluster :                                        &#91;  OK  ]\nStarting gcrecover :                                       &#91;  OK  ]\nStarting gbase :                                           &#91;  OK  ]\nStarting syncserver :                                      &#91;  OK  ]\nStarting GCMonit success!\n&#91;gbase@gbase_rh7_001 gcinstall_fulltext]$ <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%A3%80%E9%AA%8C\"><\/span>\u68c0\u9a8c<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%BB%BA%E8%A1%A8%E5%92%8C%E6%95%B0%E6%8D%AE\"><\/span>\u5efa\u8868\u548c\u6570\u636e<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase&gt; create table t1(id int, name varchar(100), dept int,birth date,memo longtext);\nQuery OK, 0 rows affected (Elapsed: 00:00:00.13)\n\ngbase&gt; show create table t1;\n+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n| Table | Create Table                                                                                                                                                                                                                         |\n+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n| t1    | CREATE TABLE \"t1\" (\n  \"id\" int(11) DEFAULT NULL,\n  \"name\" varchar(100) DEFAULT NULL,\n  \"dept\" int(11) DEFAULT NULL,\n  \"birth\" date DEFAULT NULL,\n  \"memo\" longtext\n) ENGINE=EXPRESS DEFAULT CHARSET=utf8 TABLESPACE='sys_tablespace' |\n+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n1 row in set (Elapsed: 00:00:00.00)\n\ngbase&gt; insert into t1 values(1,'\u5f20\u4e09',1,'1990-09-09','\u5f20\u4e09\u7684\u4e2a\u4eba\u5efa\u7acb\u548c\u5907\u6ce8');\nQuery OK, 1 row affected (Elapsed: 00:00:00.10)\n\ngbase&gt; insert into t1 values(2,'\u674e\u56db',1,'1980-08-08','\u674e\u56db\u7684\u4e2a\u4eba\u5efa\u7acb\u548c\u5907\u6ce8');\nQuery OK, 1 row affected (Elapsed: 00:00:00.12)\n\ngbase&gt; select * from t1;\n+------+--------+------+------------+--------------------------------+\n| id   | name   | dept | birth      | memo                           |\n+------+--------+------+------------+--------------------------------+\n|    1 | \u5f20\u4e09   |    1 | 1990-09-09 | \u5f20\u4e09\u7684\u4e2a\u4eba\u5efa\u7acb\u548c\u5907\u6ce8           |\n|    2 | \u674e\u56db   |    1 | 1980-08-08 | \u674e\u56db\u7684\u4e2a\u4eba\u5efa\u7acb\u548c\u5907\u6ce8           |\n+------+--------+------+------------+--------------------------------+\n2 rows in set (Elapsed: 00:00:00.01)<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%BB%BA%E7%B4%A2%E5%BC%95\"><\/span>\u5efa\u7d22\u5f15<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase&gt; create fulltext index idx_memo on t1(memo);\nQuery OK, 0 rows affected (Elapsed: 00:00:00.16)\nRecords: 0  Duplicates: 0  Warnings: 0\n\ngbase&gt; update index idx_memo on t1;\nQuery OK, 2 rows affected (Elapsed: 00:00:01.98)\n\ngbase&gt; show create table t1;\n+-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n| Table | Create Table                                                                                                                                                                                                                                                         |\n+-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n| t1    | CREATE TABLE \"t1\" (\n  \"id\" int(11) DEFAULT NULL,\n  \"name\" varchar(100) DEFAULT NULL,\n  \"dept\" int(11) DEFAULT NULL,\n  \"birth\" date DEFAULT NULL,\n  \"memo\" longtext,\n  FULLTEXT \"idx_memo\" (\"memo\")\n) ENGINE=EXPRESS DEFAULT CHARSET=utf8 TABLESPACE='sys_tablespace' |\n+-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n1 row in set (Elapsed: 00:00:00.00)\n\ngbase&gt; SHOW INDEX FROM t1;\n+-------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+\n| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |\n+-------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+\n| t1    |          1 | idx_memo |            1 | memo        | NULL      |        NULL |     NULL | NULL   | YES  | FULLTEXT   |         |\n+-------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+\n1 row in set (Elapsed: 00:00:00.01)\n\ngbase&gt;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%B5%8B%E8%AF%95%E5%85%A8%E6%96%87%E7%B4%A2%E5%BC%95%E6%9F%A5%E8%AF%A2\"><\/span>\u6d4b\u8bd5\u5168\u6587\u7d22\u5f15\u67e5\u8be2<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u901a\u8fc7contains\u8fdb\u884c\u5168\u6587\u67e5\u8be2\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase&gt; select * from t1 where contains(memo,'\u5efa\u7acb');\n+------+--------+------+------------+--------------------------------+\n| id   | name   | dept | birth      | memo                           |\n+------+--------+------+------------+--------------------------------+\n|    1 | \u5f20\u4e09   |    1 | 1990-09-09 | \u5f20\u4e09\u7684\u4e2a\u4eba\u5efa\u7acb\u548c\u5907\u6ce8           |\n|    2 | \u674e\u56db   |    1 | 1980-08-08 | \u674e\u56db\u7684\u4e2a\u4eba\u5efa\u7acb\u548c\u5907\u6ce8           |\n+------+--------+------+------------+--------------------------------+\n2 rows in set (Elapsed: 00:00:00.02)\n\ngbase&gt; select * from t1 where contains(memo,'\u5f20');\n+------+--------+------+------------+--------------------------------+\n| id   | name   | dept | birth      | memo                           |\n+------+--------+------+------------+--------------------------------+\n|    1 | \u5f20\u4e09   |    1 | 1990-09-09 | \u5f20\u4e09\u7684\u4e2a\u4eba\u5efa\u7acb\u548c\u5907\u6ce8           |\n+------+--------+------+------------+--------------------------------+\n1 row in set (Elapsed: 00:00:00.01)\n\ngbase&gt;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%A4%9A%E5%85%A8%E6%96%87%E5%88%97%E6%B5%8B%E8%AF%95\"><\/span>\u591a\u5168\u6587\u5217\u6d4b\u8bd5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u6ce8\u610fcontains\u91cc\u9762\u7684 \u2018\u5f20|\u674e\u2019 \u5176\u4e2d\u7684|\u4ee3\u8868\u6216\u8005\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase&gt; create fulltext index idx_name on t1(name);\nQuery OK, 0 rows affected (Elapsed: 00:00:00.29)\nRecords: 0  Duplicates: 0  Warnings: 0\n\ngbase&gt; update index idx_name on t1;\nQuery OK, 2 rows affected (Elapsed: 00:00:01.98)\n\ngbase&gt; select * from t1 where contains(name,'\u5f20|\u674e');\n+------+--------+------+------------+--------------------------------+\n| id   | name   | dept | birth      | memo                           |\n+------+--------+------+------------+--------------------------------+\n|    1 | \u5f20\u4e09   |    1 | 1990-09-09 | \u5f20\u4e09\u7684\u4e2a\u4eba\u5efa\u7acb\u548c\u5907\u6ce8           |\n|    2 | \u674e\u56db   |    1 | 1980-08-08 | \u674e\u56db\u7684\u4e2a\u4eba\u5efa\u7acb\u548c\u5907\u6ce8           |\n+------+--------+------+------------+--------------------------------+\n2 rows in set (Elapsed: 00:00:00.09)\n<\/code><\/pre>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecdGBase 8a MPP\u96c6\u7fa4\u7684\u5168\u6587\u68c0\u7d22\u7684\u5b89\u88c5\u65b9\u6cd5\u3002\u8be5\u529f\u80fd\u662f\u901a\u8fc7\u63d2\u4ef6\u7684\u5f62\u5f0f\u5b9e\u73b0\uff0c\u9700\u8981\u5355\u72ec\u5b89\u88c5\u3002\u7528\u6237\u5728\u4f7f\u7528\u65f6\u5982\u679c\u9700\u8981\u5168\u6587\u68c0\u7d22\uff0c\u8bf7\u4e00\u8d77\u5411\u5382\u5546\u7d22\u53d6\u5bf9\u5e94\u7684\u5168\u6587\u68c0\u7d22\u63d2\u4ef6\u3002 \u8be5\u63d2\u4ef6\u53ef\u4ee5\u5728\u96c6\u7fa4\u5b89\u88c5\u540e\u7684\u4efb\u4f55\u65f6\u523b\uff0c\u8fdb\u884c\u5b89\u88c5\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[104,75],"class_list":["post-6779","post","type-post","status-publish","format-standard","hentry","category-gbase8a","tag-104","tag-75"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/6779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/comments?post=6779"}],"version-history":[{"count":24,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/6779\/revisions"}],"predecessor-version":[{"id":7065,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/6779\/revisions\/7065"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=6779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=6779"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=6779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}