Mysql编译安装参数优化 1. -static  13%    --with-client-ldflags=-all-static    --with-mysqld-ldflags=-all-static 静态链接提高13%性能 2. -pgcc  1%    CFLAGS="-O3 -mpentiumpro -mstack-align-double" CXX=gcc \      CXXFLAGS="-O3 -mpentiumpro -mstack-align-...   

阅读全文

选择binary包进行编译安装时,configure选用的参数对数据库的性能的好坏起到较为关键的影响   ./configure --prefix=/usr/local/mysql \ 指定安装目录 --without-debug \去除debug模式 --with--charset=gbk \ --with-extra-charsets="gbk gb2312 big5 utf8" \添加中文字符支持 --enable-assembler \使用一些字符函数的汇编版本 --wit...   

阅读全文

user表: create table user ( userid integer not null auto_increment primary key, username varchar(12) not null ) type=innodb; password表: create table password ( userid integer not null, password varchar(12) not null, index (userid), foreign key (userid) references user (userid) on delete cascade on ...   

阅读全文

一种

select * from art limit 9000,10

优化的,
Select * From art Where id>=(

Select id From art  Order By id limit 9000,1

) limit 10

暂时没发现优化多少,哈,继续测试

 

今天导入mysql数据库的备份时候出这个错误:Incorrect string value:'\xE7.... ,不知道什么问题,有说是编码问题,暂不知道。

目前是从mysql 4.0 版本迁移到5.0上出错的。

导入MySQL备份时会出现“MySQL server has gone away”错误,原因可能是因为其中一些insert语句的大小超出了mysql目前设置的缓冲区大小。 解决办法 1.使用phpmyadmin 备份mysql的时候,只选择 数据:        完整插入        扩展插入   扩展插入不要勾选 2.使用 mysqldump 备份...   

阅读全文