Êý¾Ý¿â»ù´¡£ºMySQL Ìí¼ÓÓû§µÄÁ½ÖÖ·½·¨
ÓÐ2¸ö²»Í¬µÄ·½·¨Ôö¼ÓÓû§£ºÍ¨¹ýʹÓÃGRANTÓï¾ä»òͨ¹ýÖ±½Ó²Ù×÷MySQLÊÚȨ±í¡£±È½ÏºÃµÄ·½·¨ÊÇʹÓÃGRANTÓï¾ä£¬ÒòΪËûÃÇÊǸü¼òÃ÷²¢ÇÒºÃÏñ´íÎóÉÙЩ¡£
ÏÂÃæµÄÀý×ÓÏÔʾ³öÈçºÎʹÓÃMySQL¿Í»§°²×°ÐÂÓû§¡£ÕâЩÀý×Ó¼Ù¶¨È¨ÏÞÒÑȱʡ±»°²×°¡£ÕâÒâζ
×ÅΪÁ˸ı䣬Äã±ØÐëÔÚMySQLÕýÔÚÔËÐÐͬһ̨»úÆ÷ÉÏ£¬Äã±ØÐë×÷ΪMySQL
rootÓû§Á¬½Ó£¬²¢ÇÒrootÓû§±ØÐë¶ÔMySQLÊý¾Ý¿âÓÐinsertȨÏÞºÍreload¹ÜÀíȨÏÞ¡£ÁíÍ⣬Èç¹ûÄã¸Ä±äÁËrootÓû§¿ÚÁÄã±ØÐëÈçÏÂ
µÄMySQLÃüÁîÖ¸¶¨Ëü¡£
Äã¿ÉÒÔͨ¹ý·¢³öGRANTÓï¾äÔö¼ÓÐÂÓû§£º
shell> mysql --user=root mysql
mysql> GRANT ALL PRIVILEGES ON *.* TO monty@localhost
IDENTIFIED BY 'something' WITH GRANT OPTION;
mysql> GRANT ALL PRIVILEGES ON *.* TO monty@"%"
IDENTIFIED BY 'something' WITH GRANT OPTION;
mysql> GRANT RELOAD,PROCESS ON *.* TO admin@localhost;
mysql> GRANT USAGE ON *.* TO dummy@localhost;
ÕâЩGRANTÓï¾ä°²×°3¸öÐÂÓû§£º
monty£º¿ÉÒÔ´ÓÈκεط½Á¬½Ó·þÎñÆ÷µÄÒ»¸öÍêÈ«µÄ³¬¼¶Óû§£¬µ«ÊDZØÐëʹÓÃÒ»¸ö¿ÚÁî
('something'×öÕâ¸ö¡£×¢Ò⣬ÎÒÃDZØÐë¶Ômonty@localhostºÍmonty@"%"·¢³öGRANTÓï¾ä¡£Èç¹ûÎÒÃÇÔö¼Ó
localhostÌõÄ¿£¬¶ÔlocalhostµÄÄäÃûÓû§ÌõÄ¿ÔÚÎÒÃÇ´Ó±¾µØÖ÷»úÁ¬½Ó½ÓʱÓÉmysql_install_db´´½¨µÄÌõÄ¿½«ÓÅÏÈ¿¼ÂÇ£¬ÒòΪËü
ÓиüÌض¨µÄHost×Ö¶ÎÖµ£¬ËùÒÔÒÔuser±íÅÅÁÐ˳Ðò¿´¸üÔçµ½À´¡£
admin£º¿ÉÒÔ´ÓlocalhostûÓÐÒ»¸ö¿ÚÁî½øÐÐÁ¬½Ó²¢ÇÒ±»ÊÚÓèreloadºÍ
process¹ÜÀíȨÏÞµÄÓû§¡£ÕâÔÊÐíÓû§Ö´ÐÐmysqladmin reload¡¢mysqladmin refreshºÍmysqladmin
flush-*ÃüÁ»¹ÓÐmysqladmin processlist¡£Ã»ÓÐÊÚÓèÊý¾Ý¿âÓйصÄȨÏÞ¡£ËûÃÇÄÜÔÚÒÔºóͨ¹ý·¢³öÁíÒ»¸öGRANTÓï¾äÊÚȨ¡£
dummy£º¿ÉÒÔ²»ÓÃÒ»¸ö¿ÚÁîÁ¬½ÓµÄÒ»¸öÓû§£¬µ«ÊÇÖ»ÄÜ´Ó±¾µØÖ÷»ú¡£È«¾ÖȨÏÞ±»ÉèÖÃΪ'N'--USAGEȨÏÞÀàÐÍÔÊÐíÄãÎÞÐèȨÏ޾ͿÉÉèÖÃÒ»¸öÓû§¡£Ëü¼Ù¶¨Ä㽫ÔÚÒÔºóÊÚÓèÊý¾Ý¿âÏà¹ØµÄȨÏÞ¡£
ÄãÒ²¿ÉÒÔÖ±½Óͨ¹ý·¢³öINSERTÓï¾äÔö¼ÓͬÑùµÄÓû§´æÈ¡ÐÅÏ¢£¬È»ºó¸æËß·þÎñÆ÷ÔÙ´Î×°ÈëÊÚȨ±í£º
shell> mysql --user=root mysql
mysql> INSERT INTO user VALUES('localhost','monty',PASSWORD('something'),
'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y')
mysql>
Ïà¹ØÎĵµ£º
1¡¢mysql_connect()-½¨Á¢Êý¾Ý¿âÁ¬½Ó {3RY4HVT?
¸ñʽ£º Fv n:V\eb
resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]]) _I;+p eq
Àý£º 1(V>8}zn
$conn = @mysql_connect("localhost", "username", "password") or dir(" ......
ÏÂÃæµÄÊÇMySQL°²×°µÄͼ½â:¡¡¡¡
Ë«»÷ÔËÐГsetup.exe”£¬³öÏÖÈçϽçÃ棺
mysql°²×°Ïòµ¼Æô¶¯£¬°´“Next”¼ÌÐø
Ñ¡Ôñ°²×°ÀàÐÍ£¬ÓГTypical£¨Ä¬ÈÏ£©”¡¢“Complete£¨ÍêÈ«£©”¡¢“Custom£¨Óû§×Ô¶¨Ò壩”Èý¸öÑ¡ÏÎÒÃÇÑ¡Ôñ“Custom”£¬Óиü¶àµÄÑ¡ÏҲ· ......
µÚÒ»¡¢mysql·þÎñµÄÆô¶¯ºÍÍ£Ö¹
net stop mysql
net start mysql
µÚ¶þ¡¢µÇ½mysql
Óï·¨ÈçÏ£º mysql -uÓû§Ãû -pÓû§ÃÜÂë
¼üÈëÃüÁîmysql -uroot -p£¬ »Ø³µºóÌáʾÄãÊäÈëÃÜÂ룬ÊäÈë12345£¬È»ºó»Ø³µ¼´¿É½øÈëµ½mysqlÖÐÁË£¬mysqlµÄÌáʾ·ûÊÇ£º
mysql>
×¢Ò⣬Èç¹ûÊÇÁ¬½Óµ½ÁíÍâµÄ»úÆ÷ÉÏ£¬ÔòÐèÒª¼ÓÈëÒ»¸ö²ÎÊý-h»úÆ÷IP
µÚÈý¡ ......
TomCat6.0Êý¾Ý¿âÁ¬½Ó³ØÅäÖÃʵÀý(mysqlÊý¾Ý¿â)
TomCat6.0Êý¾Ý¿âÁ¬½Ó³ØÅäÖÃÓм¸ÖÖ·½Ê½£¬ÔÚÕâÀïÎÒÖ»½éÉÜÆäÖеÄÒ»ÖÖ¹©´ó¼Ò²Î¿¼£º
ÏÂÃæÎÒ°ÑÅäÖùý³Ì·Ö³ÉÈý¸ö²½ÖèÀ´Íê³É£º
µÚÒ»²½£ºÔÚÄã°²×°TomCatµÄĿ¼ÏÂÕÒµ½context.xmlÅäÖÃÎļþ¡££¨ÀýÈ磺D:\Tomcat 6.0\conf\context.xml£©È»ºó´ò¿ªcontext.xml£¬ÔÚ±êÇ©<context>< ......
http://linux.chinaitlab.com/MYSQL/524755_2.html
http://bbs.chinaunix.net/archiver/?tid-809159.html
ÔÚApache, PHP,
MySQLµÄÌåϵ¼Ü¹¹ÖУ¬MySQL¶ÔÓÚÐÔÄܵÄÓ°Ïì×î´ó£¬Ò²ÊǹؼüµÄºËÐIJ¿·Ö¡£¶ÔÓÚDiscuz!ÂÛ̳³ÌÐòÒ²ÊÇÈç´Ë£¬MySQLµÄÉèÖÃÊÇ·ñºÏÀíÓÅ»¯£¬Ö±½Ó
Ó°Ïìµ½ÂÛ̳µÄËٶȺͳÐÔØÁ¿£¡Í¬Ê±£¬MySQLÒ²ÊÇÓÅ»¯ÄѶÈ×î´ó ......