<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>曲径通幽论坛 - 『 Database 』</title>
    <link>http://www.groad.net/bbs/forum.php?mod=forumdisplay&amp;fid=62</link>
    <description>Latest 20 threads of 『 Database 』</description>
    <copyright>Copyright(C) 曲径通幽论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Fri, 10 Apr 2026 06:08:00 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://www.groad.net/bbs/static/image/common/logo_88_31.gif</url>
      <title>曲径通幽论坛</title>
      <link>http://www.groad.net/bbs/</link>
    </image>
    <item>
      <title>Wrong permissions on configuration file, should not be world writable</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7793</link>
      <description><![CDATA[在使用 PHPMyAdmin 时若遇到 \&quot;Wrong permissions on configuration file, should not be world writable\&quot; 这个错误提示，可以执行下面命令更改目录及文件权限解决：

不要使用 777，这样反而是错误的。]]></description>
      <category>『 Database 』</category>
      <author>beyes</author>
      <pubDate>Wed, 08 May 2013 10:14:45 +0000</pubDate>
    </item>
    <item>
      <title>一个好用的图形化客户端(MySQL-Front)</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7653</link>
      <description><![CDATA[介绍一个好用的 MySQL 图形化客户端 MySQL-Front，是个开源软件，官方地址为：http://www.mysqlfront.de/ 。

虽然 phpmyadmin 也是很好用的，但它必须有 WEB 服务器端，而 MySQL-Front 直接连接服务器就行了。Windows 版的安装很简单，一路下一步就好了。

如下图所示 ...]]></description>
      <category>『 Database 』</category>
      <author>张无忌</author>
      <pubDate>Fri, 15 Mar 2013 12:37:02 +0000</pubDate>
    </item>
    <item>
      <title>事务处理</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7651</link>
      <description><![CDATA[与事务相关的前置知识：
 
事务都应该具备ACID特征。所谓ACID是Atomic（原子性），Consistent（一致性），Isolated（隔离性），Durable（持续性）四个词的首字母所写，下面以“银行转帐”为例来分别说明一下它们的含义：
 
原子性：组成事务处理的语句形成了一个逻辑单 ...]]></description>
      <category>『 Database 』</category>
      <author>张无忌</author>
      <pubDate>Tue, 12 Mar 2013 13:20:42 +0000</pubDate>
    </item>
    <item>
      <title>DDL, DML, DCL 和 COMMIT, ROLLBACK</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7649</link>
      <description><![CDATA[从功能上划分，SQL 语言可以分为DDL,DML和DCL三大类。

1. DDL（Data Definition Language）

数据定义语言，用于定义和管理 SQL 数据库中的所有对象的语言 ；
CREATE---创建表
ALTER---修改表
DROP---删除表

2. DML（Data Manipulation Language）
数据操纵语言，SQL ...]]></description>
      <category>『 Database 』</category>
      <author>张无忌</author>
      <pubDate>Mon, 11 Mar 2013 15:39:23 +0000</pubDate>
    </item>
    <item>
      <title>Mysql 中的变量</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7646</link>
      <description><![CDATA[Mysql 中和服务器相关的有两种变量类型：系统变量（Global variables）和 会话变量（Session variables）。
 
系统变量的作用域是系统级别的，会话变量的作用域是会话级别的。
 
系统级别的变更会影响到所有新的session，但不会影响已经存在的 session。如果服务器重启 ...]]></description>
      <category>『 Database 』</category>
      <author>张无忌</author>
      <pubDate>Sun, 10 Mar 2013 15:59:22 +0000</pubDate>
    </item>
    <item>
      <title>CentOS6.3 源码安装 MySQL 5.6.10</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7636</link>
      <description><![CDATA[系统：CentOS6.3

要源码编译安装 MySQL，那就要先下载一份源码，下载地址可以到 http://www.mysql.com/downloads/ 这里下载，在官网上下载，需要免费注册一个账号。一般的，就下载社区版本即可：

点击上图的 Download 进到下载页面后，选择下拉框里的“Source code” ...]]></description>
      <category>『 Database 』</category>
      <author>beyes</author>
      <pubDate>Sun, 03 Mar 2013 17:25:14 +0000</pubDate>
    </item>
    <item>
      <title>索引(index) 与 主键(primary key)</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7266</link>
      <description><![CDATA[随着数据量的增加，数据表会变得越来越大，查询的速度随着数据量的变大而受到很大的影响。为了提高查询速度，就需要为数据建立适当的索引。索引 (index) 是一种辅助性的数据表，它们只包含一种信息 --- 原始数据记录的排序情况。索引还经常被人们称为键字或键(Key) 。

 ...]]></description>
      <category>『 Database 』</category>
      <author>beyes</author>
      <pubDate>Fri, 06 Jul 2012 10:22:24 +0000</pubDate>
    </item>
    <item>
      <title>mysql 和 mysqli 的区别</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7227</link>
      <description><![CDATA[mysql 是非持续连接函数，mysqli 是永久连接函数。mysql 在每次连接时都会打开一个连接进程，而 mysqli 则使用同一连接进程，因此 mysqli 可以减少服务器的开销。但是 mysqli 默认是不开启的，如果是 Windows 系统，那么需要把 php.ini 里面的 php_mysqli.dll 前的分号( ...]]></description>
      <category>『 Database 』</category>
      <author>beyes</author>
      <pubDate>Mon, 25 Jun 2012 16:02:41 +0000</pubDate>
    </item>
    <item>
      <title>为什么数据表通常要用反引号引起来</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=7220</link>
      <description><![CDATA[在执行 SQL 语句时，比较稳妥的做法是用反引号将数据表，字段名用括起来，但很多时候也会发现，即使不这么做，也没什么问题，那么为什么会由这么做呢？原因是防止数据表明或字段名和关键字冲突。比如，一个数据表名刚好为 \&quot;key\&quot; ，那么在执行 SQL 语句时：

如上所示， ...]]></description>
      <category>『 Database 』</category>
      <author>beyes</author>
      <pubDate>Mon, 25 Jun 2012 01:56:47 +0000</pubDate>
    </item>
    <item>
      <title>逻辑运算符</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6934</link>
      <description><![CDATA[逻辑运算符包括：与，或，非，异或。对于逻辑操作，可能的结果有 3 种：

1. TRUE 或 1
2. FALSE 或 0
3. NULL

1. 与操作
逻辑与，表示方法为 &amp;&amp; 或 and，在 MySQL 中逻辑与的操作结果为：
(1) 如果所有的操作数都是非零或非 NULL， 返回 1 。
(2) 如果有一个或多个操 ...]]></description>
      <category>『 Database 』</category>
      <author>beyes</author>
      <pubDate>Sat, 28 Apr 2012 14:36:41 +0000</pubDate>
    </item>
    <item>
      <title>比较运算符</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6933</link>
      <description><![CDATA[在 MySQL 中一次比较的结果可能有 3 种：

1. TRUE 或 1
2. FALSE 或 0
3. NULL

比较操作既有数字比较也有字符串比较，如果待比较的值中既有数字又有字符串，那么 MySQL 会自行转换，如：


在 MySQL 的比较操作中，通常会采用下面的规则：

1.  除了安全等于()外，只 ...]]></description>
      <category>『 Database 』</category>
      <author>beyes</author>
      <pubDate>Sat, 28 Apr 2012 11:46:40 +0000</pubDate>
    </item>
    <item>
      <title>使用 mysqlimport 导入数据</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6929</link>
      <description><![CDATA[mysqlimport 是 MySQL 提供的导入工具，位于安装目录的 bin 目录下，它可以把一个文本文件(Text File)导入到用户指定的数据表中。

mysqlimport 有两个基本参数和大量的可选参数，其基本语法格式为：

其中，[-d/-f...] 表示可选参数，db_name 表示数据库名称，data.txt ...]]></description>
      <category>『 Database 』</category>
      <author>beyes</author>
      <pubDate>Sat, 28 Apr 2012 03:32:11 +0000</pubDate>
    </item>
    <item>
      <title>MySQL权限管理简介</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6919</link>
      <description><![CDATA[在 MySQL 中利用 mysql 这个数据库存储了所有的授权信息，该数据库有若干数据表组成：

在上面的多个表中，涉及到权限控制的有 5 张表：columns_priv ，db，host，tables_priv，user 。

MySQL 正是通过装载这些权限信息表来实现数据的安全管理。

1. columns_priv
该表 ...]]></description>
      <category>『 Database 』</category>
      <author>beyes</author>
      <pubDate>Thu, 26 Apr 2012 11:15:39 +0000</pubDate>
    </item>
    <item>
      <title>授权表</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6909</link>
      <description><![CDATA[对于用户访问权限来讲，最主要的信息存在在一组规则的 MyISAM 表中，这些表称之为“授权表”，它们位于服务器上的 mysql 数据库中，分别是：
user ：全局层级权限 (Global privileges)

db ： 数据库层级权限 (Database-specific privileges)

tables_priv ：表层级权限 ...]]></description>
      <category>『 Database 』</category>
      <author>beyes</author>
      <pubDate>Thu, 26 Apr 2012 03:49:09 +0000</pubDate>
    </item>
    <item>
      <title>主键</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6900</link>
      <description><![CDATA[主键是被挑选出来，作表的行的惟一标识的侯选关键字。一个表只有一个主关键字。主关键字又可以称为主关键字。

主键 (Primary Key) 中的每一笔资料都是表格中的唯一值。换言之，它是用来独一无二地确认一个表格中的每一行资料。主键可以是原本资料内的一个栏位，或是一 ...]]></description>
      <category>『 Database 』</category>
      <author>beyes</author>
      <pubDate>Wed, 25 Apr 2012 09:31:25 +0000</pubDate>
    </item>
    <item>
      <title>修改 MySQL 密码的 3 种方法</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=5491</link>
      <description><![CDATA[方法一：直接修改
 这里使用 mysqladmin 来修改，并分为两种情况，密码为空和已经有设置了密码两种。


当原来密码为空时：

直接将 root 密码设置为 123456 。


当原来有密码时：

这时需要用 -p 后接原密码，然后再修改。


这种方法是一种不安全的设置方法，因为密 ...]]></description>
      <category>『 Database 』</category>
      <author>张无忌</author>
      <pubDate>Wed, 07 Dec 2011 10:45:05 +0000</pubDate>
    </item>
    <item>
      <title>Mysql 导出某个字段的所有数据</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=5161</link>
      <description><![CDATA[比如一个表内有许多个字段，我们可以运行如下命令查看：

输出：

比如我们要导出其中 email 字段中的所有记录，那么可以运行下面的命令：

注意，into outfile 后面的路径要用引号括起来，否则会提示语法错误。]]></description>
      <category>『 Database 』</category>
      <author>张无忌</author>
      <pubDate>Fri, 04 Nov 2011 07:51:36 +0000</pubDate>
    </item>
    <item>
      <title>mysqldump 中的 --lock-all-tables 选项</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=5117</link>
      <description><![CDATA[在备份数据库时，可能会备份单个数据库，备份多个数据库，甚至是所有的数据库，其方式如下：

1.备份单个数据库


2.备份多个数据库
mysqldump  ...]]></description>
      <category>『 Database 』</category>
      <author>张无忌</author>
      <pubDate>Sun, 30 Oct 2011 08:58:09 +0000</pubDate>
    </item>
    <item>
      <title>查看MYSQL的某个数据库的大小</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=5032</link>
      <description><![CDATA[1. 登录 mysql
 
2. use 数据库名 (假设这里是 xgcnjp)
 
3. 执行下面命令：]]></description>
      <category>『 Database 』</category>
      <author>张无忌</author>
      <pubDate>Wed, 19 Oct 2011 08:28:27 +0000</pubDate>
    </item>
    <item>
      <title>重置 MySQL 密码</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=4972</link>
      <description><![CDATA[在忘记 MySQL 密码后可以重置密码，方法是不以加载授权表的方式启动 MySQL，这样设置密码就不需要原密码，然后再重启一下 MySQL 即可。

先停止 MySQL 服务：


以不加载授权表的方式启动 MySQL ：


这样进入 MySQL 后不需要密码，接着可以重置密码了：


接着重启 MyS ...]]></description>
      <category>『 Database 』</category>
      <author>beyes</author>
      <pubDate>Tue, 11 Oct 2011 15:23:54 +0000</pubDate>
    </item>
  </channel>
</rss>