sudo gem install mysql³ö´íµÄ½â¾ö·½·¨
Installing the MySQL Driver
ÏȲ鿴ËùȱʧµÄÏà¹Ø°ü£º
$ apt-cache search libmysqlclient
libcrypt-mysql-perl - Perl module to emulate the MySQL PASSWORD() function.
libglpk0 - linear programming kit with integer (MIP) support
libmysqlclient16 - MySQL database client library
libmysqlclient16-dev - MySQL database development files
ser-mysql-module - contains the MySQL database connectivity module
libmysqlclient15-dev - MySQL database development files
libmysqlclient15off - MySQL database client library
ÔÙ°²×°Ïà¹ØµÄ°ü
/××××××××××××××××××××××××××××××××××××××
On Ubuntu, you should install libmysqlclient14-dev for MySQL 5, and libmysqlclient12-
dev for MySQL 4.
××××××××××××××××××××××××××××××××××××××/
°´ÕÕ¸üеĸоõ£¬ÏÖÔÚ³öÀ´µÄÓ¦¸ÃÊÇ16¶ÔÓ¦µÄMysql 5, 15¶ÔÓ¦µÄÓ¦¸ÃÊÇMysql 4.
ÎÒµÄMysql°æ±¾
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 35
Server version: 5.0.75-0ubuntu10.2 (Ubuntu)
$ sudo apt-get install libmysqlclient16-dev
$ sduo gem install mysql
À´Ô´£º¡¶Apress.Beginning.Ruby.on.Rails.E.Commerce.from.Novice.to.Professional.Nov.2006¡·µÚ¾ÅÒ³Installing the MySQL Driver
Ïà¹ØÎĵµ£º
ºÜ¾ÃûÓÐЩһЩÓÐÓô¦µÄµÄ¶«Î÷ÁË£¡½ñÌì¾Í²»ºúÂÒµÄ䶫Î÷ÁË!дһЩÓÐÓõģ¡µ±È»Ç°ÌáÏÂÊǺܸÐлºÜ¶à¾³£À´ÎÒ²©¿ÍµÄÅóÓÑһϣ¡¶àл´ó¼Ò£¡£¡£¡£¡£¡
½ñÌìдµÄÊǹØÓÚphp»·¾³¼ÜÉèµÄµÚÒ»ÖÖ·½Ê½£¡µ±È»ÎҾͲ»½ØͼÁË£¡´ó¼ÒÖ»Òª°´ÕÕ²Ù×÷¾Í¿ÉÒÔʵÏֵģ¡
Ò»¡¢°²×° PHP £º±¾ÎÄPHP°²×°Â·¾¶È¡ÎªD:\php\php4\(Ϊ±Ü»ìÏý£¬PHP5.1.x°æ±¾°²×°Â·¾ ......
/***************************by
garcon1986********************************/
1.´´½¨±í¸ñʱ´íÎó£º ERROR 1005: Can't
create table (errno: 150)
Õâ¸ö´íÎóÊÇÓÐÓÉÓÚÖ÷±íºÍÒýÓñíµÄÍâ¼ü¹ØÁª×ֶζ¨Òå²»Ò»ÖÂÒý·¢µÄ¡£
¼ì²éÁ½¸ö±íµÄ¹ØÁª×Ö¶ÎÊÇ·ñÀàÐͱàÂëÍêÈ«Ò»Ö¡£
ÁíÍ⻹ÓÐÒ»ÖÖ¿ÉÄܾÍÊǹØÁª×Ö¶ÎÔÚÒýÓñíÖÐ ......
/*************************************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 ......
Java´úÂë < width="14" height="15" src="/javascripts/syntaxhighlighter/clipboard_new.swf" pluginspage="http://www.macromedia.com/go/getflashplayer">
//¿´µ±Ç°Ê¹ÓõÄÊÇÄĸöÊý¾Ý¿â
mysql> SELECT DATABASE();
+------------+
| DATABASE() |
+------- ......