<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; 数据库</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/database/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Wed, 01 Apr 2026 08:27:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux下安装H2数据库</title>
		<link>https://www.osyunwei.com/archives/14321.html</link>
		<comments>https://www.osyunwei.com/archives/14321.html#comments</comments>
		<pubDate>Tue, 16 Apr 2024 05:49:56 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[h2]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=14321</guid>
		<description><![CDATA[H2是Thomas Mueller提供的一个开源的、纯java实现的关系数据库。 官方网站：https://www.h2database.com/ 下载地址：https://www.h2database.com/html/download.html https://github.com/h2database/h2database/releases/download/version-2.2.224/h2-2023-09-17.zip 上传安装包到/data/soft目录 H2 数据库服务器默认监听 9092 端口用于 TCP 连接，8082 端口用于 Web 连接，可以自定义修改 H2 数据库依赖java，需要先安装java环境 1、安装 unzip /data/soft/h2-2023-09-17.zip -d /data/server/ #解压 mkdir -p /data/server/h2/data #创建数据库存放目录 #配置环境变量 vi /etc/profile #set h2 environment export H2_HOME=/data/server/h2 export PATH=$PATH:$H2_HOME/bin :wq! #保存退出 source /etc/profile #使配置立即生效 2、编辑启动脚本 vi /data/server/h2/h2.sh #!/bin/bash # 设置H2数据库的路径 H2_DIR="/data/server/h2" # 设置H2数据库的日志文件路径 LOG_FILE="$H2_DIR/h2.log" # 设置H2数据库的PID文件路径 PID_FILE="$H2_DIR/h2.pid" [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/14321.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/14321.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 7.x下MySQL数据库主从同步配置</title>
		<link>https://www.osyunwei.com/archives/12732.html</link>
		<comments>https://www.osyunwei.com/archives/12732.html#comments</comments>
		<pubDate>Thu, 30 Jun 2022 07:42:26 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[主从架构]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[主从同步]]></category>
		<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12732</guid>
		<description><![CDATA[说明： 操作系统：CentOS 7.x 64位 MySQL数据库版本：mysql-5.7.38-linux-glibc2.12-x86_64.tar.gz MySQL主服务器：192.168.21.128 MySQL从服务器：192.168.21.129 准备篇： 说明：在两台MySQL服务器192.168.21.128和192.168.21.129上分别进行如下操作 一、防火墙配置 CentOS 7.x 默认使用的是firewall作为防火墙，这里改为iptables防火墙。 1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-config-firewall # [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12732.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12732.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下源码编译安装PostgreSQL数据库</title>
		<link>https://www.osyunwei.com/archives/12468.html</link>
		<comments>https://www.osyunwei.com/archives/12468.html#comments</comments>
		<pubDate>Sat, 04 Jun 2022 13:07:43 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12468</guid>
		<description><![CDATA[PostgreSQL是一个功能非常强大的、源代码开放的关系型数据库，PostgreSQL被业界誉为“最先进的开源数据库”，主要面向企业复杂查询SQL的OLTP业务场景， 支持NoSQL数据类型（hstore/JSON/XML） 一、防火墙配置 CentOS 7.x 8.x 默认使用的是firewall作为防火墙，这里改为iptables防火墙。 1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12468.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12468.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL数据库InnoDB引擎下服务器断电数据恢复</title>
		<link>https://www.osyunwei.com/archives/9204.html</link>
		<comments>https://www.osyunwei.com/archives/9204.html#comments</comments>
		<pubDate>Sun, 02 Aug 2015 10:10:04 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[InnoDB]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[数据库]]></category>
		<category><![CDATA[数据恢复]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=9204</guid>
		<description><![CDATA[说明： 线上的一台MySQL数据库服务器突然断电，造成系统故障无法启动，重新安装系统后，找到之前的MySQL数据库文件夹。 问题： 通过复制文件的方式对之前的MySQL数据库进行恢复，发现在程序调用时找不到数据库中的表，造成网站无法正常访问。 分析： 1、MySQL数据库，使用拷贝文件方式来恢复数据库，只支持MyISAM引擎； 2、如果有数据库或数据表使用了InnoDB引擎，恢复的时候，必须连同MySQL数据库目录下的ibdata1文件一起拷贝过来。 解决办法： 1、停止MySQL服务 service mysqld stop 2、找之前的备份数据库文件 cd /home/mysql_bak/mysql/ #进入MySQL备份目录 ibdata1 #需要此文件 3、拷贝ibdata1文件到数据库相应目录 cp /home/mysql_bak/mysql/ibdata1 /usr/local/mysql/data/ibdata1 #拷贝文件到现在的数据库目录 chown mysql.mysql /usr/local/mysql/data/ibdata1 #设置权限为mysql用户和用户组 rm /usr/local/mysql/data/ib_logfile0 #删除现有日志文件，否则启动MySQL失败 rm /usr/local/mysql/data/ib_logfile1 #删除现有日志文件，否则启动MySQL失败 系统运维 www.osyunwei.com 温馨提醒：系统运维原创内容©版权所有,转载请注明出处及原文链接 4、启动MySQL service mysqld start 故障解决 此时页面已正常打开。 ibdata1作用：InnoDB引擎下的表数据文件。 建议：数据库一定要做好备份，恢复数据最好使用.sql备份文件导入。 至此，MySQL数据库InnoDB引擎下服务器断电数据恢复教程完成。 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/9204.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » MySQL数据库InnoDB引擎下服务器断电数据恢复<p><a rel="bookmark" href="https://www.osyunwei.com/archives/9204.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/9204.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server 2000中清空数据库日志文件记录</title>
		<link>https://www.osyunwei.com/archives/995.html</link>
		<comments>https://www.osyunwei.com/archives/995.html#comments</comments>
		<pubDate>Mon, 07 Nov 2011 05:35:20 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[数据库]]></category>
		<category><![CDATA[数据库日志]]></category>
		<category><![CDATA[清空数据库]]></category>

		<guid isPermaLink="false">http://w66416.s75.chinaccnet.cn/?p=995</guid>
		<description><![CDATA[引言：在SQL Server 2000中，有时候数据库只有几十兆，但是日志却有上百兆，甚至好几个G, 并且日志文件每天都在增长，下面我们需要在不影响数据库使用的前提下清空数据库日志记录，操作如下： 1、设置数据库模式为简单模式： 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 打开SQL企业管理器，在控制台根目录中依次点开 Microsoft SQL Server-SQL Server组-双击打开你的服务器-双击打开数据库目录 -选择你的数据库名称-然后点击右键选择属性-选择选项-在故障还原的模式中选择“简单”，在自动收缩前面打钩，确定。 2、在当前数据库上点右键，所有任务中-收缩数据库 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 选择文件按钮，数据库文件后：选择日志文件，其他设置默认即可，点确定。 3、收缩数据库完成后，建议将您的数据库属性重新设置为标准模式，因为日志记录在一些异常情况下往往是恢复数据库的重要依据。 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/995.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » SQL Server 2000中清空数据库日志文件记录<p><a rel="bookmark" href="https://www.osyunwei.com/archives/995.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/995.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
