<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>开发论坛 - 数据库技术</title>
    <link>https://www.ityg.com/bbs/forum.php?mod=forumdisplay&amp;fid=18</link>
    <description>Latest 20 threads of 数据库技术</description>
    <copyright>Copyright(C) 开发论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sat, 02 May 2026 02:49:36 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.ityg.com/bbs/static/image/common/logo_88_31.gif</url>
      <title>开发论坛</title>
      <link>https://www.ityg.com/bbs/</link>
    </image>
    <item>
      <title>mysql8安装</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=7033</link>
      <description><![CDATA[1、将MySQL8文件包解压。

2、安装VC运行时（如果没有安装的话）。

3、命令行下进入mysql\\bin目录。

4、修改my.ini，增加：
# 默认使用“mysql_native_password”插件认证
default_authentication_plugin=mysql_native_password

5、执行：mysqld --initialize --cons ...]]></description>
      <category>数据库技术</category>
      <author>天云上人</author>
      <pubDate>Wed, 22 Apr 2020 02:50:20 +0000</pubDate>
    </item>
    <item>
      <title>MySQL8下Password函数替代方案</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=7028</link>
      <description><![CDATA[MySQL5 版本中有个 password() 函数用于生成密码，该函数在 MySQL8 中被移除了。 password() 函数的算法是：upper(sha1(unhex(sha1(\'abc\'))))]]></description>
      <category>数据库技术</category>
      <author>天云上人</author>
      <pubDate>Sat, 15 Feb 2020 04:02:53 +0000</pubDate>
    </item>
    <item>
      <title>mysqldump备份成sql文件</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=7018</link>
      <description><![CDATA[假想环境：
MySQL   安装位置：C:\\MySQL
论坛数据库名称为：bbs
MySQL root   密码：123456
数据库备份目的地：D:\\db_backup\\

脚本：


将以上代码保存为backup_db.bat
然后使用Windows的“计划任务”定时执行该脚本即可。（例如：每天凌晨5点执行back_db.bat）
说明： ...]]></description>
      <category>数据库技术</category>
      <author>天云上人</author>
      <pubDate>Sun, 22 Jan 2017 10:16:46 +0000</pubDate>
    </item>
    <item>
      <title>MySQL 5.7.9安装</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=6994</link>
      <description><![CDATA[官网的安装说明里有解释，需要执行如下命令，做一下初始化。
mysqld --initialize

转载一：
官网下载的mysql5.7 没有data目录，需要初始化一下。
我的步骤如下(使用的mysql-5.7.9)：
1、修改my.ini，配置好data目录，放到bin路径 下：
2、执行：mysqld --initialize-in ...]]></description>
      <category>数据库技术</category>
      <author>天云上人</author>
      <pubDate>Fri, 13 Nov 2015 07:34:42 +0000</pubDate>
    </item>
    <item>
      <title>如何关闭MySQL日志，删除mysql-bin.0000*日志文件</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=6934</link>
      <description><![CDATA[MySQL默认是开启了日志文件的，如果数据操作比较频繁就会产生大量的日志，在/usr/local/mysql/var/下面产生mysql- bin.0000* 类似的文件，而且一般都在几十MB到几个GB，更甚会吃掉整个硬盘空间，从来导致mysql无法启动或报错。
如何关闭MySQL的日志功能：一、删除日志： ...]]></description>
      <category>数据库技术</category>
      <author>天云上人</author>
      <pubDate>Mon, 16 Jun 2014 08:26:39 +0000</pubDate>
    </item>
    <item>
      <title>MySql中把一个表的数据插入到另一个表中的实现代码</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=6920</link>
      <description><![CDATA[一、如果2张表的字段一致，并且希望插入全部数据，可以用这种方法：     

二、如果只希望导入指定字段，可以用这种方法：


三、如果您需要只导入目标表中不存在的记录，可以使用这种方法：

 ...]]></description>
      <category>数据库技术</category>
      <author>天云上人</author>
      <pubDate>Tue, 24 Dec 2013 08:53:03 +0000</pubDate>
    </item>
    <item>
      <title>使用MySQL的安全问题</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=5272</link>
      <description><![CDATA[使用MySQL，安全问题不能不注意。以下是MySQL提示的23个注意事项:　　1.如果客户端和服务器端的连接需要跨越并通过不可信任的网络，那么就需要使用SSH隧道来加密该连接的通信。
　　2.用set password语句来修改用户的密码，三个步骤，先“mysql -u root”登陆数据库系统 ...]]></description>
      <category>数据库技术</category>
      <author>光头大叔</author>
      <pubDate>Sun, 08 Apr 2007 08:34:00 +0000</pubDate>
    </item>
    <item>
      <title>MySQL中修改密码及访问限制设置详解</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=5174</link>
      <description><![CDATA[MySQL中修改密码及访问限制设置详解 
　　MySQL是一个真正的多用户、多线程SQL数据库服务器。MySQL是以一个客户机/服务器结构的实现，它由一个服务器守护程序mysqld和很多不同的客户程序和库组成。由于其源码的开放性及稳定性，且与网站流行编 挥镅 PHP的完美结合，现 ...]]></description>
      <category>数据库技术</category>
      <author>光头大叔</author>
      <pubDate>Thu, 22 Feb 2007 02:02:13 +0000</pubDate>
    </item>
    <item>
      <title>请教一下mysql中的自增字段</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=4992</link>
      <description><![CDATA[许多的mysql表中都有个自增字段,一般用来作为索引或者标识,类型一般都是给int 11.
每次插入数据的时候这个字段都是由系统分配一个唯一的值,请教的问题:假设目前表中有5条记录,索引字段的值也分配到了5,
那么我现在把第三条记录删除了,也就是自增字段为3的记录没了,那么 ...]]></description>
      <category>数据库技术</category>
      <author>狂想</author>
      <pubDate>Mon, 25 Dec 2006 13:52:31 +0000</pubDate>
    </item>
    <item>
      <title>完美转换MySQL的字符集</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=4924</link>
      <description><![CDATA[MySQL从4.1版本开始才提出字符集的概念，所以对于MySQL4.0及其以下的版本，他们的字符集都是Latin1的，所以有时候需要对mysql的字符集进行一下转换，MySQL版本的升级、降级，特别是升级MySQL的版本，为了不让程序继续沿用Latin1字符集之后对以后Discuz！版本升级的影响 ...]]></description>
      <category>数据库技术</category>
      <author>天云上人</author>
      <pubDate>Sun, 10 Dec 2006 09:55:16 +0000</pubDate>
    </item>
    <item>
      <title>[收藏]SQL Server实用经验与技巧大汇集</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=4870</link>
      <description><![CDATA[　　包括安装时提示有挂起的操作、收缩数据库、压缩数据库、转移数据库给新用户以已存在用户权限、检查备份集、修复数据库等。

　　1.挂起操作 

　　在安装Sql或sp补丁的时候系统提示之前有挂起的安装操作，要求重启，这里往往重启无用，解决办法： 

　　到HKEY_LO ...]]></description>
      <category>数据库技术</category>
      <author>天云上人</author>
      <pubDate>Tue, 14 Nov 2006 08:19:23 +0000</pubDate>
    </item>
    <item>
      <title>[请教]MYSQL的IP是怎么设置的呢？</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=4591</link>
      <description><![CDATA[是要装APACHE吗 
还是修改一下My.ini
或者用密令实现呢？
最近装了个论坛 想测试一下
但是IP老是显示LOCALHOST郁闷死了]]></description>
      <category>数据库技术</category>
      <author>cdgxls</author>
      <pubDate>Fri, 23 Jun 2006 04:08:23 +0000</pubDate>
    </item>
    <item>
      <title>（转载）MySQL初学者使用指南</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=4432</link>
      <description><![CDATA[　　有很多朋友虽然安装好了mysql但却不知如何使用它。在这篇文章中我们就从连接MYSQL、修改密码、增加用户等方面来学习一些MYSQL的常用命令。
　　
　　一、连接MYSQL
　　
　　格式： mysql -h主机地址 -u用户名 －p用户密码
　　
　　1、例1：连接到本机上的MYSQL ...]]></description>
      <category>数据库技术</category>
      <author>天云上人</author>
      <pubDate>Sun, 09 Apr 2006 07:45:02 +0000</pubDate>
    </item>
    <item>
      <title>[收藏]MySQL5.0中的Function和Procedure</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=3797</link>
      <description><![CDATA[创建函数(Function)

创建:
mysql&amp;gt; CREATE FUNCTION MyFunc (s CHAR(20)) RETURNS CHAR(50) RETURN CONCAT
(&amp;#39;Hello&amp;#39;,s,&amp;#39;.Lan&amp;#39;,&amp;#39; !&amp;#39;);


使用:
mysql&amp;gt; select MyFunc(&amp;#39;Dennis&amp;#39;);

删除:
drop function MyFunc;


创建存储过程(Procedu ...]]></description>
      <category>数据库技术</category>
      <author>天云上人</author>
      <pubDate>Fri, 04 Nov 2005 04:21:22 +0000</pubDate>
    </item>
    <item>
      <title>DBCC CHECKDB 发生错误。解决有酬谢</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=3329</link>
      <description><![CDATA[DBCC CHECKDB 发生错误。解决有酬谢 
使用DBCC CHECKDB 发生错误。 
各位兄弟救急.谢谢 

使用DBCC CHECKDB 发生错误。

服务器: 消息 8966，级别 16，状态 1，行 1
未能读取并闩锁页 (1:44234)（用闩锁类型 SH）。sysindexes 失败。

能协助处理的给予一定酬金. 电话 ...]]></description>
      <category>数据库技术</category>
      <author>bj_anyi</author>
      <pubDate>Sat, 03 Sep 2005 04:52:15 +0000</pubDate>
    </item>
    <item>
      <title>[收藏]MyISAM单一表突破4G限制的实现方法</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=2974</link>
      <description><![CDATA[近日，一位Discuz!老用户的论坛在发表回复时出现“The table is full”的提示，字面意义上是数据表已满的意思。因为很少有开发者遭遇单一表超过4G的情况，因此朋友间的讨论只能提供一些外围的信息。为解决此问题，我翻阅了很多资料，本文将以我此次问题的解决过程，介 ...]]></description>
      <category>数据库技术</category>
      <author>天云上人</author>
      <pubDate>Mon, 27 Jun 2005 11:02:48 +0000</pubDate>
    </item>
    <item>
      <title>请问如何得出这句的总数 SELECT id FROM orders LIMIT 100</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=2956</link>
      <description><![CDATA[SELECT id FROM orders LIMIT 100
如orders里有200条数据，可以选出100，如有50条，可以选出50条。
请问如何得出总数
SELECT COUNT(id)  FROM orders LIMIT 100不行。limit不起作用。]]></description>
      <category>数据库技术</category>
      <author>dony</author>
      <pubDate>Wed, 22 Jun 2005 03:58:20 +0000</pubDate>
    </item>
    <item>
      <title>存储过程例子</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=2926</link>
      <description><![CDATA[CREATE proc 还书 
@barcode char(7)
as 
if(select count(*) from borrow where barcode=@barcode and getdate()&gt;returntime)=1
  begin
  declare @读者编号 char(7)
  declare @读者姓名 varchar(10)
  declare @条形码 char(7)
  declare @图书名称 varchar(20)
  d ...]]></description>
      <category>数据库技术</category>
      <author>天云上人</author>
      <pubDate>Wed, 01 Jun 2005 09:05:26 +0000</pubDate>
    </item>
    <item>
      <title>[收藏]MSSQL按分页返回查询结果的存储过程</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=2913</link>
      <description><![CDATA[改一下，看看这样是不是更好一点？
/*
  函数名称: GetRecordFromPage
  函数功能: 获取指定页的数据
  参数说明:   @tblName        包含数据的表名
            @fldName        关键字段名
             @PageSize      每页记录数
            @PageIndex    要获取 ...]]></description>
      <category>数据库技术</category>
      <author>天云上人</author>
      <pubDate>Sun, 29 May 2005 12:39:32 +0000</pubDate>
    </item>
    <item>
      <title>请问如何把mysql3.2升级到mysql4.1,需要进行哪些设置</title>
      <link>https://www.ityg.com/bbs/forum.php?mod=viewthread&amp;tid=2666</link>
      <description><![CDATA[哈.请天云有空回答一下,谢谢.]]></description>
      <category>数据库技术</category>
      <author>梦狐</author>
      <pubDate>Tue, 15 Mar 2005 03:45:17 +0000</pubDate>
    </item>
  </channel>
</rss>