易截截图软件、单文件、免安装、纯绿色、仅160KB

MySQL的查询优化很傻

select id from message where author_id in (select followed_id from Relation where follower_id=1) order by id desc   和 分别执行 $userlist = select followed_id from Relation where follower_id=1 再 select id from message where author_id in ($userlist) order by id desc   竟然有两个数量级的差别,DAMN IT!!!!


相关文档:

Weblogic 9.1的domain配置mysql连接池

 
Weblogic 9.1的domain配置mysql连接池
  本文介绍在weblogic 9.1下的domain配置mysql连接池步骤:
  1.在weblogic目录下的serverlib下添加mysql驱动
  mysql-connector-java-3.1.11-bin.jar
  2.在weblogic目录下的commonin下找到commEnv.cmd打开
  找到set weblogic_classpath= 后边加上mysql驱动 ......

C#.NET连接mysql方法


 mysql.data.dll拷贝到bin下面并引用一下
using MySql.Data.MySqlClient;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string myConnectionString = "Database=test;Data Source=localhost;User Id=root;Password=admin" ......

mysql 修改帐号远程登陆权限

GRANT ALL PRIVILEGES
1。 改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"
Sql代码 复制代码
   1. mysql -u root -pvmwaremysql>use mysql; 
   ......

php ajax mysql编码gb2312

 1、PHP发送中文、Ajax接收
只需在php顶部加入一句:
header('Content-type: text/html;charset=GB2312');
xmlHttp会正确解析其中的中文。
2、Ajax发送中文、PHP接收
这个比较复杂:
Ajax中先用encodeURIComponent对要提交的中文进行编码
PHP中:
$GB2312string=iconv( ‘UTF-8′, ‘gb2312//I ......

MySQL的my.cnf优化实例

http://linux.chinaitlab.com/MYSQL/524755_2.html
http://bbs.chinaunix.net/archiver/?tid-809159.html
 在Apache, PHP,
MySQL的体系架构中,MySQL对于性能的影响最大,也是关键的核心部分。对于Discuz!论坛程序也是如此,MySQL的设置是否合理优化,直接
影响到论坛的速度和承载量!同时,MySQL也是优化难度最大 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号