Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÔÚÏßmysqlÊý¾Ý¿â·¢ÏÖ¸ºÔعý¸ß

·¢ÏÖÔÚÏßmysqlÊý¾Ý¿â·¢ÏÖ¸ºÔعý¸ß£¬
linux£¨centos£©¡¡£«mysql£µ¡¡
linuxÓÃtop·¢ÏÖÄڴ棳£°£¹£°£¹£¸£°k¡¡total£»
used¡¡£³£°£°£³£³£¶£°
£¿

ʲôԭÒò
ûÓÐÕÒµ½²éѯÓï¾ä

ÊDz»ÊÇÁ´½ÓÌ«¶àÁË µ¼ÖÂIO´óÁ¿ÏûºÄ

ÉèÖÃ max_connections          | 100
The number of simultaneous client connections allowed. By default, this is 151, beginning with MySQL 5.1.15.


    max_user_connections    | 0
The maximum number of simultaneous connections allowed to any given MySQL account. A value of 0 means ¡°no limit.¡±



ʵ¼ÊÉÏmax_connections £½£µ£°£°
max_user_connections  £½ 0


Óù¤¾ß¹Û²ì¡¡µ±Ç°Á¬½Óµ½Êý¾Ý¿âµÄ»úÆ÷¡¡ºÜÉÙ¡£
£¨±¾Ó¦Óüܹ¹ÊÇ¡¡¼¸Ì¨webserver¡¡£«¡¡£±db
²»´æÔÚÓû§Ö±½ÓÁ¬½Ó»úÆ÷µÄÇé¿ö
£©

3 core parameters:
read_buffer_size=16M read_rnd_buffer_size=26k sort_buffer_size=134M (rather big)

if 20 users are logging the system at the same time ,  prod1a's load will be
16M*20+26k*20+134*20=3000M



Ïà¹ØÎÊ´ð£º

mysqlµÄÁ¬½Ó³¬Ê±Ê±¼äÔõôÉèÖà - VC/MFC / Êý¾Ý¿â

ÎÒÊÇÓÃmysql×Ô´øµÄC API
if(mysql_real_connect(&mysql,"125.0.0.108","root","root","home",3306,NULL,0))

AfxMessageBox("Êý¾Ý¿âÁ¬½Óʧ°Ü") ......

Winform+MySQL×öÏîÄ¿

Winform+MySQL×öÏîÄ¿£¬ÔÚ×¢ÖØÐÔÄܵÄÇé¿öÏ£¬ÎÒ¸ÃÈçºÎÈ¥Íê³ÉÕâÀàÐ͵ÄÏîÄ¿ÄØ£¡
Çë¸÷λ¸øÒÔÌáʾ¡£
ÄãÕâ¸ö·¶Î§Ì«¹ãÁË£¬ÎÒ˵2µãÖØÒªµÄ°É
1.WINFORM³ÌÐòÊǵ¥¶ÀÔËÐеÄCS³ÌÐò£¬ºÍBS²»Í¬£¬BSµÄѹÁ¦Ê¼ÖÕ¶¼ÔÚSERVERÉϵ쬶ÔC ......

MySqlÎÊÌâ

MySqlÖвåÈ뵱ǰʱ¼äµÄ¸ÃÔõôд°¡£¿
now()

SQL code:

sqlÀïÊÇ£º
getdate()

ÒýÓÃ
now()


ѧϰ

SQL code:
select now();

SQL code:
TODAY()
?

SQL code:
select now();
/* ......

MySQLÈëÃÅ

MySQLÈëÃÅ
¿ÉÒÔÏÈ¿´Ê²Ã´Êé¼®°¡£¿
ÏȶÁÈý±é¡¶Êý¾Ý¿âϵͳ¸ÅÂÛ¡·,ÕÆÎÕÊý¾Ý¿âµÄ»ù´¡ÀíÂÛ¡£
È»ºóÔÙ´Ö¿´Ò»±éMYSQLµÄ¹Ù·½Îĵµ¡£ MySQL¹Ù·½Îĵµ http://dev.mysql.com/doc/refman/5.1/zh/index.html

¾ÍÕÒÒ»±¾ºÜ»ù´ ......

mysql µ¼ÖÂËÀ»ú

»·¾³£ºwin2003 apache2 resin3 php5 mysql5
mysql´íÎóÀï³öÏÖÕâ¸ö£¬·þÎñÆ÷Ö±½ÓËÀµ½ÄÇÀï¡£
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_log ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ