Mysql

admin on 五月 25th, 2011

mysql 5.5中InnoDB作为默认的数据库存储引擎,mysql-5.1升级mysql到mysql-5.5以后,以下程序需要重新编译安装升级: PHP 5.3.6 cacti spine pureftp 安装 wget http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.12-linux2....

Continue reading about mysql 5.5.12安装和升级

825 views
admin on 三月 16th, 2011

查看mysql slow_query_log日志发现有大量写入操作很慢 mysqldumpslow -s t -t 10 veryi-slow.log Count: 11459  Time=11268628044.73s (129127208764609s)  Lock=0.00s (0s)  Rows=0.0 (0), root[root]@localhost   UPDATE `veryi`.`...

Continue reading about mysql 写入优化

743 views

设置Mysql的主从复制的主要用途: 1 做备份机器,一旦主服务器崩溃,可以直接启用从服务器作为主服务器 2 可以直接锁定从服务器的表只读,然后做备份数据,这样不会影响主服务器的服务...

Continue reading about centos 5.5 安装 mysql-5.1.53-linux-x86_64 及主从复制集群配置

1,446 views
admin on 八月 27th, 2010

       减少停机时间,以最快的速度升级(upgrade)mysql,升级前建议对新版进行测试。旧版的数据库安装在目录/usr/local/mysql,mysql是一个符号链接。 tar xfz mysql-5.1.50-linux-x86_64-glibc23...

Continue reading about MySQL快速安全升级(upgrade)到最新版

975 views

ERROR 1419 (HY000): You do not have the SUPER Privilege  and Binary  Logging is  Enabled 导入function 、 trigger 到 MySQL database,报错: “You do not have the SUPER privilege and binary logging is enabled (you *might* want to...

Continue reading about mysql导入数据提示没有SUPER Privilege权限处理

1,368 views
admin on 七月 15th, 2010

目前最好用的监控mysql InnoDB 数据库的方法之一 http://code.google.com/p/mysql-cacti-templates/ wget http://mysql-cacti-templates.googlecode.com/files/better-cacti-templates-1.1.7.tar.gz tar -xzf better-cacti-templates-1.1.7.tar.gz -C /u...

Continue reading about cacti监控(monitor)mysql InnoDB 数据库

876 views
admin on 三月 31st, 2010

mysqlslap -hlocalhost -uroot –engine=innodb –auto-generate-sql-write-number=100000 –auto-generate-sql-guid-primary –concurrency=5,50,500 –number-of-queries=500000 –iterations=2 –number-char-cols=10 –numb...

Continue reading about myisam,innodb那个更快一些

444 views

  MYSQL主从复制(replication)采用 RBR 模式后,binlog的格式为"ROW",能解决很多原先出现的主键重复问题。 在一个繁忙的master db server上,binlog日志文件增长速度很快,如果不定时清除,...

Continue reading about 设置自动清理mysql binlog日志和手动删除的方法

3,441 views
admin on 九月 29th, 2009

mysql 5.1.39,建立一个存储过程 BEGIN     IF ISNULL(s) THEN         RETURN ”;     ELSEIF n<15 THEN         RETURN LEFT(s, n);     ELS...

Continue reading about 学习mysql 5 权威指南

527 views
admin on 六月 30th, 2009

环境:centos 5 mysql 5主从复制报错: [ERROR] Slave SQL: Error ‘Duplicate entry ‘…’ for key ‘PRIMARY” on query. Default database: ‘blog’. Query: ‘insert into tb_article_peak(…)  &n...

Continue reading about mysql 主从复制不成功的可能原因

740 views