<?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 Rietta Cybersecurity</title>
    <link>https://rietta.com/tags/mysql/</link>
    <description>Recent content in MySQL on Rietta Cybersecurity</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>1999-2026 Rietta Inc. All Rights Reserved.</copyright>
    <atom:link href="https://rietta.com/tags/mysql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>MySQL Decimal Data Type</title>
      <link>https://rietta.com/blog/mysql-decimal-data-type/</link>
      <pubDate>Thu, 24 Oct 2019 08:00:00 -0400</pubDate>
      <guid>https://rietta.com/blog/mysql-decimal-data-type/</guid>
      <description>In MySQL, the DECIMAL and NUMERIC data types store exact, fixed-point values. In MySQL, NUMERIC is implemented as a DECIMAL, so a NUMERIC and DECIMAL are the same data type. This data type is used when it is important to preserve the exact precision, such as storing money data.&#xA;Declaration In a DECIMAL column declaration, the precision and scale can be specified.&#xA;DECIMAL(13,2)This declaration declares a precision of 13 and a scale of 2.</description>
    </item>
    <item>
      <title>Best Data Type to store Money in MySQL?</title>
      <link>https://rietta.com/blog/best-data-types-for-currencymoney-in/</link>
      <pubDate>Tue, 04 Jun 2019 13:30:00 -0400</pubDate>
      <guid>https://rietta.com/blog/best-data-types-for-currencymoney-in/</guid>
      <description>&lt;h2 id=&#34;the-short-answer-tldr&#34;&gt;The Short Answer (TL;DR)&lt;/h2&gt;&#xA;&lt;h3 id=&#34;if-acronym-titlegenerally-accepted-accounting-principlesa-hrefhttpsenwikipediaorgwikigenerally_accepted_accounting_principles_united_statesgaapaacronym-compliance-is-required-or-you-need-4-decimalblogmysql-decimal-data-type-places&#34;&gt;If &lt;acronym title=&#34;Generally Accepted Accounting Principles&#34;&gt;&lt;a href=https://en.wikipedia.org/wiki/Generally_Accepted_Accounting_Principles_(United_States)&gt;GAAP&lt;/a&gt;&lt;/acronym&gt; Compliance is required or you need 4 &lt;a href=&#34;https://rietta.com/blog/mysql-decimal-data-type/&#34;&gt;decimal&lt;/a&gt; places:&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;DECIMAL&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;13&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;4&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Which supports a max value of:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$999,999,999.9999&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;otherwise-if-2-decimal-places-is-enough&#34;&gt;Otherwise, if 2 decimal places is enough:&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;DECIMAL&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;13&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Which supports a max value of:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$99,999,999,999.99&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Reset MySQL Root Password with One Command</title>
      <link>https://rietta.com/blog/reset-mysql-root-password-on-ubuntu-linux/</link>
      <pubDate>Tue, 11 Feb 2014 11:47:45 -0500</pubDate>
      <guid>https://rietta.com/blog/reset-mysql-root-password-on-ubuntu-linux/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://rietta.com/images/posts/illustrations/locked_out.png&#34; alt=&#34;Locked Out, Again&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;I have locked myself out of important accounts more than a few times. Just this morning, I found myself again locked out of a MySQL database server on an Ubuntu Linux machine. Though this should work with any Debian-based Linux that uses the &lt;code&gt;apt-get&lt;/code&gt; package management system.&lt;/p&gt;&#xA;&lt;p&gt;Fortunately, I had administrative access to the server through SSH and thus was able to reset the MySQL root password with the package management script. &lt;strong&gt;It only took one, simple command&lt;/strong&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
