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

MYSQLÖÐÒÑ´æÔÚÓû§±ä¸üȨÏÞ

ÎÒÔÚ°²×°ÂÛ̳µÄʱºò£¬Ð½¨ÁËÒ»¸öMYSQLÓû§£¬È¨ÏÞÊÇALL£¨grant all ¡­¡­£©£¬ÏÖÔÚÂÛ̳°²×°ºÃÁË£¬ÎÒÏëÈÃÕâ¸öÓû§Ö»ÄܲÙ×÷Ìض¨Êý¾Ý¿â£¨·ÃÎʺÍÐ޸ģ¬°üÀ¨´´½¨É¾³ý±í£¬×îºÃ²»ÄÜɾ³ýÊý¾Ý¿â£¬µ«×ö²»µ½¾ÍËãÁË£©£¬ÀýÈçtestÊý¾Ý¿â£¬ÆäËûÊý¾Ý¿âÒ»¸Å²»ÄÜÐ޸ģ¬×îºÃÒ²²»ÄÜ·ÃÎÊ£¬ÇëÎʸÄÔõô×ö£¿

ÎÒµÄmysql×°ÔÚserver°æµÄlinuxÉÏ£¬Ò»°ã¾ÍÓÃmysql -u root -p À´Ö´ÐйÜÀí£¬Ã»ÓÐʹÓÃͼÐλ¯¹¤¾ß£¨serverûÓÐͼÐνçÃ棩
ºÇºÇºÇ£¬µØ·½´íÁË£¬

¿ÉÒÔÏÈrevoke all privileges on *.* from ....

È»ºóÔÙÖØÐÂgrant all privileges on schema1.* to ....

¸øÄãתµ½mysql

revoke all on *.* from 'Óû§Ãû'@'µÇ½»úÆ÷ip';

grant select,insert,update,delete table on test.* to 'Óû§Ãû'@'µÇ½µÄ»úÆ÷ip'

Â¥ÉϽ²µÃÒѾ­ºÜÇå³þÁË¡£

ÏÈÊÕ¼ÓȨÏÞ revoke ... (Äã¿ÉÒÔÓà show grant username À´¿´ÊÚÁËÄÄЩȨÏÞ£¬È»ºórevoke)
revoke ALL on *.* from username;

È»ºóÔÙ grant ALL on databasename.* to username



Äã¿ÉÒԲο¼ mysqlÊý¾Ý¿âµÄdb±í
SQL code:
mysql> desc db;
+-----------------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------------+---------------+------+-----+---------+-------+
| Host | char(60) | NO | PRI | | |
| Db


Ïà¹ØÎÊ´ð£º

php MYSQLÂÒÂëÎÊÌâ

ÎÒÔÚEclipseÀïÓÃPHPÁ¬½ÓMYSQL

ÓиöÆæ¹ÖµÄÎÊÌâ

´ÓPHPÒ³Ãæ²åÈëÊý¾Ýºó£¬ÔÙÈ¡³öÊý¾ÝÊÇÕýÈ·µÄ£¬Ò³ÃæûÓÐÂÒÂë

µ«ÊÇ´ò¿ªphpmyAdminÈ¥¿´µÄʱºò£¬mysqlÀï¼ÈÈ»ÊÇÂÒÂë

ÓùýSQL Manager for MySQLÈ¥ ......

PHPÁ¬½ÓMYSQLÐèÒªÁ¬½ÓÆ÷Âð

ÎÒ°²×°µÄÊÇappserv-win32-2.4.4a.exe×éºÏ°ü£¬ÎÒÔÚmysqlÖд´½¨ÁËÒ»¸ödb_bookÊý¾Ý¿â,²¢ÔÚdb_bookÊý¾Ý¿âÖд´½¨ÁËÒ»¸ötb_book±í£¬ÎÒÏëдһ¸öphp³ÌÐòÏòtb_book±íÖвåÈëÊý¾Ý£¬¿ÉÊdzöÏÖ¡°Ñ¡ÔñÊý¾Ý¿âʧ°Ü£¡¡±µÄÌáʾ£¬²»ÖªÊÇÊ ......

jsp±¸·ÝmysqlÖ»ÓпÕÎļþ

ÓÃjsp×ö¶«Î÷¸øÍêÈ«²»¶®mysqlµÄÈËÓ㬿ÉÊDZ¸·ÝʱֻÓпÕÎļþ£¬ÕâÊÇʲôÇé¿ö£¬
×îºÃÓÐÔ´´úÂ룬лл
Æäʵ±¸·ÝµÄ¹ý³ÌÎÒÏë´ó¸ÅÊÇÕâÑùµÄ£º
½«±íAÖеÄÊý¾Ý·Åµ½ArrayListÖУ¬È»ºó½«Õâ¸öArrayListÖеÄÊý¾ÝÔÙ´æµ½±íBÖС£ ......

100·ÖÇóÖú£¬¹ØÓÚJSPÏÂÌá½»ÖÐÎÄ×Ö·ûÈ¥MYSQLÂÒÂëÎÊÌâ¡£

jspÌá½»Ò³±àÂëÊÇUTF-8£¬MYSQL¿âÒ²ÊÇUTF-8,ΪʲôÌá½»ÁËÖÐÎÄ×Ö·ûÔÚÊý¾Ý¿âÀï±ä³ÉÂÒÂëÁËÄØ£¿

ÕâÖÖÎÊÌâÔõô½â¾ö£¿Ð»Ð»

ÁíÍ⣬JSPµ¯³ö¶Ô»°¿ò£¨±ÈÈ絯³ö¡°XXXÉóºËͨ¹ý¡±ÏÂÃæ¸úÈ·¶¨°´Å¥£©ºÍ·µ»ØÉÏÒ»Ò³ÒÔ¼°×ªµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ