Skip to content

Commit

Permalink
Deployed 150729e to dev with MkDocs 1.5.3 and mike 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sukki37 committed Oct 8, 2023
1 parent 063f4df commit 507d7ec
Show file tree
Hide file tree
Showing 9 changed files with 29,885 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10161,16 +10161,16 @@ <h3 id="mysql-matrixone">步骤三:将 MySQL 数据写入 MatrixOne</h3>
<li>
<p>准备 MySQL 数据:在 node3 上,使用 Mysql 客户端连接本地 Mysql,创建所需数据库、数据表、并插入数据:</p>
<div class="highlight"><pre><span></span><code><span class="n">mysql</span><span class="w"> </span><span class="o">-</span><span class="n">h127</span><span class="p">.</span><span class="mi">0</span><span class="p">.</span><span class="mi">0</span><span class="p">.</span><span class="mi">1</span><span class="w"> </span><span class="o">-</span><span class="n">P3306</span><span class="w"> </span><span class="o">-</span><span class="n">uroot</span><span class="w"> </span><span class="o">-</span><span class="n">proot</span>
<span class="n">mysql</span><span class="o">&gt;</span><span class="w"> </span><span class="k">CREATE</span><span class="w"> </span><span class="k">DATABASE</span><span class="w"> </span><span class="n">test</span><span class="p">;</span>
<span class="n">mysql</span><span class="o">&gt;</span><span class="w"> </span><span class="n">USE</span><span class="w"> </span><span class="n">test</span><span class="p">;</span>
<span class="n">mysql</span><span class="o">&gt;</span><span class="w"> </span><span class="k">CREATE</span><span class="w"> </span><span class="k">DATABASE</span><span class="w"> </span><span class="n">motest</span><span class="p">;</span>
<span class="n">mysql</span><span class="o">&gt;</span><span class="w"> </span><span class="n">USE</span><span class="w"> </span><span class="n">motest</span><span class="p">;</span>
<span class="n">mysql</span><span class="o">&gt;</span><span class="w"> </span><span class="k">CREATE</span><span class="w"> </span><span class="k">TABLE</span><span class="w"> </span><span class="o">`</span><span class="n">person</span><span class="o">`</span><span class="w"> </span><span class="p">(</span><span class="o">`</span><span class="n">id</span><span class="o">`</span><span class="w"> </span><span class="nb">int</span><span class="w"> </span><span class="k">DEFAULT</span><span class="w"> </span><span class="k">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">`</span><span class="n">name</span><span class="o">`</span><span class="w"> </span><span class="nb">varchar</span><span class="p">(</span><span class="mi">255</span><span class="p">)</span><span class="w"> </span><span class="k">DEFAULT</span><span class="w"> </span><span class="k">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">`</span><span class="n">birthday</span><span class="o">`</span><span class="w"> </span><span class="nb">date</span><span class="w"> </span><span class="k">DEFAULT</span><span class="w"> </span><span class="k">NULL</span><span class="p">);</span>
<span class="n">mysql</span><span class="o">&gt;</span><span class="w"> </span><span class="k">INSERT</span><span class="w"> </span><span class="k">INTO</span><span class="w"> </span><span class="n">motest</span><span class="p">.</span><span class="n">person</span><span class="w"> </span><span class="p">(</span><span class="n">id</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">birthday</span><span class="p">)</span><span class="w"> </span><span class="k">VALUES</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;lisi&#39;</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;2023-07-09&#39;</span><span class="p">),(</span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;wangwu&#39;</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;2023-07-13&#39;</span><span class="p">),(</span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;zhaoliu&#39;</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;2023-08-08&#39;</span><span class="p">);</span>
</code></pre></div>
</li>
<li>
<p>清空 MatrixOne 表数据:</p>
<p>在 node3 上,使用 MySQL 客户端连接本地 MatrixOne。由于本示例继续使用前面读取 MatrixOne 数据的示例中的 <code>test</code> 数据库,因此我们需要首先清空 <code>person</code> 表的数据。</p>
<div class="highlight"><pre><span></span><code><span class="c1">-- 在node3上,使用Mysql客户端连接本地MatrixOne</span>
<p>在 node3 上,使用 MySQL 客户端连接 node1 的 MatrixOne。由于本示例继续使用前面读取 MatrixOne 数据的示例中的 <code>test</code> 数据库,因此我们需要首先清空 <code>person</code> 表的数据。</p>
<div class="highlight"><pre><span></span><code><span class="c1">-- 在node3上,使用Mysql客户端连接node1的MatrixOne</span>
<span class="n">mysql</span><span class="w"> </span><span class="o">-</span><span class="n">h192</span><span class="p">.</span><span class="mi">168</span><span class="p">.</span><span class="mi">146</span><span class="p">.</span><span class="mi">10</span><span class="w"> </span><span class="o">-</span><span class="n">P6001</span><span class="w"> </span><span class="o">-</span><span class="n">uroot</span><span class="w"> </span><span class="o">-</span><span class="n">p111</span>
<span class="n">mysql</span><span class="o">&gt;</span><span class="w"> </span><span class="k">TRUNCATE</span><span class="w"> </span><span class="k">TABLE</span><span class="w"> </span><span class="n">test</span><span class="p">.</span><span class="n">person</span><span class="p">;</span>
</code></pre></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10077,16 +10077,16 @@ <h3 id="mysql-matrixone">步骤三:将 MySQL 数据写入 MatrixOne</h3>
<li>
<p>准备 MySQL 数据:在 node3 上,使用 Mysql 客户端连接本地 Mysql,创建所需数据库、数据表、并插入数据:</p>
<div class="highlight"><pre><span></span><code><span class="n">mysql</span><span class="w"> </span><span class="o">-</span><span class="n">h127</span><span class="p">.</span><span class="mi">0</span><span class="p">.</span><span class="mi">0</span><span class="p">.</span><span class="mi">1</span><span class="w"> </span><span class="o">-</span><span class="n">P3306</span><span class="w"> </span><span class="o">-</span><span class="n">uroot</span><span class="w"> </span><span class="o">-</span><span class="n">proot</span>
<span class="n">mysql</span><span class="o">&gt;</span><span class="w"> </span><span class="k">CREATE</span><span class="w"> </span><span class="k">DATABASE</span><span class="w"> </span><span class="n">test</span><span class="p">;</span>
<span class="n">mysql</span><span class="o">&gt;</span><span class="w"> </span><span class="n">USE</span><span class="w"> </span><span class="n">test</span><span class="p">;</span>
<span class="n">mysql</span><span class="o">&gt;</span><span class="w"> </span><span class="k">CREATE</span><span class="w"> </span><span class="k">DATABASE</span><span class="w"> </span><span class="n">motest</span><span class="p">;</span>
<span class="n">mysql</span><span class="o">&gt;</span><span class="w"> </span><span class="n">USE</span><span class="w"> </span><span class="n">motest</span><span class="p">;</span>
<span class="n">mysql</span><span class="o">&gt;</span><span class="w"> </span><span class="k">CREATE</span><span class="w"> </span><span class="k">TABLE</span><span class="w"> </span><span class="o">`</span><span class="n">person</span><span class="o">`</span><span class="w"> </span><span class="p">(</span><span class="o">`</span><span class="n">id</span><span class="o">`</span><span class="w"> </span><span class="nb">int</span><span class="w"> </span><span class="k">DEFAULT</span><span class="w"> </span><span class="k">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">`</span><span class="n">name</span><span class="o">`</span><span class="w"> </span><span class="nb">varchar</span><span class="p">(</span><span class="mi">255</span><span class="p">)</span><span class="w"> </span><span class="k">DEFAULT</span><span class="w"> </span><span class="k">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">`</span><span class="n">birthday</span><span class="o">`</span><span class="w"> </span><span class="nb">date</span><span class="w"> </span><span class="k">DEFAULT</span><span class="w"> </span><span class="k">NULL</span><span class="p">);</span>
<span class="n">mysql</span><span class="o">&gt;</span><span class="w"> </span><span class="k">INSERT</span><span class="w"> </span><span class="k">INTO</span><span class="w"> </span><span class="n">motest</span><span class="p">.</span><span class="n">person</span><span class="w"> </span><span class="p">(</span><span class="n">id</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">birthday</span><span class="p">)</span><span class="w"> </span><span class="k">VALUES</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;lisi&#39;</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;2023-07-09&#39;</span><span class="p">),(</span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;wangwu&#39;</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;2023-07-13&#39;</span><span class="p">),(</span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;zhaoliu&#39;</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;2023-08-08&#39;</span><span class="p">);</span>
</code></pre></div>
</li>
<li>
<p>清空 MatrixOne 表数据:</p>
<p>在 node3 上,使用 MySQL 客户端连接本地 MatrixOne。由于本示例继续使用前面读取 MatrixOne 数据的示例中的 <code>test</code> 数据库,因此我们需要首先清空 <code>person</code> 表的数据。</p>
<div class="highlight"><pre><span></span><code><span class="c1">-- 在node3上,使用Mysql客户端连接本地MatrixOne</span>
<div class="highlight"><pre><span></span><code><span class="c1">-- 在node3上,使用Mysql客户端连接node1的MatrixOne</span>
<span class="n">mysql</span><span class="w"> </span><span class="o">-</span><span class="n">h192</span><span class="p">.</span><span class="mi">168</span><span class="p">.</span><span class="mi">146</span><span class="p">.</span><span class="mi">10</span><span class="w"> </span><span class="o">-</span><span class="n">P6001</span><span class="w"> </span><span class="o">-</span><span class="n">uroot</span><span class="w"> </span><span class="o">-</span><span class="n">p111</span>
<span class="n">mysql</span><span class="o">&gt;</span><span class="w"> </span><span class="k">TRUNCATE</span><span class="w"> </span><span class="k">TABLE</span><span class="w"> </span><span class="n">test</span><span class="p">.</span><span class="n">person</span><span class="p">;</span>
</code></pre></div>
Expand Down Expand Up @@ -10265,7 +10265,7 @@ <h3 id="hive">步骤二:准备 Hive 数据</h3>
<span class="n">hive</span><span class="o">&gt;</span><span class="w"> </span><span class="k">INSERT</span><span class="w"> </span><span class="k">INTO</span><span class="w"> </span><span class="n">motest</span><span class="p">.</span><span class="n">users</span><span class="w"> </span><span class="p">(</span><span class="n">id</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">age</span><span class="p">)</span><span class="w"> </span><span class="k">VALUES</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;zhangsan&#39;</span><span class="p">,</span><span class="w"> </span><span class="mi">12</span><span class="p">),(</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;lisi&#39;</span><span class="p">,</span><span class="w"> </span><span class="mi">17</span><span class="p">),(</span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="s1">&#39;wangwu&#39;</span><span class="p">,</span><span class="w"> </span><span class="mi">19</span><span class="p">);</span>
</code></pre></div>
<h3 id="matrixone_1">步骤三:创建 MatrixOne 数据表</h3>
<p>在 node3 上,使用 MySQL 客户端连接到本地 MatrixOne。然后继续使用之前创建的 "test" 数据库,并创建新的数据表 "users"。</p>
<p>在 node3 上,使用 MySQL 客户端连接到 node1 的 MatrixOne。然后继续使用之前创建的 "test" 数据库,并创建新的数据表 "users"。</p>
<div class="highlight"><pre><span></span><code><span class="k">CREATE</span><span class="w"> </span><span class="k">TABLE</span><span class="w"> </span><span class="o">`</span><span class="n">users</span><span class="o">`</span><span class="w"> </span><span class="p">(</span>
<span class="o">`</span><span class="n">id</span><span class="o">`</span><span class="w"> </span><span class="nb">INT</span><span class="w"> </span><span class="k">DEFAULT</span><span class="w"> </span><span class="k">NULL</span><span class="p">,</span>
<span class="o">`</span><span class="n">name</span><span class="o">`</span><span class="w"> </span><span class="nb">VARCHAR</span><span class="p">(</span><span class="mi">255</span><span class="p">)</span><span class="w"> </span><span class="k">DEFAULT</span><span class="w"> </span><span class="k">NULL</span><span class="p">,</span>
Expand Down
Loading

0 comments on commit 507d7ec

Please sign in to comment.