今天发现/usr/local/mysql/var下很多mysql-bin.000001、mysql-bin.000002文件,GOOGLE之。。这是数据库的操作日志,例如UPDATE一个表,或者DELETE一些数据,即使该语句没有匹配的数据,这个命令也会存储到日志文件中,还包括每个语句执行的时间,也...
分类:
数据库 时间:
2014-07-16 23:23:33
阅读次数:
307
1,设置A机时间服务器: a,修改 /etc/ntp.conf,如下: # Undisciplined Local Clock. This is a fake driver intended for backup# and when no outside source of synchroniz.....
分类:
系统相关 时间:
2014-07-10 12:15:56
阅读次数:
253
亲测安装php1、tar zvxf php-5.3.8.tar.gz 2、cd php-5.3.83、./configure \ --prefix=/usr/local/php \--with-mysql=/usr/local/mysql \ --with-apxs=/usr/local/apach...
分类:
Web程序 时间:
2014-07-10 10:30:29
阅读次数:
261
##时间和字符串##- 获取系统时间,按格式化字符串输出```PERL use Time::Local; my $timestamp=time; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($t...
分类:
其他好文 时间:
2014-07-07 23:00:29
阅读次数:
210
很久沒弄mysql,今天突然想做下練習,於是去打開mysql,系統提示錯誤:Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' 。去查下位於/etc/my.cnf(一般情況都是在這個目錄下),裏...
分类:
数据库 时间:
2014-07-07 19:42:26
阅读次数:
233
我勒个去,上午刚搞好MySQL的编译安装,玛德一重启计算机然后重启服务又报错:[root@localhostmysql-5.5.13]#/usr/local/mysql/scripts/mysql_install_db--user=mysqlFATALERROR:Couldnotfind./bin/my_print_defaultsIfyoucompiledfromsource,youneedtorun‘makeinstall‘tocopyt..
分类:
其他好文 时间:
2014-06-28 06:21:53
阅读次数:
313
#!/bin/bash
#
#
#thisisinstallkeepalived+lvs-DR
#
#
tar_dir=/usr/src
configure_yum()
{
echo"[rhel-local]">/etc/yum.repos.d/rhel-local.repo
echo"baseurl=file:///media/Server">>/etc/yum.repos.d/rhel-local.repo
echo"enabled=1">>/etc/yum.repos..
分类:
其他好文 时间:
2014-06-28 06:08:16
阅读次数:
373
一、编译安装apache1、安装环境:yuminstallgccgcc-c++openssl-devellibtool-y2、安装apr、apr-util及pcretarjxfapr-1.5.1.tar.bz2cdapr-1.5.1./configure--prefix=/usr/local/aprmake&&makeinstalltarjxfapr-util-1.5.3.tar.bz2cdapr-util-1.5.3./configure--prefix=/..
分类:
数据库 时间:
2014-06-28 00:58:44
阅读次数:
697
yum-yinstallgccgcc-c++ncurses-devel
tarxvfcmake-2.8.4.gz
cdmake-2.8.8
./bootstrap
gmake&&gmakeinstall
cd..
tarzxvfmysql-5.5.25.tar.gz
cdmysql-5.5.25
mkdir-p/usr/local/mysql/data
cmake-DCMAKE_INSTALL_PREFIX=/usr/local/mysql-DMYSQL_UNIX_ADDR=/tmp/my..
分类:
数据库 时间:
2014-06-28 00:06:19
阅读次数:
354