<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Mysql - Tag - Mulinux | Linux &amp; DevOps Notes</title>
    <link>https://blog.mulinux.com/en/tags/mysql/</link>
    <description>Mulinux - Linux Operations &amp; DevOps blog. Notes on Linux, Kubernetes, Docker and backend engineering.</description>
    <generator>Hugo 0.160.0 &amp; FixIt v0.4.5</generator>
    <language>en</language>
    <lastBuildDate>Mon, 17 Oct 2022 13:57:34 +0800</lastBuildDate>
    <atom:link href="https://blog.mulinux.com/en/tags/mysql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>MySQL 常用排障与救火速查 (Runbook)</title>
      <link>https://blog.mulinux.com/en/mysql-command/</link>
      <pubDate>Mon, 17 Oct 2022 13:57:34 +0800</pubDate>
      <guid>https://blog.mulinux.com/en/mysql-command/</guid>
      <category domain="https://blog.mulinux.com/en/categories/operations/">Operations</category>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;🚨 使用指南：&lt;/strong&gt; 这是一份专为生产环境数据库宕机、卡顿、爆满设计的&lt;strong&gt;救火急诊室指南&lt;/strong&gt;。越致命的状况对应的代码越靠前，日常业务代码被折叠至附录。在此页面所抄写的每一行指令，都应该怀揣对生产环境的敬畏。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Mysql5.1二进制免编译安装</title>
      <link>https://blog.mulinux.com/en/mysql5.1-install/</link>
      <pubDate>Fri, 17 Oct 2014 13:57:34 +0800</pubDate>
      <guid>https://blog.mulinux.com/en/mysql5.1-install/</guid>
      <category domain="https://blog.mulinux.com/en/categories/operations/">Operations</category>
      <description>&lt;h2 class=&#34;heading-element&#34; id=&#34;安装记录&#34;&gt;&lt;span&gt;安装记录&lt;/span&gt;&#xA;  &lt;a href=&#34;#%e5%ae%89%e8%a3%85%e8%ae%b0%e5%bd%95&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;cd /usr/local/src/&#xA;wget http://mirrors.sohu.com/mysql/MySQL-5.1/mysql-5.1.73-linux-x86_64-glibc23.tar.gz&#xA;yum install -y wget&#xA;wget http://mirrors.sohu.com/mysql/MySQL-5.1/mysql-5.1.73-linux-x86_64-glibc23.tar.gz&#xA;tar zxvf /usr/local/src/mysql-5.1.73-linux-x86_64-glibc23.tar.gz&#xA;mv mysql-5.1.73-linux-x86_64-glibc23 /usr/local/mysql&#xA;useradd -s /sbin/nologin -M mysql&#xA;cd /usr/local/mysql/&#xA;mkdir -p /data/mysql&#xA;chown -R mysql:mysql /data/mysql&#xA;./scripts/mysql_install_db --user=mysql --datadir=/data/mysql&#xA;出现两个ok说明初始化成功，也可以echo $?确认一下。&#xA;cp support-files/my-large.cnf /etc/my.cnf&#xA;cp support-files/mysql.server /etc/init.d/mysqld&#xA;chmod 755 /etc/init.d/mysqld&#xA;vi /etc/init.d/mysqld&#x9;#datadir=/data/mysql basedir=/usr/local/mysql&#xA;basedir=/usr/local/mysql&#xA;datadir=/data/mysql&#xA;chkconfig --add mysqld&#xA;chkconfig mysqld on&#xA;service mysqld start&#xA;&#xA;设置密码：mysqladmin -uroot password &amp;#39;yourpass&amp;#39;&#xA;更改密码：mysqladmin -uroot password &amp;#39;newpass&amp;#39;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
  </channel>
</rss>
