{"id":1862,"date":"2021-03-03T17:02:27","date_gmt":"2021-03-03T09:02:27","guid":{"rendered":"https:\/\/nj.transwarp.cn:8180\/?p=1862"},"modified":"2021-03-03T17:05:25","modified_gmt":"2021-03-03T09:05:25","slug":"txsql%e6%95%b0%e6%8d%ae%e7%9b%ae%e5%bd%95%e6%9b%b4%e6%94%b9","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=1862","title":{"rendered":"TxSQL \u6570\u636e\u76ee\u5f55\u66f4\u6539"},"content":{"rendered":"<h3>\u6982\u8981\u63cf\u8ff0<\/h3>\n<p>\u672c\u6848\u4f8b\u4e3b\u8981\u63cf\u8ff0\u5982\u4f55\u4fee\u6539TxSQL\u7684\u6570\u636e\u76ee\u5f55\uff0c\u672c\u5b9e\u9a8c\u73af\u5883\uff1a<\/p>\n<ul>\n<li>\u5c06TxSQL\u7684\u6570\u636e\u76ee\u5f55\u4ece <strong><code>\/mnt\/disk1\/hadoop\/txsql1\/<\/code><\/strong> \u53d8\u66f4\u5230 <strong><code>\/mnt\/disk3\/hadoop\/txsql1\/<\/code><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3>\u8be6\u7ec6\u8bf4\u660e<\/h3>\n<h4>1\u3001\u786e\u5b9a\u6bcf\u4e2a\u8282\u70b9\u7684\u6570\u636e\u76ee\u5f55\u3002<\/h4>\n<p>\u5728Transwarp Manager\u91cc\uff0c\u914d\u7f6e\u9879 datadir \u5373\u6570\u636e\u76ee\u5f55\uff0c\u4e0d\u540c\u7684\u8282\u70b9\u53ef\u80fd\u4e0d\u540c\uff1b<br \/>\n\u5982\u4e0b\u56fe\u53ef\u77e5\uff0cTxSQL \u539f\u59cb\u7684\u6570\u636e\u8def\u5f84\u662f\uff1a <strong><code>\/mnt\/disk1\/hadoop\/txsql1\/<\/code><\/strong><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2019\/12\/image-1577085621453.png\" alt=\"file\" \/><\/p>\n<h4>2\u3001\u505c\u6b62TxSQL\u670d\u52a1<\/h4>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2019\/12\/image-1577085701894.png\" alt=\"file\" \/><\/p>\n<h4>3\u3001\u624b\u52a8\u5c06<strong>\u6bcf\u4e2a\u8282\u70b9\u7684<\/strong>\u6570\u636e\u76ee\u5f55\u62f7\u8d1d\u5230\u76ee\u6807\u4f4d\u7f6e<\/h4>\n<p><strong>\u6ce8\u610f\u4fdd\u6301\u6240\u6709\u6587\u4ef6\u539f\u6709\u7684\u6743\u9650<\/strong>\u3002<\/p>\n<pre><code class=\"language-shell\">cd \/mnt\/disk1\/hadoop\/\ncp -R -p txsql1 \/mnt\/disk3\/hadoop\/<\/code><\/pre>\n<p>\u6ce8\u610f\uff1acp\u547d\u4ee4\u540e\u9762\u52a0 -p \u53c2\u6570\uff0c\u662f\u4e3a\u4e86\u628a\u6e90\u6587\u4ef6\u6216\u76ee\u5f55\u4e0b\u7684\u6240\u5177\u6709\u7684\u6743\u9650\u4e00\u540c\u590d\u5236 \u5230 \u76ee\u6807\u76ee\u5f55\u6216\u6587\u4ef6\uff0c\u5982\u679c\u6743\u9650\u6709\u95ee\u9898\uff0c\u5728\u542f\u52a8TxSQL\u65f6\u4f1a\u5931\u8d25<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2019\/12\/image-1577085885988.png\" alt=\"file\" \/><\/p>\n<h4>4\u3001\u4fee\u6539<strong>\u6bcf\u4e2a\u8282\u70b9\u4e0aTxSQL<\/strong>\u914d\u7f6e\u76ee\u5f55\u4e0b\u7684\u4ee5\u4e0b\u6587\u4ef6\u53ca\u5176\u914d\u7f6e\u9879\uff0c\u4f7f\u5b83\u4eec\u6307\u5411\u65b0\u7684\u6570\u636e\u76ee\u5f55\u8def\u5f84<\/h4>\n<p>\uff08\u5b9e\u9645\u4e0a\uff0c\u53ef\u4ee5\u641c\u7d22\u3001\u66ff\u6362\uff0c\u628a\u539f\u6765\u7684\u8def\u5f84\u51fa\u73b0\u7684\u5730\u65b9\u5bf9\u5e94\u5730\u4fee\u6539\u4e3a\u65b0\u7684\u8def\u5f84\u5373\u53ef\uff09\uff0c\u4fee\u6539\u5b8c\u4e4b\u540e\u6ce8\u610f\u5bf9\u6bd4\u786e\u8ba4\u4fee\u6539\u7684\u6b63\u786e\u6027\u3002<br \/>\n<strong>\/etc\/txsql1\/conf\/my.cnf<\/strong><br \/>\n<strong>\/etc\/txsql1\/conf\/phxbinlogsvr.conf<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\u6587\u4ef6\u540d<\/th>\n<th style=\"text-align: left;\">\u914d\u7f6e\u9879<\/th>\n<th style=\"text-align: left;\">\u5907\u6ce8<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\">phxbinlogsvr.conf<\/td>\n<td style=\"text-align: left;\">LogFilePath<\/td>\n<td style=\"text-align: left;\">\u5982\u679c\u914d\u7f6e\u4e86logdir\uff0c\u8fd9\u4e2a\u914d\u7f6e\u9879\u4e00\u822c\u4e0d\u9700\u8981\u4fee\u6539\u3002\u5982\u679c\u672a\u914d\u7f6e\uff0clog\u4f1a\u9ed8\u8ba4\u5199\u5230datadir\u4e0b\u7684log\u76ee\u5f55\u4e0b\uff0c\u56e0\u6b64\u4e5f\u9700\u8981\u4fee\u6539<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\">LogFilePath<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\">PaxosLogPath<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">phxsqlproxy.conf<\/td>\n<td style=\"text-align: left;\">LogFilePath<\/td>\n<td style=\"text-align: left;\">\u5982\u679c\u914d\u7f6e\u4e86logdir\uff0c\u8fd9\u4e2a\u914d\u7f6e\u9879\u4e00\u822c\u4e0d\u9700\u8981\u4fee\u6539\u3002\u5982\u679c\u672a\u914d\u7f6e\uff0clog\u4f1a\u9ed8\u8ba4\u5199\u5230datadir\u4e0b\u7684log\u76ee\u5f55\u4e0b\uff0c\u56e0\u6b64\u4e5f\u9700\u8981\u4fee\u6539<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\">my.cnf<\/td>\n<td style=\"text-align: left;\">socket<\/td>\n<td style=\"text-align: left;\">\u6709\u4e24\u4e2a\uff08\u5206\u522b\u5728client\u3001mysqld section\u4e0b\uff09<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\">datadir<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\">tmpdir<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\">log-error<\/td>\n<td style=\"text-align: left;\">\u5982\u679c\u914d\u7f6e\u4e86logdir\uff0c\u8fd9\u4e2a\u914d\u7f6e\u9879\u4e00\u822c\u4e0d\u9700\u8981\u4fee\u6539\u3002\u5982\u679c\u672a\u914d\u7f6e\uff0clog\u4f1a\u9ed8\u8ba4\u5199\u5230datadir\u4e0b\u7684log\u76ee\u5f55\u4e0b\uff0c\u56e0\u6b64\u4e5f\u9700\u8981\u4fee\u6539<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\">log-bin<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\">relay-log<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\">innodb_data_home_dir<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\">innodb_log_group_home_dir<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><\/td>\n<td style=\"text-align: left;\">innodb_undo_directory<\/td>\n<td style=\"text-align: left;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4fee\u6539\u524d\uff1a<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2019\/12\/image-1578618666215.png\" alt=\"file\" \/><\/p>\n<p>\u4fee\u6539\u540e\uff1a<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2019\/12\/image-1578618684404.png\" alt=\"file\" \/><\/p>\n<h4>5\u3001\u5728 Manager \u9875\u9762\u4fee\u6539 txsql \u6570\u636e\u76ee\u5f55\u914d\u7f6e\uff1adatadir \u7684\u503c\uff0c\u7136\u540e\u914d\u7f6e\u670d\u52a1\u5e76\u91cd\u542f txsql<\/h4>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2019\/12\/image-1578618732379.png\" alt=\"file\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u63cf\u8ff0 \u672c\u6848\u4f8b\u4e3b\u8981\u63cf\u8ff0\u5982\u4f55\u4fee\u6539TxSQL\u7684\u6570\u636e\u76ee\u5f55\uff0c\u672c\u5b9e\u9a8c\u73af\u5883\uff1a \u5c06TxSQL\u7684\u6570\u636e\u76ee\u5f55\u4ece \/mnt\/dis ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=1862\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1862","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/1862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1862"}],"version-history":[{"count":3,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/1862\/revisions"}],"predecessor-version":[{"id":5512,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/1862\/revisions\/5512"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}