tomcat+jdk+mysqlÃâ°²×°µÄÕûºÏÐÎʽ
tomcat+jdk+mysqlÃâ°²×°µÄÕûºÏÐÎʽ
Ò»£º tomcat+jdk Ãâ°²×°
ºÜ¾ÃÒÔÇ°¾Í¿ªÊ¼Óà tomcat µÄÃâ°²×°°æ(zip ½âѹ°æ)¡£Ö±½ÓÔËÐÐ bin/startup.bat µÄ·½Ê½ÔËÐУ¬ÓÐÒ»¸ö²»ºÃµÄµØ·½¾ÍÊÇ×¢ÏúµÇ¼Óû§³ÌÐò¾ÍÍ˳öÁË¡£±ÈÈç windows 2003 server °æÖÐÔËÐÐ tomcat ÒÔÌṩ¶ÔÍâ·þÎñ£¬ºÜ¿ÉÄܹÜÀíÔ±Æô¶¯ÁË tomcat ºó¾ÍÍ˳ö windows 2003 server¡£ÕâÑù tomcat Ò²ËæÖ®Í˳ö. ÒÔ windows ·þÎñµÄ·½Ê½ÔËÐоͲ»»á£¬Ò²¿É·½±ãµØÉèÖÿª»úÔËÐÐ.
Ãâ°²×°µÄjdk + tomcat·¢²¼Ó¦ÓóÌÐò²½Öè
Ò»¡¢¿½±´Ò»¸ö°²×°ºóµÄjdk .È磺jdk1.6.0_10(¿½±´bin, include, lib,jreËĸöÎļþ¼Ð,
ÍøÉÏÒ²ÓÐÈËûÓмÓjreÎļþ¼Ð,·´Õý¶¼¿ÉÒÔÊÔÒ»ÊÔ)
¶þ¡¢¿½±´Ò»¸öÂÌÉ«Ãâ°²×°µÄtomcat .È磺apache-tomcat-6.0.18
Èý¡¢°Ñjdk·Åµ½tomcatÏÂÃ棬È磺apache-tomcat-6.0.18 \ jdk1.6.0_10
ËÄ¡¢ÐÞ¸ÄÏà¹ØµÄbatÎļþ(ÎÒÕâÀïÓÃÁ½ÖÖ·½Ê½À´Æô¶¯: startup.bat·½Ê½ºÍ·þÎñ·½Ê½)
·½Ê½¢Ù£ºstartup.bat·½Ê½À´Æô¶¯tomcat
Ö»ÒªÐÞ¸Äapache-tomcat-6.0.18 \bin\startup.bat ¼´¿É£¬ÐÞ¸ÄÄÚÈÝÈçÏÂ:
ÔÚset CURRENT_DIR=%cd%
if not "%CATALINA_HOME%" == "" goto gotHome
Ö®¼ä(Èç¹ûûÓиıä¹ýÎļþ,Ó¦¸ÃÊÇÔÚ25ÐкÍ26ÐÐÖ®¼ä) ¼ÓÈëÏÂÃæÄÚÈÝ:
set JAVA_HOME=%CURRENT_DIR%\jdk1.6.0_10
if exist "%JAVA_HOME%" goto gogoTomcat
cd ..
set JAVA_HOME=%cd%\jdk1.6.0_10
cd %CURRENT_DIR%
:gogoTomcat
·½Ê½¢Ú£ºÓ÷þÎñµÄ·½Ê½À´Æô¶¯tomcat
1¡¢ ÐÞ¸ÄÅäÖÃÎļþ,°²×°tomcat·þÎñ
ÕâÀïʾÀýһϰ²×°£¬cd ÔÚ tomcat_home£¬È磺N:/apache-tomcat-6.0.18
1. N:\apache-tomcat-6.0.18>bin\service.bat install mytomcat
2. Installing the service 'mytomcat' ...
3. Using CATALINA_HOME: N:\apache-tomcat-6.0.18
4. Using CATALINA_BASE: N:\apache-tomcat-6.0.18
5. Using JAVA_HOME: N:\apache-tomcat-6.0.18\jdk1.6.
Ïà¹ØÎĵµ£º
/* CSS Document */
body {
font: normal 11px auto "Trebuchet MS", verdana, arial, helvetica, sans-serif;
color: #4f6b72;
background: #e6eae9;
}
a {
color: #c75f3e;
}
table{
padding: 0;
margin: 0;
border-left: 1px solid #c1dad7;
}
caption { ......
±àÒëÇ°ÐèÒª°²×°µÄ¿â£º
g++
libmysqlclient15-dev
libglade2-dev
libglib2.0-dev
libgtkmm-2.4-dev
libpcre3-dev
libxml2-dev
È»ºóÖ´ÐÐ
cd mysql-gui-common
./configure
make
sudo make install
cd ../mysql-administrator
./configure
make
sudo make install
°²×°MySQL Administrator
°²×°Íê³Éºómysql- ......
Java´úÂë
mysql> select version(),current_date;
²éѯmysqlµÄ°æ±¾ºÅ ºÍ ÈÕÆÚ
mysql> select version();
²éѯmysqlµÄ°æ±¾ºÅ
select now();
²éѯµ±Ç°ÈÕÆÚºÍ׼ȷµÄʱ¼ä
Java ......
<!-- [if gte mso 10]>
ÒÔÏÂÄÚÈÝÀ´×ÔÍøÂ磬ÒѲâÊÔ¡£
½áÂÛ£º
mysql
ÐÐËø²»°²È«£¬ËæÊý¾ÝµÄ±ä»¯£¬¿ÉÄÜ»á³öÏÖÐÐËøÎÞЧ£¡Òò´Ë£¬·ÇÈ·¶¨Çé¿öÏ£¬²»Òª¶Ô
mysql
±í¼ÓÐÐËøÀ´¿ØÖÆÒµÎñÂß¼¡£
ÓÉÓÚÒµÎñÂß¼µÄÐèÒª£¬±ØÐë¶ÔÊý¾Ý±íµÄÒ»Ðлò¶àÐмÓÈëÐÐËø£¬¾Ù¸ö×î¼òµ¥µÄÀý×Ó£¬Í¼Êé½èÔÄϵͳ¡£¼ÙÉè
id=1
µÄÕâ±¾Êé¿â´æΪ
1
£ ......
MYSQL×ÔÔöÁÐ
1.¹Ø¼ü×Ö £ºauto_increment
2.×ÔÔöÓ÷¨
Àý:
CREATE TABLE animals ( id mediumint not null auto_increment,
name char(30) not null,
primary key (id));
3.¹ØÓÚ×ÔÔö
Q:Ôõô»ñµÃµ±Ç°µÄ×ÔÔöµÄ×î´óÖµ?
A:select @@identity
Q:Ôõô»ñµÃtableµÄµ±Ç°×ÔÔö×î´óÖµ?
A:select max(id) from table ......