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

linuxÏÂcÓïÑÔÁ¬½ÓmysqlÊý¾Ý¿â

ÔÚFC8ÖÐĬÈÏ°²×°µÄÓÐmysql£¬Ã»ÓеĻ°¿ÉÒԺܷ½±ãµÄ°²×°Ï¡£
ĬÈϵÄmysqlµÄincludeÎļþĿ¼ÔÚ/usr/include/mysql
ĬÈϵÄmysqlµÄlibÎļþ¼ÐÔÚ/usr/lib/mysql
ÕâÁ½¸öĿ¼ÔÚÎÒÃDZàÒëʱºòÐèÒªµ½¡£
ÎҵIJâÊÔÓõÄC´úÂëΪ£º
££include <stdio.h>
#include <stdlib.h>
#include <mysql.h>
#define CONN_HOST "localhost"
#define CONN_USER "root"
#define CONN_PASS "123"
#define CONN_DB "test"
int main()
{
    MYSQL *conn;
    char *server =  CONN_HOST;
    char *user = CONN_USER;
    char *pass = CONN_PADD;
    char *database = CONN_DB;
    conn = mysql_init(NULL);
    if(!mysql_real_connect(conn,server,user,pass,database,0,NULL,0))
    {
       fprintf(stderr,"%s\n",mysql_error(conn));
       exit(1);
    }
    else
    {
       printf("ok!\n");
    }
    mysql_close(conn);
    return 0;
}
±àÒëÃüÁîΪ£º
gcc -o connMysql connMysql.c -I /usr/include/mysql/ -L /usr/lib/mysql/ -lmysqlclient


Ïà¹ØÎĵµ£º

ÉîÈëÑо¿Mysql×Ö·û¼¯ÉèÖÃÒÔ¼°ÅÅÐò·½Ê½

¸ù¾ÝChaos WangµÄPPTÕûÀí¶ø³É£¬ ÔÚ´ËÔٴθÐлChaos WangµÄ´Ë´ÎTechTalk
»ù±¾¸ÅÄî
• ×Ö·û(Character)ÊÇÖ¸ÈËÀàÓïÑÔÖÐ×îСµÄ±íÒå·ûºÅ¡£ÀýÈç'A'¡¢'B'µÈ£»
• ¸ø¶¨Ò»ÏµÁÐ×Ö·û£¬¶Ôÿ¸ö×Ö·û¸³ÓèÒ»¸öÊýÖµ£¬ÓÃÊýÖµÀ´´ú±í¶ÔÓ¦µÄ×Ö·û£¬ÕâÒ»ÊýÖµ¾ÍÊÇ×Ö·ûµÄ±àÂë(Encoding)¡£ÀýÈ磬ÎÒÃǸø×Ö·û'A'¸³ÓèÊýÖµ0£¬¸ø×Ö·û'B'¸³ÓèÊýÖµ ......

Ò»¸öMYsqlÀà

<?php
class mysql {
 /*+++++++++++++++Êý¾Ý¿â·ÃÎÊÀà++++++++++++++++++++++++++
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */
   //=================================================
        //Á¬½ÓÊý¾Ý
 private $Hos ......

»ùÓÚCÓïÑÔºÍGELÓïÑÔµÄFlash±à³Ìз½·¨(תÌû)

ÒÔTMS320VC5402ΪÀý£¬Ì½ÌÖÒ»ÖÖ×ÛºÏÔËÓÃCÓïÑÔ¡¢Êý¾ÝÎļþ¼°GELÓïÑÔµÄFlash±à³Ìз½·¨¡£
¡¡¡¡¸Ã·½·¨ÍêÈ«²ÉÓÃCÓïÑÔ±àдÉÕд³ÌÐò£¬½â¾öÁËÖ¸Õë²»ÄÜ·ÃÎʸ߶ËFlashµÄÎÊÌâ;°ÑÒýµ¼±í×÷³ÉÊý¾ÝÎļþ£¬¿ÉʵÏÖ´óÒýµ¼±íµÄ·ÖÅú´Î¼ÓÔØ;ͨ¹ýGEL³ÌÐò¿ØÖÆC³ÌÐòÖ´ÐУ¬½ÏºÃµØÌåÏÖÁËFlash±à³ÌµÄÁ÷³Ì¡£
¡¡¡¡ÒýÑÔ
¡¡¡¡ÔÚDSPÓ¦ÓÃϵͳ¿ª·¢µÄºóÆÚ£¬Ò»° ......

LinuxÏ°²×°ÅäÖà jdk1.6 tomcat6 Apache2.2 jk mod1.2

±¾ÎÄת×Ô http://zhzhiqun2005.javaeye.com/blog/462799
LinuxÏ°²×°ÅäÖà Jdk1.6+Tomcat6+Apache2.2.x+jk_mod1.2 Ïê½â



LinuxÏ°²×°ÅäÖà Jdk1.6+Tomcat6+Apache2.2.x+jk_mod1.2 Ïê½â
±¾ÆªÒÔRedhat AS5£¬ÄÚºËΪLinux 2.6.18-8.el5 ΪÀý£¬ÆäÖÐRedhat/FedoraϵÁлù±¾Ò»Ö£¬ÆäËûLinux»òÕß° ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ