当前位置: 首页 >> Tag标签为 'MySQL'

Zimbra管理员总是能收到MySQL检查出错的邮件

邮件大概内容为:

/opt/zimbra/mysql/bin/mysqlcheck --defaults-file=/opt/zimbra/conf/my.cnf -S /opt/zimbra/db/mysql.sock -A -C -s -u root --password=VGyGSVvw2mjCMWClWpcKwHjp1dj7W
mysql.general_log
Error    : You can't use locks with log tables.
mysql.slow_log
Error    : You can't use locks with log tables.

通过修复工具会发现,没有任何数据表需要修复,因此,可以这么解决这个错误:

[root@Zimbra-Mailbox-01 ~]# cd /opt/zimbra/db/data/mysql/
[root@Zimbra-Mailbox-01 mysql]# mv *log.frm /tmp/
[root@Zimbra-Mailbox-01 mysql]# /opt/zimbra/mysql/bin/mysqlcheck --defaults-file=/opt/zimbra/conf/my.cnf -S /opt/zimbra/db/mysql.sock -A -C -s -u root --password=VGyGSVvw2mjCMWClWpcKwHjp1dj7W

从上面可以看出,错误提示没有了。

Postfix:BOTH mydestination and virtual_mailbox_domains

先来看看一段Postfix的配置:

 Read the rest of this entry »

WordPress数据库使用非默认端口[非3306端口]

在Wrodpress的配置文件中只有定义数据库服务器地址,并没有填写端口的地方

define('DB_HOST', 'localhost');

如果你的机器运行了多个MySQL数据库(新版本WP只能运行在4.x以上的MySQL上)。

此时,只能通过本地的socks文件来连接数据库了,格式如下:

define('DB_HOST', 'localhost:/tmp/mysql.sock');

不知道这个地址是否有需要改进,如果数据库不是运行在本机,难道只能靠iptables的NAT来搞定了?

MySQL镜像站点

http://download.softagency.net/

从官方下载MySQL程序还要填写一堆报表,麻烦,从这个站点就可以直接下载。

企业级备份软件-BackupPC

以前用过BackupPC,后来由于存储的问题,放弃很长一段时间,最近又回归BackupPC了,发现CGI的功能增加了不少,以前配置文件只能修改配置文件,现在通过web就可以搞定了。

Read the rest of this entry »

discuz常用sql语句【转载】

搜集了一些常用的sql语句。

此操作有风险!升级前请备份好数据库!!

Read the rest of this entry »

FreeBSD Ports变化带来的一点小麻烦

平常使用Linux比较多,为熟悉和了解FreeBSD,在虚拟机下安装了一个FreeBSD,为了了解FreeBSD的升级功能,特意安装7.2版本,通过网络升级,升级到8.0版本。

Read the rest of this entry »

Mirroring MySQL.com

Running a public MySQL mirror currently requires about 170GB of storage. The bandwith that will be used is dependent on the number of mirrors in your area, and the number of users in your area who choose to use your mirror.

We have a few primary mirrors that are used to provide data for the other mirrors, using the rsync program. The mirrored site consists only of static HTML, images, and other files, so there are no other special server requirements.

Read the rest of this entry »