在这里吧昨天做的主从数据库配置记录下来,免得以后折腾数据库主从配置心得:master : 192.168.16.247slave1 : 192.168.16.2481 修改配置文件 /etc/mysql/my.cnf(如果my.cnf已有该配置项,则相应的进行修改) 主数据库: server-id ...
分类:
数据库 时间:
2014-07-16 23:25:51
阅读次数:
331
#include "my_file.h"
//将文件内容拷贝到指定文件
int mycopy(const char *filename)
{
ifstream infile(filename, ios::binary);
ofstream outfile("TRACE.txt", ios::binary);
if (!infile.is_open() || !outfile...
分类:
其他好文 时间:
2014-06-28 08:46:56
阅读次数:
199
我勒个去,上午刚搞好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
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
This question is not so difficult.
First,my thoughts were we should use a lot of code to find out the loop block,but there is no need to do that .
you just need to get every new position of char in ...
分类:
其他好文 时间:
2014-06-27 23:39:44
阅读次数:
293
1、字符串问题问题描述:把一个字符串中的除大写字母、小写字母和数字字符之外的其他字符都去掉,输出新字符串。要求实现函数:void my_string(char* input, char* output)【输入】 char* input,输入的字符串【输出】 char* output, 输出的字符串【...
分类:
其他好文 时间:
2014-06-27 15:52:30
阅读次数:
208
Change MySQL 5.5 default character-set to UTF8连接里是linux下的在window下my.iniAdd under [client]the following code snippet:loose-default-character-set = utf8...
分类:
数据库 时间:
2014-06-27 15:09:07
阅读次数:
222
一、基本操作1)创建> post={"title":"MyBlog Post", "content":"Here's my blog post.", "date":new Date()}> db.blog.insert(post)2)查看> db.blog.find()或者 db.blog.find...
分类:
数据库 时间:
2014-06-27 11:22:03
阅读次数:
254
应用Clip属性实现的一个简单效果图:样式写法:.my-element{position:absolute;clip:rect(10px350px170px0);/*IE4toIE7*/clip:rect(10px,350px,170px,0);/*IE8+&otherbrowsers*/}属性解析...
分类:
Web程序 时间:
2014-06-27 10:56:22
阅读次数:
763
I used to see my senior developers use WITH (NOLOCK) when querying in SQL Server and wonder why they use. Now i explored it and found thatit's useful ...
分类:
数据库 时间:
2014-06-26 12:51:12
阅读次数:
265