<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>生活是美好的 - Mysql</title>
    <link>https://leeyb.cn/forum.php?mod=forumdisplay&amp;fid=37</link>
    <description>Latest 20 threads of Mysql</description>
    <copyright>Copyright(C) 生活是美好的</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sun, 17 May 2026 05:08:51 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://leeyb.cn/static/image/common/logo_88_31.gif</url>
      <title>生活是美好的</title>
      <link>https://leeyb.cn/</link>
    </image>
    <item>
      <title>Linux中，执行mysqldump命令没找到？</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=89</link>
      <description><![CDATA[直接输入命令mysqldump会发现提示命令不存在，是由于系统默认会查找/usr/bin下的命令，如果这个命令不在这个目录下，自然会找不到命令，并报错。知道了问题的所在，就直接去处理，先用一条find命令查找mysqldump的所载路径。

// 找到文件名称为mysql的文件 
然后再用ln ...]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Wed, 09 Oct 2019 07:14:22 +0000</pubDate>
    </item>
    <item>
      <title>MYSQL Linux下自动备份并删除7天前的旧备份 sh脚本</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=87</link>
      <description><![CDATA[]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Tue, 08 Oct 2019 07:20:54 +0000</pubDate>
    </item>
    <item>
      <title>mysql查看授權</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=85</link>
      <description><![CDATA[要想查看MySQL的授权给了那些用户，以及给这些用户那些权限，可以通过一下命令来实现：查看已经授权的用户： 
查看用户的授权权限：]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Tue, 08 Oct 2019 02:03:34 +0000</pubDate>
    </item>
    <item>
      <title>mysql数据库访问权限限制设置</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=84</link>
      <description><![CDATA[---只能本地访问，设置随意访问    update user set host=\'%\' where host=\'localhost\'；    flush privileges;---随意访问，设置只能本地访问   update user set host = \&quot;localhost\&quot; where user = \&quot;hello\&quot; and host= \&quot;%\&quot;;   flush privileges;---设置固定的ip可以访问   ...]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Tue, 08 Oct 2019 02:00:00 +0000</pubDate>
    </item>
    <item>
      <title>mysql數據庫備份的幾種方式</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=61</link>
      <description><![CDATA[mysqldump工具備份
備份整個數據庫
備份數據庫中的某个表
備份多個數據庫

備份系統中所有數據庫

直接複製整個數據庫目錄（對於InnoDB存儲引擎不適用）備份
windowns: installpath/mysql/datalinux: /var/lib/mysql
在複製前需要先執行如下命令：MYSQL&gt; LOCK TABLES;#  ...]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Mon, 30 Sep 2019 06:16:15 +0000</pubDate>
    </item>
    <item>
      <title>mysql數據出現數據不同步解決方法</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=59</link>
      <description><![CDATA[一、如果是Slave_SQL_Running:No解決辦法如下：
二、如果是Slave_io_running:No
解決辦法如下：
1.查看主服務器
*************************** 1. row ***************************
            File: master-bin.000002
        Position: 1210
    Binlog_Do_DB: ultra ...]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Mon, 30 Sep 2019 02:59:01 +0000</pubDate>
    </item>
    <item>
      <title>生產環境下的mysql主從複製</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=58</link>
      <description><![CDATA[一.主mysql配置:
1.配置my.cnf
[mysqld]
server-id = 10 #服务器标示
log-bin= mysql-bin #二进制日志
binlog-do-db=mydb #需要同步的数据库

配置完成后重启

2.建立复制账号:
grant all privileges on *.* to \'rep\'@\'192.168.1.xx\' identified by \'12345678\';//这个权 ...]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Mon, 30 Sep 2019 02:28:50 +0000</pubDate>
    </item>
    <item>
      <title>mysql主库实现主/备</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=54</link>
      <description><![CDATA[单主到多备： Master-MultiSlave
]]></description>
      <category>Mysql</category>
      <author>liyb</author>
<enclosure url="https://leeyb.cn/data/attachment/forum/     Master" length="" type="image/jpeg" />      <pubDate>Sun, 29 Sep 2019 08:11:50 +0000</pubDate>
    </item>
    <item>
      <title>mysql複製技術（一主多從）</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=53</link>
      <description><![CDATA[===================================================================
重置數據庫：



一、主/備均为剛初始的數據庫
================================================================
单主到多备： Master-MultiSlave

                 Master                   ...]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Sun, 29 Sep 2019 07:58:56 +0000</pubDate>
    </item>
    <item>
      <title>MySQL的主从复制原理</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=50</link>
      <description><![CDATA[一.主从复制      MySQL的复制是通过将一台主（master）server的数据拷贝到其它主机(slaves) 上。从server能够有非常多。而复制的原理跟MySQL的二进制日志是分不开关系的。
     主server将更新写入二进制日志系统。并维护一个索引跟踪日志的循环，这些日志发送到从serv ...]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Fri, 27 Sep 2019 09:13:20 +0000</pubDate>
    </item>
    <item>
      <title>数据库运维必备：非常完整的 MySQL 规范</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=21</link>
      <description><![CDATA[一、数据库命令规范
[*]所有数据库对象名称必须使用小写字母并用下划线分割
[*]所有数据库对象名称禁止使用mysql保留关键字（如果表名中包含关键字查询时，需要将其用单引号括起来）
[*]数据库对象的命名要能做到见名识意，并且最后不要超过32个字符
[*]临时库表必须以t ...]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Thu, 26 Sep 2019 08:53:47 +0000</pubDate>
    </item>
    <item>
      <title>mysql優化大全</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=20</link>
      <description><![CDATA[数据库优化、sql语句优化、索引优化、加缓存、读写分离、分区、分布式数据库（垂直切分)、水平切分
MyISAM和InnoDB的区别： 

1. InnoDB支持事务，MyISAM不支持，对于InnoDB每一条SQL语言都默认封装成事务，自动提交，这样会影响速度，所以最好把多条SQL语言放在begin和 ...]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Thu, 26 Sep 2019 08:02:51 +0000</pubDate>
    </item>
    <item>
      <title>Mysql添加用户错误:ERROR 1364 (HY000): Field \'ssl_cipher\' doesn\'t have a...</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=19</link>
      <description><![CDATA[添加用户
报以下的错误 ERROR 1364 (HY000): Field \'ssl_cipher\' doesn\'t have a default value错误
mysql5.1以上版本，我是在5.6版本上操作的。


错语原因：mysql用户表的中某些字段不能为空，没有默认值，其实是操作错误，mysql添加用户是不能这样直接insert user表 ...]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Thu, 26 Sep 2019 08:00:27 +0000</pubDate>
    </item>
    <item>
      <title>linux安装mysql5.7.36</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=17</link>
      <description><![CDATA[1、检查是否已安装过mariadb，若有便删除（linux系统自带的）
2、检查是否已安装过mysql，若有便删除（linux系统自带的）
3、检查mysql组和用户是否存在，如无创建：
4、从官网下载mysql安装包，解压后移动到/usr/local/mysql下


5、在mysql下添加data目录
6、更改mysq ...]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Thu, 26 Sep 2019 07:17:35 +0000</pubDate>
    </item>
    <item>
      <title>mysql安裝報錯2</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=9</link>
      <description><![CDATA[]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Thu, 26 Sep 2019 04:21:14 +0000</pubDate>
    </item>
    <item>
      <title>mysql安裝報錯1</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=8</link>
      <description><![CDATA[]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Thu, 26 Sep 2019 04:18:41 +0000</pubDate>
    </item>
    <item>
      <title>mysql之my.cnf詳解</title>
      <link>https://leeyb.cn/forum.php?mod=viewthread&amp;tid=7</link>
      <description><![CDATA[#*** client options 相关选项 ***#
#以下选项会被MySQL客户端应用读取。注意只有MySQL附带的客户端应用程序保证可以读取这段内容。如果你想你自己的MySQL应用程序获取这些值。需要在MySQL客户端库初始化的时候指定这些选项。
[client]
port = 3309
socket =  /usr/loca ...]]></description>
      <category>Mysql</category>
      <author>liyb</author>
      <pubDate>Thu, 26 Sep 2019 04:17:25 +0000</pubDate>
    </item>
  </channel>
</rss>