摘要:
当一个查询中使用不止一个索引的时候,MySQL会试图找到一个最高效的索引。它通过分析每条索引内部数据分布的统计信息来做到这一点。本例中我们要查询创建于1980年的所有品牌,因此我们在artist表的type列上创建一个索引,因为我们要在其上执行搜索。mysql> ALTER TABLE artist... 阅读全文
阅读排行榜
make 出错: /usr/bin/ld: cannot find -lrt
2013-09-13 20:02 by 游乐场123, 1937 阅读, 收藏,
摘要:
make 出错:/usr/bin/ld: cannot find -lrtcollect2: ld returned 1 exit statusmake: *** [page_parser] Error 1解决办法:yum install glibc-static 阅读全文
.NET MYSQL数据库操作基类( C#源码)
2012-02-27 03:55 by 游乐场123, 1853 阅读, 收藏,
摘要:
使用MySql.Data.dll,它.Net访问MySQL数据库的一个驱动 下载DbHelperMySql.CSusing System;using System.Collections;using System.Collections.Specialized;using System.Data;using System.Data.SqlClient;using System.Configuration;using MySql.Data.Types;using MySql.Data.MySqlClient; /// <summary> /// C#操作MYSQL数据库基类 /// 阅读全文
CENTOS 6 通过YUM升级GCC到4.7/4.8
2017-02-21 01:16 by 游乐场123, 1726 阅读, 收藏,
摘要:
第一阶段:升级到4.7 安装文件放置位置在:/opt/centos/devtoolset-1.1具体程序文件位置在:/opt/centos/devtoolset-1.1/root/usr/bin/* 使用最新的gcc环境,所以要替换本地的,使用软连接来完成(也可以设置环境变量,看自己喜好) 第二阶段 阅读全文
libtool: Version mismatch error. 解决方法
2015-10-08 12:57 by 游乐场123, 1645 阅读, 收藏,
摘要:
在编译一个软件的时候,在 ./configure 和 make 之后可能会出现如下错误:[plain]view plaincopyprint?libtool:Versionmismatcherror.Thisislibtool2.4.2Debian-2.4.2-1ubuntu1,butthelibt... 阅读全文
浙公网安备 33010602011771号