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

Hibernate + MYSQL½áºÏ´æ´¢ Blob ºÍ ClobÄÚÈÝ

      ½ñÌ죬ÕÛÌÚÁËÒ»¸öÏÂÎ磬ÖÕÓÚ½â¾öÁËHibernate ´æ´¢Blob×Ö¶Îʱ£¬Êý¾ÝÁ¿·Ç³£´óʱ×ÜÊDZ¨ can not update jdbc batchµÄ´íÎóÁË£¬Ô­À´ÊÇMySQLÖÐûÓÐÉ趨×î´óÔÊÐíÖµËùÖ£¬ÎÒ»¹ÒÔΪÊÇHibernate²Ù×÷²»·ûºÏ±ê×¼²ÅÕâÑù¡£¡£¡£ºÇºÇ£¬ÔÚMysql 5.1ÖеÄmy.iniÅäÖÃÎļþÖмÓÈëÈçÏÂÉèÖãº
[MYSQL]
max_allowed_packet = XXXM (XXXΪ×î´óÖµ£¬MΪÕ×£¬Ò²¿ÉÒÔÓÃ1024*1024À´ÅäÖÃ)
      ÕâÀï¼Ç¼ÏÂÀ´£¬ÒòΪÎÒÊDzËÄñ£¬ÎªÁ˱¸Íü°¡£¡£¡£¡£¡¹þ¹þ¹þ


Ïà¹ØÎĵµ£º

mysql×Ö·ûÂÒÂ룿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿

I promise this is gonna be the last time on it :-)
×Ô從寫ÍêÏÂÃæ兩ƪÎÄÕ£º
wordpress 1.5Éý級×¢ÒâÊÂ項 - ÖÐÎÄ亂碼ƪ
mysql 4.1ÖÐÎÄ亂碼µÚ¶þ擊
過È¥幾個Ô¾Ͳ»斷ÓÐ來ÐÅ詢問¸÷種 mysql ÖÐÎÄÏàÈݵÄ ......

mysql »ù±¾ÃüÁî

µÚÒ»ÕС¢mysql·þÎñµÄÆô¶¯ºÍÍ£Ö¹
net stop mysql
net start mysql
µÚ¶þÕС¢µÇ½mysql
Óï·¨ÈçÏ£º mysql -uÓû§Ãû -pÓû§ÃÜÂë
¼üÈëÃüÁîmysql -uroot -p£¬ »Ø³µºóÌáʾÄãÊäÈëÃÜÂ룬ÊäÈë12345£¬È»ºó»Ø³µ¼´¿É½øÈëµ½mysqlÖÐÁË£¬mysqlµÄÌáʾ·ûÊÇ£º
mysql>
×¢Ò⣬Èç¹ûÊÇÁ¬½Óµ½ÁíÍâµÄ»úÆ÷ÉÏ£¬ÔòÐèÒª¼ÓÈëÒ»¸ö²ÎÊý-h»úÆ÷IP
µ ......

LinuxϵͳÏÂÐÞ¸ÄMySQLµÄrootÃÜÂë

µÚÒ»ÖÖ·½·¨£º
rootÓû§µÇ¼ϵͳ
usr/local/mysql/bin/mysqladmin -u root -p password ÐÂÃÜÂë
enter password ¾ÉÃÜÂë
µÚ¶þÖÖ·½·¨£º
rootÓû§µÇ¼mysqlÊý¾Ý¿â
mysql> update mysql.user set password=password("ÐÂÃÜÂë")where User="root";
mysql> flush privileges;
mysql> quit ;
mysqlÍü¼ÇrootÃÜÂëÈçºÎ ......

mysql³£ÓÃÃüÁî

µÚÒ»ÕС¢mysql·þÎñµÄÆô¶¯ºÍÍ£Ö¹
net stop mysql
net start mysql
µÚ¶þÕС¢µÇ½mysql
Óï·¨ÈçÏ£º mysql -uÓû§Ãû -pÓû§ÃÜÂë
¼üÈëÃüÁîmysql -uroot -p£¬ »Ø³µºóÌáʾÄãÊäÈëÃÜÂ룬ÊäÈë12345£¬È»ºó»Ø³µ¼´¿É½øÈëµ½mysqlÖÐÁË£¬mysqlµÄÌáʾ·ûÊÇ£º
mysql>
×¢Ò⣬Èç¹ûÊÇÁ¬½Óµ½ÁíÍâµÄ»úÆ÷ÉÏ£¬ÔòÐèÒª¼ÓÈëÒ»¸ö²ÎÊý-h»úÆ÷IP
µ ......

¹ØÓÚMySQL ORDER BY

ÓÉÓÚϵͳÐèÒª£¬Ð´ÁËÒ»¸öORDER BY µÄSQL²éѯÓï¾ä½øÐÐ×Ö¶ÎÅÅÐò£¬²éѯ½á¹ûûÓнøÐÐÅÅÐò£¬SQLÓï·¨ÕýÈ·£»
ÓÚÊÇ£¬½øÈëMySQL¿ØÖÆÌ¨£¬Ö´ÐÐSQLÓï¾ä£¬Ã»Óб¨´í£¬µ«ÊǾÍÊÇûÓÐÅÅÐò£»
¾­¹ý²éÕÒ·¢ÏÖ£¬ÔÚд ORDER BY ' time' DESC  Óï¾äÖУ¬Ê¹ÓÃÁË“ ' ”·ûºÅ£¬µ¼ÖÂMySQLÎÞ·¨Õý³£½âÎö£¬È¥µôÅÅÐòÕý³££»
»òÕß¿ÉÒÔÓà &ldqu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ