Mysql
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....
查看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`.`...
设置Mysql的主从复制的主要用途: 1 做备份机器,一旦主服务器崩溃,可以直接启用从服务器作为主服务器 2 可以直接锁定从服务器的表只读,然后做备份数据,这样不会影响主服务器的服务...
Continue reading about centos 5.5 安装 mysql-5.1.53-linux-x86_64 及主从复制集群配置
减少停机时间,以最快的速度升级(upgrade)mysql,升级前建议对新版进行测试。旧版的数据库安装在目录/usr/local/mysql,mysql是一个符号链接。 tar xfz mysql-5.1.50-linux-x86_64-glibc23...
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...
目前最好用的监控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...
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...
MYSQL主从复制(replication)采用 RBR 模式后,binlog的格式为"ROW",能解决很多原先出现的主键重复问题。 在一个繁忙的master db server上,binlog日志文件增长速度很快,如果不定时清除,...
mysql 5.1.39,建立一个存储过程 BEGIN IF ISNULL(s) THEN RETURN ”; ELSEIF n<15 THEN RETURN LEFT(s, n); ELS...
环境: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...
近期评论