<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>MySQL on Margrop Blog</title>
    <link>https://blog.margrop.net/en/tag/mysql/</link>
    <description>Recent content in MySQL on Margrop Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <lastBuildDate>Sat, 11 Jul 2026 08:30:00 +0800</lastBuildDate>
    <atom:link href="https://blog.margrop.net/en/tag/mysql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Stop Letting AI Guess: Connect MySQL, Prometheus, Loki and Grafana to an Agent, Step by Step</title>
      <link>https://blog.margrop.net/en/post/mysql-prometheus-loki-grafana-ai-agent-hands-on/</link>
      <pubDate>Sat, 11 Jul 2026 08:30:00 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/mysql-prometheus-loki-grafana-ai-agent-hands-on/</guid>
      <description>Many teams already run MySQL, Prometheus, Loki and Grafana. Yet when an alert fires, the on-call engineer still jumps between four windows: inspect a dashboard, write a PromQL query, search logs for a trace ID, and finally connect to the database to confirm the business record.&#xA;It is like a hospital that owns a thermometer, medical records, laboratory reports and a monitoring wall, while the doctor still has to visit four rooms and copy every number by hand.</description>
    </item>
    <item>
      <title>How to Connect to the Host Machine&#39;s MySQL Server from Inside a Docker Container</title>
      <link>https://blog.margrop.net/en/post/docker-connect-mysql-in-host-machine/</link>
      <pubDate>Thu, 30 Sep 2021 13:08:50 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/docker-connect-mysql-in-host-machine/</guid>
      <description>&lt;p&gt;The blogger recently encountered a situation where they copied a database from a server onto the host machine&amp;rsquo;s MySQL server, wanting to use the local database to test the correctness of their code. However, the project programs are all deployed with a single click via Docker, so it&amp;rsquo;s necessary to access the local database from within the Docker container. During the exploration, they encountered problems and found solutions.&lt;/p&gt;</description>
    </item>
    <item>
      <title>MySQL Date and DST Conversion Error HOUR_OF_DAY: 0 -&gt; 1 and How to Fix It</title>
      <link>https://blog.margrop.net/en/post/mysql-exception-hour-of-day-0-1-solution/</link>
      <pubDate>Thu, 25 Mar 2021 10:53:15 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/mysql-exception-hour-of-day-0-1-solution/</guid>
      <description>&lt;h1 id=&#34;error-occurred-when-exporting-user-data-hour_of_day-0---1&#34;&gt;Error Occurred When Exporting User Data: HOUR_OF_DAY: 0 -&amp;gt; 1&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Exception in thread &amp;ldquo;main&amp;rdquo; java.lang.IllegalArgumentException: HOUR_OF_DAY: 0 -&amp;gt; 1&#xA;The full error message is as follows:&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>How to Map JSON Objects Using Generic Hibernate Types</title>
      <link>https://blog.margrop.net/en/post/how-to-map-json-collections-using-jpa-and-hibernate/</link>
      <pubDate>Fri, 29 Jan 2021 16:06:09 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/how-to-map-json-collections-using-jpa-and-hibernate/</guid>
      <description>&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;&#xA;&lt;p&gt;In this article, we&amp;rsquo;ll see how to map JSON columns to JPA entity attributes using the &lt;a href=&#34;http://www.google.com/&#34; title=&#34;Hibernate Types&#34;&gt;Hibernate Types&lt;/a&gt; open-source project.&lt;/p&gt;&#xA;&lt;p&gt;While you can create your own custom Hibernate type to map JSON column types on Oracle, SQL Server, PostgreSQL, or MySQL, you don&amp;rsquo;t need to implement your own Hibernate Type since the Hibernate Types project already provides this functionality.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Upgrading or Fresh Installing MariaDB 10.5 on CentOS 7 Using Aliyun Mirror</title>
      <link>https://blog.margrop.net/en/post/centos-7-upgrade-or-install-mariadb-10.x-aliyun-mirror/</link>
      <pubDate>Fri, 29 Jan 2021 15:42:20 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/centos-7-upgrade-or-install-mariadb-10.x-aliyun-mirror/</guid>
      <description>&lt;h1 id=&#34;update-the-system-first&#34;&gt;Update the System First&lt;/h1&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;yum update -y&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h1 id=&#34;edit-the-yum-configuration-file-using-aliyun-mirror&#34;&gt;Edit the yum Configuration File Using Aliyun Mirror&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Here MariaDB 10.5 is used as an example&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vim /etc/yum.repos.d/MariaDB10.repo&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;#http://downloads.mariadb.org/mariadb/repositories/&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;mariadb&lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;name &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; MariaDB&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;baseurl &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; https://mirrors.aliyun.com/mariadb/yum/10.5/centos7-amd64&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;gpgkey &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; https://mirrors.aliyun.com/mariadb/yum/RPM-GPG-KEY-MariaDB&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;gpgcheck &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
