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

½âѹ°æ/Ãâ°²×°°æMySQLÅäÖÃÈ«½â

Ò» ÏÂÔØMySQL
http://dev.mysql.com/downloads/mysql/5.0.html
½âѹMySQL£¨F:\Program Files\MySQL\£©MySQL°²×°Ä¿Â¼
¶þ н¨my.ini
ÔÚF:\Program Files\MySQL\Ͻ¨Á¢my.iniÎļþ£¬ÄÚÈÝΪ
my.ini
[mysqld]
# ÉèÖÃmysqlµÄ°²×°Ä¿Â¼
basedir=F:\\Program Files\\MySQL
# ÉèÖÃmysqlÊý¾Ý¿âµÄÊý¾ÝµÄ´æ·ÅĿ¼£¬±ØÐëÊÇdata£¬»òÕßÊÇ\\xxx-data
datadir=F:\\Program Files\\MySQL\\data
# ÉèÖÃmysql·þÎñÆ÷µÄ×Ö·û¼¯ £¬Ä¬ÈϱàÂë
default-character-set=latin1
[client]
# ÉèÖÃmysql¿Í»§¶ËµÄ×Ö·û¼¯
default-character-set=latin1
[WinMySQLAdmin]
# Ö¸¶¨mysql·þÎñÆô¶¯Æô¶¯µÄÎļþ
Server=F:\\Program Files\\MySQL\\bin\\mysqld.exe
Èý ×¢²áMySQL·þÎñ£¬Ê¹MySQL¿ÉÒÔÔÚ·þÎñÏîÄ¿ÖÐÆô¶¯»ò¹Ø±Õ
 1£©½øÈ밲װĿ¼\bin£¬Ö´ÐУº
    F:\Program Files\MySQL\bin>mysqld -install
    ÏÔʾ£ºService successfully installed. Ôò×¢²á·þÎñ³É¹¦¡£
Èç¹ûҪɾ³ý·þÎñ£º
F:\Program Files\MySQL\bin>mysqld -remove
 2£©ÐÞ¸Ä×¢²á±í£º
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MySQL\ImagePath
ÐÞ¸ÄΪ£º
"F:\Program Files\MySQL\bin\mysqld" --defaults-file=
"F:\Program Files\MySQL\my.ini" MySQL
ÕâÑùÅäÖþͿÉÒÔʹÓÃnet start mysqlÃüÁîÕý³£Æô¶¯MySQL¡£
ËÄ ÐÞ¸ÄrootÃÜÂë
MySQLÅäÖúúó£¬Æô¶¯³É¹¦£¬Ä¬ÈÏÃÜÂëÊÇ¿Õ£¬µ«ÊÇΪÁË°²È«£¬ÉèÖÃÃÜÂ루һ°ãÓû§ÃûΪroot£¬ÃÜÂëΪroot£©¡£
1£©µÇ¼MySQL rootÓû§£º
   ½øÈëMySQL°²×°Ä¿Â¼\bin£¬Ö´ÐУº
   F:\Program Files\MySQL\MySQL-6.0.7\bin>mysql -u root;
2£© ÐÞ¸ÄrootÃÜÂ룺
       mysql> update mysql.user set password=PASSWORD('new password') where User='root'; 
       mysql> flush privileges;
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/oswin_jiang/archive/2009/08/11/4433481.aspx


Ïà¹ØÎĵµ£º

PHP session ´íÎó¼°mysql close ´íÎó´¦Àí

ÔÚа²×°ºÃµÄmysql £¬apahce£¬php µÄʱºò£¬Èç¹ûÔÚ´úÂëÖÐʹÓÃÁËsessions_start() µÄʱºò»á³öÏÖÀàËÆÒÔϵĴíÎó£º
Warning: session_start() [function.session-start]: Cannot send session cooki µÈµÄ´íÎó¡£
Çë°²×°ÈçϵÄ˼·ȥÐÞÕý£º
1.ÔÚphp.ini ÖÐÅäÖÃ session.savepath='/tmp'
2.¿ªÆôsession.auto_start=1
3.°Ñ¸ü¸Ä ......

JAVA JDBC(MySQL)Çý¶¯Ô´Âë·ÖÎö(ËÄ)

connect·½·¨ÊÇjava.sql.Driver½Ó¿ÚÖж¨ÒåµÄ·½·¨£¬Èç¹ûÁ¬½ÓµÄÊý¾Ý¿â²»Í¬£¬ÄÇôΪ²»Í¬µÄÊý¾Ý¿â±àдJDBCÇý¶¯½«±äµÃºÜÁé»î£¬ÊµÏÖDriver½Ó¿Ú¼´¿É¡£Á¬½ÓÊý¾Ý¿âʱÊ×ÏȵÃ×°ÔØJDBCÇý¶¯£¬Ò²¾ÍÊǵ÷Óà Class.forName(“com.mysql.jdbc.Driver”)·½·¨£¬ÔÚµÚһƪÖÐÒѾ­Áгömysql jdbc DriverÀàµÄÔ´Â룬´ËÀà¼Ì³ÐNonRegisteringD ......

mysql 5.0 ¼¯Èº¸ºÔؾùºâ—¾­¹ý²âÊÔ


תÔØÇë×¢Ã÷×÷Õߺͳö´¦
http://www.cnlinux.net
Ò»¡¢½éÉÜ
========
²âÊÔ»·¾³£º
Server1:ndbd 192.168.0.11
Server2:ndbd 192.168.0.12
Server3:mysqld --ndb-cluster 192.168.0.13 (ndbd_mgm ndbd_mgmdÒ²ÔÚ±¾»ú)
²Ù×÷ϵͳ¾ùΪ
RH ES3
kernel-2.4.21-9.EL
glibc-2.3.2-95.6
ËùÐèÈí¼þ°ü£º
mysql-max-5.0.22-lin ......

MySQL¿Í»§¶ËÃüÁîÐÐÓ¦Óü¼ÇÉ

1.ʵÏÖTAB¼ü²¹È«
SHELL>vi /etc/my.cnf
[mysql]
#no-auto-rehash
auto-rehash
SHELL>reboot mysqld
note: 1.ÒªÏÈuseµ½Ä³¸öÊý¾Ý¿âÏ£»2.Òª²¹È«µÄ¹Ø¼ü×ÖÐèÒª´óд¡£
2.promptÈòÙ×÷¸ü¼ÓÇå³þ
mysql>prompt \u@\h(\d) \r:\m:\s    (ÁÙʱ)
[mysql]   £¨³¤¾Ã£©
prompt=\\u@\\h
3.pagerÈÃä ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ