Press "Enter" to skip to content

Tag: 数据库

mysql mysqladmin: command not found解决方法

有时候安装好MySQL程序的时候,直接输入命令mysql或mysqladmin会发现提示命令不存在,这是由于系统默认会查找/usr/bin下的命令,如果这个命令不在这个目录下,当然会找不到命令,我们需要做的就是映射一个链接到/usr/bin目录下,相当于建立一个链接文件。

首先得知道mysql命令或mysqladmin命令的完整路径,比如mysql的路径是:/usr/local/mysql/bin/mysql,我们则可以这样执行命令:

ln -s /usr/local/mysql/bin/mysql /usr/bin
ln -s /usr/local/mysql/bin/mysqladmin /usr/bin

当提示mysqldump: command not found时同样可以通过此方法来解决。

8 Comments

Too difficult to operate Oracle? Try MiCORE Solutions!

Maybe you feel too difficult to operate the Oracle database, maybe you are worried about this, but now you don’t need to worry about this any longer, because MiCORE Solutions can help you.

MiCORE Solutions is a very professional company which provide Oracle technology support and services, specializing in architecting, optimizing, and managing complex Oracle environments. Their services is very simple, monitor or optimize your Oracle products from remote, or you can call them your “remote oracle dba“.

MiCORE Solutions have a strong and professional expert team who can give your database a simple, effective maintenance and upgrades. They can make sure of your database secure, stable and easily. And they also provide some other services such as “Google apps consultants“, may be you will like it.

Try their service: www.micoresolutions.com.

9 Comments

VPS上大容量数据库备份方法

一般数据库的备份,大家首先想到的就是phpmyadmin,或者帝国备份王之类的工具. 无奈小荷塘有个2G的数据库先后使用了这两种方法都无法成功备份(VPS只有256内存,备份时提示内存超限).

导出数据库要用到MySQL的mysqldump工具,基本用法是:
shell> mysqldump [OPTIONS] database [tables]
如果你不给定任何表,整个数据库将被导出.

1 Comment

SQL Server与SQL Server Compact的关系

SQL Server Compact是面向移动和嵌入式设备的关系数据库,由于其运行环境的特殊性,数据库性能调校和程序优化显得更加重要,该数据库的后缀名为.sdf。一般用于手持设备比如PDA等。

SQL Server是基于关系型数据库的大型数据库系统,该数据库的后缀名为.mdf,数据库日志文件的后缀名为.ldf。

compact
[‘kɔmpækt]
合同, 协定

12 Comments

phpMyAdmin中批量替换字段的SQL语句

偶尔在木木木木木那里发现的,发现很有用,就记下来吧,虽然只是短短一行SQL语句,但它的功效可大了:
1,WordPress 更换域名之后,对数据库中的域名字段进行批处理
2,比如你在多篇文章中均引用了一个网址,但是后来这个网址变了,你可以批量更换日志中的同一个网址。比如,每当我介绍一个免费空间的时候,我都会提到www.zhukun.net/?p=246这篇文章,但是后来我更换了固定链接链接格式,那么这句代码就派上用场了。
3,批量更换博客中的若干词语。比如,最近“草泥马”最成为了违禁词语,所有网站都不能用这个词,那么你就可以用这段代码将“草泥马”批量替换成其它文字。

4 Comments

WP官方推荐的用phpMyAdmin备份WordPress数据库的方法

关于WordPress的数据备份,网上实在可以找出来太多的教程了,光备份插件就有不少。鉴于98%的主机都安装了phpMyAdmin,所以官方推荐的是用phpMyAdmin进行备份(详见http://codex.wordpress.org/WordPress_Backups),这里我将官方推荐的备份教程翻译成中文,不论你的phpMyAdmin是英文还是中文,你都可以按照下图中的流程完成WordPress的备份。

7 Comments