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

¼òµ¥MysqlÃüÁî

MySql »ù±¾²Ù×÷
Ò»¡¢»ù´¡
1£º µÇ½£ºmysql –u  username –p <»Ø³µ¡· È»ºóÊäÈëÃÜÂë
2£º²é¿´Êý¾Ý¿â£ºshow databases£»
3£ºÊ¹ÓÃÊý¾Ý¿âuse databasename;
4:  ³£¿´Êý¾Ý¿â±í show tables£» µ«ÊÇÇ°ÌáÊÇÄãÒѾ­Ê¹ÓÃÁËuse ÃüÁÈç¹ûûÓÐ µÄ»°¿ÉÒÔʹÓà show tables from databasename £»
5£º ²é¿´Êý¾Ý±íµÄÄÚ²¿½á¹¹
Desc  tablename £»Ç°ÌáÊÇ Äã½øÈëÁ˸ÃÊý¾Ý¿â ¡£Èç¹ûûÓÐ ¿ÉÒÔʹÓÃ
Show columns  from databasename.tablename
6£º´´½¨Êý¾Ý¿â create database databasename £»
7£º´´½¨Êý¾Ý±í £ºcreate table tablename £¨
×Ö¶Î1 Êý¾ÝÀàÐÍ£¬
×Ö¶Î2 Êý¾ÝÀàÐÍ
.
.
.
£©
8£º²åÈëÊý¾Ý±íÊý¾Ý ºÍÕý³£Ê¹ÓÃSQLÊý¾Ý¿âÊÇÒ»ÑùµÄ£¬insert databasename¡£tableName£¨×Ö¶ÎÃû£¬×Ö¶ÎÃû£¬¡£¡£¡££©  values£¨‘’£¬‘’£¬¡£¡£¡£¡££©
9£ºµÃµ½Êý¾Ý £ºselect * from tableName
10£ºÉ¾³ýÊý¾Ý£ºdelete from Óï¾ä ¡£
11£º¸üРupodate
¶þ¡¢¸ß¼¶
12£º´´½¨Óû§ºÍÊÚȨ£º£¨Í¨³£Root Óû§Ö»ÊÇ ¹ÜÀíµÄʱºò²ÉÓõõ½£¬Æ½Ê±ÓÃÆÕͨÕË»§£©
1£©  ʹÓÃgrantÃüÁÕâ¸öÃüÁî·ÖÅɵÄʱºò ûÓÐÕâ¸öÓû§»á×Ô¶¯´´½¨Ò»¸öÓû§¡££©
2£©  Eg: ´´½¨Ò»¸öÓû§ÊÇËû¿ÉÒÔʹÓÃËùÓÐÊý¾Ý¿âºÍ±í£¬
Grant  all on *.* to zhang indentified by ‘admin’
ÕâÑùÒ»¸öÓû§ÃûÊÇzhang µÄÓû§ ÃÜÂëÊÇ admin µÄÓû§¾Í´´½¨ÁË £¬ËûÓµÓеÄȨÏÞÊÇ ¡£¡£¡£
Eg£º´´½¨Ò»¸öÓû§Ê¹ËûÖ»¿ÉÒÔ ÓµÓÐ mydatabase µÄÊý¾Ý¿â
Grant  all on  mydatabase.*  to jim  indentified by  ’jim’
ÕâÑù×ÓÒ»¸öÃû³ÆÊÇ jimµÄÓû§ ¾Í´´½¨ÁË
3£©  ´´½¨ÁËÓû§¾Í¿ÉÒÔÓÃselect user from mysql.user ²é¿´µ±Ç°µÄÓû§ÁË¡£
 
13£ºÈ¨Ï޵ĻØÊÕ Ê¹Óà revoke Óï¾ä
 
Ïà¹ØÍøÕ¾ £¨£©£ºhttp://www.alixixi.com/program/a/2008020831360.shtml
 


Ïà¹ØÎĵµ£º

CentOSÏÂÎÞ·¨Õý³£»ñÈ¡MySQLÊý¾Ý¿â±íÊý¾ÝµÄÎÊÌâ

 
֮ǰ£¬ÓÉÓÚ¿Í»§ÒªÇóÔÚcentOSÏ°²×°ÏµÍ³Ó¦Óã¬Òò´ËÓлú»á½Ó´¥ÁËÒ»ÏÂCentOS£¬Ë³±ãÒ²Á˽âÁËÏÂCentOSµÄ³£¹æ²Ù×÷£¬»¹ÓÐÔÚCentOSϵÄMySQLÏà¹Ø²Ù×÷¡£
Ä¿Ç°¼¼Êõ¿ò¼ÜʹÓÃJSF£¨richfaces¡¢facelets£©+Spring+JPA£¨OpenJPA£©£¬²»Ê¹ÓÃÊý¾Ý¿âÒÀÀµµÄ´¥·¢Æ÷»ò´æ´¢¹ý³Ì£¬ËùÓÐÒµÎñÂß¼­ÔÚweb·þÎñÆ÷ÉÏÖ´ÐУ¬Òò´ËÊý¾Ý¿â»ù±¾²»Óÿ¼ÂÇÒÆ ......

¡¾×ª¡¿ÔÚWindowsÉÏÅäÖò¢ÕûºÏPHPºÍMySQL¾­µä½Ì³Ì

ÔÚΪÓû§Ìṩ¶¯Ì¬ÄÚÈÝ·½Ã棬PHPºÍMySQLÊÇÒ»¸öÇ¿´óµÄ×éºÏ¡£ÕâЩÄêÀ´£¬ÕâÁ½Ïî²úÆ·ÒѾ­¿çÔ½ÁËËüÃÇ×î³õµÄÓ¦ÓÃÎę̀£¬ÏÖÔÚ£¬Ò»Ð©ÊÀ½çÉÏ×æµÄÍøÕ¾Ò²ÔÚÓ¦ÓÃËüÃÇ¡£ËäÈ»ËüÃǵ±³õ¶¼ÊÇ¿ªÔ´Èí¼þ£¬Ö»ÄÜÔÚUNIX/LinuxÉÏÔËÐУ¬µ«¾­¹ýÏ൱һ¶ÎʱÆڵķ¢Õ¹£¬ËüÃÇÒÑÄÜÔÚWindowsƽ̨ÉÏÔËÐС£
ÔÚ±¾ÎÄÖУ¬ÎÒ½«Öð²½ÎªÄãÃÇ˵Ã÷ÈçºÎÔÚWindows»·¾³ÖÐ ......

ubuntu8.04.2ÏÂApache+Resin+Mysql°²×°+ÐéÄâÖ÷»úÅäÖÃ

 Ò» Apache°²×°
# tar zxvf httpd-2.2.14.tar.gz(½âѹ)
# cd httpd-2.2.14(½øÈë½âѹºóµÄĿ¼)
# ./configure --prefix=/usr/local/apache2 --enable-so --enable-mods-shared=all
  (ÃüÁî#./configure --help¿ÉÒԲ鿴configureµÄÅäÖòÎÊý
  --prefix=°²×°Â·¾¶
  --enable-so //´ò¿ª DSO Ö§³ÖµÄ a ......

ÈçºÎ±¸·ÝMysqlÊý¾Ý¿â

 
mysqldump -u[user] -p[password] [databasename] > [dump_name]
ÔÚ½« dump_name Õâ¸öµµ°¸¸´ÖƵ½Áíһ̨¼ÆËã»úÉÏ
Áíһ̨¼ÆËã»úÉÏÏȽøÈëmysql
½¨Á¢Ò»¸ö database ÔÙÖ´ÐÐÏÂÁÐÖ¸Áî
mysql -u[user] -p[password] [database_name] < [dump_name]


MYSQL¼¸ÖÖ±¸·Ý·½·¨¸ÅÊö
MysqlÊý¾Ý
¿â±¸·ÝÖ÷ÒªÓÐ4Ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ