Skip to content

Commit

Permalink
deploy: 69759a2
Browse files Browse the repository at this point in the history
  • Loading branch information
sauljabin committed Jun 17, 2024
1 parent 149cb3a commit 9da383f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
11 changes: 7 additions & 4 deletions kafka-connect-database-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,16 @@ <h3 id="populate-database"><a class="header" href="#populate-database">Populate
<pre><code class="language-bash">docker compose --profile sql up -d
</code></pre>
<p>Populate it:</p>
<pre><code class="language-bash">./gradlew sql-populate:run \
--args='--url "jdbc:mysql://localhost:3306/sandbox" --user "root" --password "notasecret" 10'
<pre><code class="language-bash">mysql --host=127.0.0.1 --port=3306 \
--user=root --password=notasecret \
--database=sandbox \
&lt; kafka-connect/sql/customers.sql
</code></pre>
<p>That command should have created the table <code>customers</code> and inserted 10 records.</p>
<p>That command should have created the table <code>customers</code> and inserted 200 records.</p>
<p>Now you can open <a href="http://localhost:9090">Adminer</a> or run:</p>
<pre><code class="language-bash">mysql --host=127.0.0.1 --port=3306 \
--user=root --database=sandbox --password=notasecret \
--user=root --password=notasecret \
--database=sandbox \
-e "select * from customers"
</code></pre>
<h3 id="create-source-connector"><a class="header" href="#create-source-connector">Create Source Connector</a></h3>
Expand Down
11 changes: 7 additions & 4 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,16 @@ <h3 id="populate-database"><a class="header" href="#populate-database">Populate
<pre><code class="language-bash">docker compose --profile sql up -d
</code></pre>
<p>Populate it:</p>
<pre><code class="language-bash">./gradlew sql-populate:run \
--args='--url "jdbc:mysql://localhost:3306/sandbox" --user "root" --password "notasecret" 10'
<pre><code class="language-bash">mysql --host=127.0.0.1 --port=3306 \
--user=root --password=notasecret \
--database=sandbox \
&lt; kafka-connect/sql/customers.sql
</code></pre>
<p>That command should have created the table <code>customers</code> and inserted 10 records.</p>
<p>That command should have created the table <code>customers</code> and inserted 200 records.</p>
<p>Now you can open <a href="http://localhost:9090">Adminer</a> or run:</p>
<pre><code class="language-bash">mysql --host=127.0.0.1 --port=3306 \
--user=root --database=sandbox --password=notasecret \
--user=root --password=notasecret \
--database=sandbox \
-e "select * from customers"
</code></pre>
<h3 id="create-source-connector"><a class="header" href="#create-source-connector">Create Source Connector</a></h3>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 9da383f

Please sign in to comment.