百度空间 | 百度首页 
 
文章列表
 
您正在查看 "Mysql Manual" 分类下的文章

2009-10-29 16:07
原文:http://blog.163.com/song_0803/blog/static/46097597200982124352651/
作者:宋红光

今天再我把数据库data 拷贝到linux 下运行程序 ”mysql中Table is read only的解决“  出现这样的问题,查询资料。

运行flush tables后,read only问题解决。

另:mysql/data/sometable/下的文件
类别:Mysql Manual | 评论(0) | 浏览()
 
2009-10-22 23:31
http://www.sphinxsearch.com/
中文wiki介绍:http://www.sphinxsearch.com/wiki/doku.php?id=sphinx_chinese_tutorial

Sphinx 是一个基于SQL的全文检索引擎,可以结合MySQL,PostgreSQL做全文搜索,它可以提供比数据库本身更专业的搜索功能,使得应用程序更容易实 现专业化的全文检索。Sphinx特别为一些脚本语言设计搜索API接口,如PHP,Python,Perl,Rub
类别:Mysql Manual | 评论(0) | 浏览()
 
2009-10-10 16:59
来源:http://www.pkphp.com/2008/10/15/%E4%BD%BF%E7%94%A8sql_calc_found_rows%E8%8E%B7%E5%8F%96mysql%E6%9F%A5%E8%AF%A2%E8%AE%B0%E5%BD%95%E6%80%BB%E6%95%B0/
作者:记录与PHP的PK经历

通常mysql获取查询记录总数我们使用如下语句:
SELECT COUNT(*) FR
类别:Mysql Manual | 评论(0) | 浏览()
 
2009-09-10 22:28
类别:Mysql Manual | 评论(0) | 浏览()
 
2009-04-09 15:04
一、案例
如表table:
NAME PACKNO UNITPRICE
A      1      2
A      3      4
B      5      6
B      7      8

如何得到如下结果
NAME SUM  
A   
类别:Mysql Manual | 评论(0) | 浏览()
 
2009-04-04 15:12
一、调整table cache
table_cache 参数设置表高速缓存的数目。每个连接进来,都会至少打开一个表缓存。因此, table_cache 的大小应与 max_connections 的设置有关。例如,对于 200 个并行运行的连接,应该让表的缓存至少有 200 × N ,这里 N 是应用可以执行的查询的一个联接中表的最大数量。此外,还需要为临时表和文件保留一些额外的文件描述符。

当 Mysql 访问一个表时,如果该表在缓存中已经被打开,则可以直接访问缓存;如果还没有被缓存,但是在 Mysql 表缓冲区中还有空间
类别:Mysql Manual | 评论(0) | 浏览()
 
2009-03-18 15:31
alter table table_name auto_increment=n;
如:alter table pb_threads AUTO_INCREMENT=1;
类别:Mysql Manual | 评论(0) | 浏览()
 
2009-03-17 17:32
原文:http://publish.it168.com/2006/0220/20060220199901.shtml

1.获取当前配置参数
  要优化配置参数,首先要了解当前的配置参数以及运行情况。使用下列命令可以获得目前服务器使用的配置参数:

  mysqld –verbose –help

  mysqladmin variables extended-status –u root –p

  在MySQL控制台里面,运行下列命令可以获取状态变量的值

类别:Mysql Manual | 评论(0) | 浏览()
 
2009-03-17 11:57
1,容易发生错误的设置:
log_slow_queries = ON
log_slow_queries=/var/log/slow-queries.log
long_query_time=5
这种容易导致slow-queries.log无法读取的错误(权限问题)。
常见错误提示:
[ERROR] Could not use /var/log/slow-queries.log for
logging (error 13). Turning logging off for the whole duration of the
MySQL server process. To turn it on again: fix the cause, shu
类别:Mysql Manual | 评论(0) | 浏览()
 
2009-03-17 11:51
1,查看Mysqld(/var/log/mysqld.log)日志,发现以下错误:
InnoDB: Error: log file /usr/local/mysql/data/ib_logfile0 is of different size 0
5242880 bytes
InnoDB: than specified in the .cnf file 0 104857600 bytes!
030826 1:42:15 Can't init databases
030826 1:42:15 Aborting


2,解决办法

"
If you want to change the number or the size o
类别:Mysql Manual | 评论(0) | 浏览()
 
     
 
 
文章分类
 
     
 
文章存档
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
     
 
最新文章评论
   

array_map('arry_unique',$arr);
 
 

谢谢
 

MySQL Enterprise Monitor 现在真难下啊,博主有没一个有效的下载地址?
 
 
     


©2009 Baidu