优化大致思路:1.表的设计符合三范式2.建立合适的索引(主键索引、唯一索引、普通索引、全文索引)3.定时清理不需要的数据,碎片整理4.存储过程优化5.硬件升级6.mysql配置优化(并发数一般在1000左右,数据缓存优化)7.分表技术(水平分表,垂直分表)8.读写分离-----------------------..
分类:
数据库 时间:
2014-07-31 21:09:57
阅读次数:
350
关于什么是binlog, 查看这里http://www.cnblogs.com/Richardzhu/p/3225254.html我只记录一下, 如果从 binlog 里查找需要的东西首先, 需要知道binlog 日志文件存放在哪里打开mysql配置文件 my.cnf 找到datadir=xxx 这...
分类:
数据库 时间:
2014-07-23 16:49:01
阅读次数:
227
安装mysqlyum -y install mysql-server修改mysql配置vi /etc/my.cnf 这里会有很多需要注意的配置项,后面会有专门的笔记暂时修改一下编码(添加在密码下方): default-character-set = utf8设置mysql随系统启动# chkconf...
分类:
数据库 时间:
2014-07-22 22:42:15
阅读次数:
264
启动进程的参数 TheMySQLservermaintainsmanysystemvariablesthatindicatehowitisconfigured.Eachsystemvariablehasadefaultvalue.Systemvariablescanbesetatserverstartupusingoptionsonthecommandlineorinanoptionfile.Mostofthemcanbechangeddynamicallywhiletheserverisrun..
分类:
数据库 时间:
2014-07-22 18:24:02
阅读次数:
300
这篇文章主要做一下PHP以fpm的方式连接httpd来工作的实验。php的fpm模式,简单点说就是php可以作为一台独立的服务器来提供服务,而不是像上一篇文章一样以httpd程序模块的方式工作。这次我将把每个服务单独安装在一台服务器上来工作。一、拓扑图:图片遮挡了,mysql(10.0.0.10..
分类:
Web程序 时间:
2014-07-20 00:37:51
阅读次数:
406
先贴出代码(/etc/my.cnf)如下:#The following options will be passed to all MySQL clients[client]#password = your_passwordport = 3306socket ...
分类:
数据库 时间:
2014-07-18 14:27:38
阅读次数:
292
一、mysql安装配置1、fedroa19 -- yum安装myusql;mysql database(选择匹配的ferora版本):mysql-community-server-5.6.19-1.fc19.x86_64,依赖包会自动安装;自动安装的内容大致包括:a、下载mysql包及其依赖包,并安...
分类:
数据库 时间:
2014-07-18 10:21:52
阅读次数:
280
三个层面:1.系统层面2.mysql配置参数3.sql语句优化===========================================================一。系统层面======================================================...
分类:
数据库 时间:
2014-07-17 22:22:49
阅读次数:
311
一、mysql配置
1、安装mysql
yum install mysql-server, CentOS中已经默认安装,此步骤忽略。
2、启动mysql
service mysqld start
3、登录mysql
[root@jediael44 share]# mysql -u -root -p
Enter password:
Welcome to the MySQL monit...
分类:
Web程序 时间:
2014-07-16 17:10:41
阅读次数:
321
MySQL配置文件mysql.ini参数详解、MySQL性能优化my.ini(Linux系统下是my.cnf),当mysql服务器启动时它会读取这个文件,设置相关的运行环境参数。 my.ini分为两块:Client Section和Server Section。 Client Section用来配置...
分类:
数据库 时间:
2014-07-15 23:46:51
阅读次数:
556