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

mysql 4.1ÒÔÉϰ汾ÖÐÎÄÂÒÂë½â¾ö·½·¨¼¯½õ

mysql 4.1µÄ¸Ä±äÔì³ÉµÄÂÒÂë½â¾ö·½·¨
µÚÒ»¸ö·½·¨£º
MySQL 4.1 ÖÐÎÄÂÒÂëµÄÎÊÌâ
×î½üÒª½« MySQL 4.0 Éý¼¶µ½ MySQL 4.1 £¬·¢ÏÖÁËÖÐÎÄÂÒÂëµÄÎÊÌ⣬ϣÍûÒÔϼû½â¶Ô´ó¼ÒÓÐÓá£
1. MySQL 4.1 ÔÚÎÄ×ÖÉÏÓкܴó¸Ä½ø£¬ËüÓÐÁË Character Set Óë Collation µÄ¿®Äî¡£
2. ÔÚ MySQL 4.0 £¬Ò»°ãµÄ³Ìʽ¶¼»á½«ÎÄ×ÖÒÔÀ­¶¡ÎÄ ( latin)  À´´¢´æ£¬¾ÍËãÎÒÃÇÊäÈëÖÐÎÄ×Ö£¬½á¹ûÈÔÊÇ·ÅÔÚÒÔÀ­¶¡ÎÄÉèÖõÄÎÄ×ÖÀ¸ÀïÍ·£¬Õâ¶Ô MySQL 4.0 ÓëÒÔ MySQL 4.0 Ϊ»ù³þµÄ³ÌʽÀ´Ëµ£¬²¢²»»áÓÐÎÊÌâ¡£
3. ¿ÉÊÇ MySQL 4.1 µÄϵͳ±àÂëÊÇÔ¤ÉèÓà UTF-8 µÄ£¬µ±Òª restore MySQL 4.0 µÄ backup µµµ½
MySQL 4.1 ʱ£¬ÂÒÂë¾Í³öÏÖÁË¡£Ô­ÒòÔÚÓÚ MySQL 4.1 ½« latin
Âëת»»¹ýÀ´£¬¶øºóת»»ÊDz¢²»ÍêÈ«ÍêÃÀµÄ£¬Õâµ¼ÖÂÁ˳öÏÖÉÙÁ¿ÎÄ×Ö³öÏÖÂÒÂëÏÖÏó¡£
½â¾öPHP´æÈ¡MySQL 4.1ÂÒÂëÎÊÌâ
QUOTE:
´ÓMySQL
4.1¿ªÊ¼ÒýÈëµÄ¶àÓïÑÔÖ§³ÖȷʵºÜ°ô£¬¶øÇÒÒ»Ð©ÌØÐÔÒѾ­³¬¹ýÁËÆäËûµÄÊý¾Ý¿âϵͳ¡£²»¹ýÎÒÔÚ²âÊÔ¹ý³ÌÖз¢ÏÖʹÓÃÊÊÓÃÓÚMySQL
4.1֮ǰµÄPHPÓï¾ä²Ù×÷MySQLÊý¾Ý¿â»áÔì³ÉÂÒÂ룬¼´Ê¹ÊÇÉèÖùýÁ˱í×Ö·û¼¯Ò²ÊÇÈç´Ë¡£ÎÒ¶ÁÁËÒ»ÏÂеÄMySQLÔÚÏßÊÖ²áÖеÚÊ®ÕÂ
"Character Set Support"ºóÖÕÓÚÕÒµ½Á˽â¾ö·½·¨²¢²âÊÔͨ¹ý¡£
MySQL 4.1µÄ×Ö·û¼¯Ö§³Ö(Character Set Support)ÓÐÁ½¸ö·½Ã棺×Ö·û¼¯(Character
set)ºÍÅÅÐò·½Ê½(Collation)¡£¶ÔÓÚ×Ö·û¼¯µÄÖ§³Öϸ»¯µ½Ëĸö²ã´Î:
·þÎñÆ÷(server)£¬Êý¾Ý¿â(database)£¬Êý¾Ý±í(table)ºÍÁ¬½Ó(connection)¡£
²é¿´ÏµÍ³µÄ×Ö·û¼¯ºÍÅÅÐò·½Ê½µÄÉ趨¿ÉÒÔͨ¹ýÏÂÃæµÄÁ½ÌõÃüÁ
CODE:
mysql> SHOW VARIABLES LIKE 'character_set_%';
  +--------------------------+----------------------------+
  | Variable_name | Value |
  +--------------------------+----------------------------+
  | character_set_client | latin1 |
  | character_set_connection | latin1 |
  | character_set_database | latin1 |
  | character_set_results | latin1 |
  | character_set_server | latin1 |
  | character_set_system | utf8 |
  | character_sets_dir | /usr/share/mysql/charsets/ |
  +--------------------------+----------------------------+
  7 rows in set (0.00 sec)
  mysql> SHOW VARIABLES LIKE 'collation_%';
  +----------------------+-------------------+
  |


Ïà¹ØÎĵµ£º

MySQL decimal ÀàÐÍ

      Ò»°ã¸³Ó踡µãÁеÄÖµ±»ËÄÉáÎåÈëµ½Õâ¸öÁÐËùÖ¸¶¨µÄÊ®½øÖÆÊý¡£Èç¹ûÔÚÒ»¸öFLOAT(8, 1)µÄÁÐÖд洢1. 2 3 4 5 6£¬Ôò½á¹ûΪ1. 2¡£Èç¹û½«ÏàͬµÄÖµ´æÈëFLOAT(8, 4) µÄÁÐÖУ¬Ôò½á¹ûΪ1. 2 3 4 6¡£Õâ±íʾӦ¸Ã¶¨Òå¾ßÓÐ×㹻λÊýµÄ¸¡µãÁÐÒÔ±ãµÃµ½¾¡¿ÉÄܾ«È·µÄÖµ¡£Èç¹ûÏ뾫ȷµ½Ç§·ÖÖ®Ò»£¬ÄǾͲ»Òª¶¨Òåʹ¸ÃÀà ......

Mysql ´íÎó×ܽá

/***************************by
garcon1986********************************/
1.´´½¨±í¸ñʱ´íÎó£º ERROR 1005: Can't
create table (errno: 150)
 Õâ¸ö´íÎóÊÇÓÐÓÉÓÚÖ÷±íºÍÒýÓñíµÄÍâ¼ü¹ØÁª×ֶζ¨Òå²»Ò»ÖÂÒý·¢µÄ¡£
¼ì²éÁ½¸ö±íµÄ¹ØÁª×Ö¶ÎÊÇ·ñÀàÐͱàÂëÍêȫһÖ¡£
 ÁíÍ⻹ÓÐÒ»ÖÖ¿ÉÄܾÍÊǹØÁª×Ö¶ÎÔÚÒýÓñíÖÐ ......

MySQL schemaÃüÃû¹æÔò

/*****************by
garcon1986************************************************************/
ͨÓùæÔò£º
Õû
¸öÊý¾Ý¿âÀïµÄÃû×Ö¶¼¾¡Á¿Ê¹ÓÃСд¡£ÕâÑùÄÜÏû³ýÓÉÓÚ´óСд£¨
case-sensitivity
£©´øÀ´
µÄ´íÎó¡£
Mysql
ĬÈÏÇø·Ö´óСд¡£
ʹ
ÓÃÏ»®Ïß¶Ï¿ªÃû×Ö£¬Ãû×ÖÖв»ÄÜ
ʹÓÿոñ¡£
Ãû×ÖÖо¡Á¿²»Òª
ʹ
ÓÃÊý ......

Mysql¶à±í²éѯ£¬¶à±í²åÈëºÍ¶à±í¸üÐÂ

/*************************************by
garcon1986*****************************************************/
¶à±í²éѯ£º
CREATE TABLE IF NOT EXISTS contact(
contact_id int(11) NOT NULL AUTO_INCREMENT,
user_name varchar(255),
nom varchar(255),
prenom varchar(255),
mail varchar(64),
passcode cha ......

MySQLµÄcµ÷ÓÃ


1. ¸½¼ÓÏîÒ»¶¨ ¼ÓÉÏlibmysql.lib¡£
2. include Ò»¶¨¼ÓÉÏ mysqlµÄinclude£¨ÒòΪҪÅÜÕâ¹Ø¼üÒ»¾ä
#include <mysql.h>£©
3  lib Ò»¶¨¼ÓÉÏ mysqlµÄlib
 
ºÃÁËÏÂÃæÊÇʵÀýºÍphpº¯Êý»ù±¾Ò»ÑùµÄ¡£±¾È˲»¿ÉÄܸøÄã·­ÒëÎĵµ£¬º¯Êý²»¶®×Ô¼º¿´¡£
#include
<windows.h>//ÓÃÕâ¸ö·½±ã£¬°üº¬winsock.hËùÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ