<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Import CCDS MariaDB Data :: Ay Docs</title>
    <link>https://ops.docs.72602.space/csst/import/mariadb_import_data/index.html</link>
    <description>Preliminary MariaDB has installed though argo-workflow, if not check link MariaDB server pod named is app-mariadb and in namespace application Warning if the pod name and namespace isn’t match, you might need to modify following shell.&#xA;Download SQL file wget https://inner-gitlab.citybrain.org/chang.liu/ccds-server/-/raw/ccds-v1/deploy/ccds-db-init.sql -O ccds-mariadb-init.sql TODO the content we download is all html, fff&#xA;Using import tool MARIADB_ROOT_PASSWORD=$(kubectl -n application get secret mariadb-credentials -o jsonpath=&#39;{.data.mariadb-root-password}&#39; | base64 -d) \ TOOL_POD_NAME=$(kubectl get pod -n application -l &#34;app.kubernetes.io/name=mariadb-tool&#34; -o jsonpath=&#34;{.items[0].metadata.name}&#34;) \ &amp;&amp; export SQL_FILENAME=&#34;ccds-mariadb-init.sql&#34; \ &amp;&amp; kubectl -n application cp ${SQL_FILENAME} ${TOOL_POD_NAME}:/tmp/${SQL_FILENAME} \ &amp;&amp; kubectl -n application exec -it deployment/app-mariadb-tool -- bash -c \ &#39;echo &#34;create database ccds;&#34; | mysql -h app-mariadb.application -uroot -p$MARIADB_ROOT_PASSWORD&#39; \ &amp;&amp; kubectl -n application exec -it ${TOOL_POD_NAME} -- bash -c \ &#34;mysql -h app-mariadb.application -uroot -p\${MARIADB_ROOT_PASSWORD} \ ccds &lt; /tmp/ccds-mariadb-init.sql&#34;</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate></lastBuildDate>
    <atom:link href="https://ops.docs.72602.space/csst/import/mariadb_import_data/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>