mysqlÔÚlinuxϵÄmy.cnfÎļþÔÚÄÄÀ
ÓÃrpm°ü°²×°µÄMySQLÊDz»»á°²×°/etc/my.cnfÎļþµÄ£¬
ÖÁÓÚΪʲôûÓÐÕâ¸öÎļþ¶øMySQLÈ´Ò²ÄÜÕý³£Æô¶¯ºÍ×÷Óã¬ÔÚµãÓÐÁ½¸ö˵·¨£¬
µÚÒ»ÖÖ˵·¨£¬my.cnfÖ»ÊÇMySQLÆô¶¯Ê±µÄÒ»¸ö²ÎÊýÎļþ£¬¿ÉÒÔûÓÐËü£¬ÕâʱMySQL»áÓÃÄÚÖõÄĬÈϲÎÊýÆô¶¯£¬
µÚ¶þÖÖ˵·¨£¬MySQLÔÚÆô¶¯Ê±×Ô¶¯Ê¹ÓÃ/usr/share/mysqlĿ¼ÏµÄmy-medium.cnfÎļþ£¬ÕâÖÖ˵·¨½öÏÞÓÚrpm°ü°²×°µÄMySQL£¬
½â¾ö·½·¨£¬Ö»ÐèÒª¸´ÖÆÒ»¸ö/usr/share/mysqlĿ¼ÏµÄ.cnfÎļþµ½/etcĿ¼£¬²¢¸ÄÃûΪmy.cnf¼´¿É¡£
Ïà¹ØÎĵµ£º
2009-12-08 18:53
sql½Å±¾ÊÇ°üº¬Ò»µ½¶à¸ösqlÃüÁîµÄsqlÓï¾ä£¬ÎÒÃÇ¿ÉÒÔ½«ÕâЩsql½Å±¾·ÅÔÚÒ»¸öÎı¾ÎļþÖУ¨ÎÒÃdzÆ֮Ϊ“sql½Å±¾Îļþ”£©£¬È»ºóͨ¹ýÏà¹ØµÄÃüÁîÖ´ÐÐÕâ¸ösql½Å±¾Îļþ¡£»ù±¾²½ÖèÈçÏ£º
1¡¢´´½¨°üº¬sqlÃüÁîµÄsql½Å±¾Îļþ
ÎļþÖаüº¬Ò»Ð©ÁеÄsqlÓï¾ä£¬Ã¿ÌõÓï¾ä×îºóÒÔ;½á⣬ÎļþÄÚÈÝʾÀýÈçÏ£º
--´´½ ......
PHPÖеÄMYSQL³£Óú¯Êý×ܽá
1¡¢mysql_connect()-½¨Á¢Êý¾Ý¿âÁ¬½Ó
¸ñʽ£º
resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]])
Àý£º
$conn = @mysql_connect("localhost", "username", "password") or dir( ......
¾³£ÔÚÒ»¸ö±íÖÐÓи¸×Ó¹ØϵµÄÁ½¸ö×ֶΣ¬±ÈÈçempnoÓëmanager£¬ÕâÖֽṹÖÐÐèÒªÓõ½Ê÷µÄ±éÀú¡£ÔÚOracle ÖпÉÒÔʹÓÃconnect by¼òµ¥½â¾öÎÊÌ⣬²Î¼ûhttp://blog.csdn.net/ylqmf/archive/2010/01/11/5172866.aspx£¬µ«MySQL 5.1Öл¹²»Ö§³Ö£¨¾Ý˵ÒÑÄÉÈëto doÖУ©£¬Òª×Ô¼ºÐ´¹ý³Ì»òº¯ÊýÀ´ÊµÏÖ¡£
Ò»¡¢½¨Á¢²âÊÔ±íºÍÊý¾Ý£º
view plaincop ......
±¸·ÝMySQLÊý¾Ý¿âµÄÃüÁî
mysqldump -hhostname -uusername -ppassword databasename > backupfile.sql
±¸·ÝMySQLÊý¾Ý¿âΪ´øɾ³ý±íµÄ¸ñʽ
±¸·ÝMySQLÊý¾Ý¿âΪ´øɾ³ý±íµÄ¸ñʽ£¬Äܹ»Èøñ¸·Ý¸²¸ÇÒÑÓÐÊý¾Ý¿â¶ø²»ÐèÒªÊÖ¶¯É¾³ýÔÓÐÊý¾Ý¿â¡£
mysqldump -–add-drop-table -uusername -ppassword databasename > backu ......
mysql·þÎñÆ÷°²×°ÅäÖãº
1. sudp apt-get install mysql-server-5.0
2. ´´½¨¿âsecond_proxy, ΪsecProxyÌí¼ÓÓû§£ºgrant all privileges on second_proxy.* to secProxy@'%' identified by 'passwd';
3. ÉèÖÃmysql.user±íÈçÏ£º
+-----------+------------------+-------------------------------------------+
| Host& ......