linux yum°²×°mysqlºóҪעÒâµÄһЩ³õʼ»¯ÎÊÌâ
zz linux yum°²×°mysqlºóҪעÒâµÄһЩ³õʼ»¯ÎÊÌâ
ÎҵķþÎñÆ÷×°µÄÊÇcentos 5.3,ÓÉÓÚ×ʼ°²×°×öÁËÏêϸµÄ¼Ç¼,ËùÒÔÕû¸ö¹ý³ÌÒ²ÊÇÇá³µÊì·,һ·yumÏÂÀ´£¬¾Í¸ã¶¨ÁË£¬È»ºó¾ÍÊÇÊý¾Ý¿â¡¢ÍøÕ¾µÄ°á¼Ò£¬ÇáËɸ㶨~
¿ÉÊǽñÌìÔÚ¼Ò¿´ÁËϹ«Ë¾µÄÍøÕ¾£¬ÎÊÌâ³öÀ´ÁË~ ÓÐЩ²úÆ·µã»÷²é¿´ÏêϸÐÅÏ¢µÄʱºò£¬ÕÒ²»µ½ÍøÒ³~¾¹ýÒ»·¬Ë¼¿¼£¬·¢ÏÖÊÇmysqlĬÈÏ×Ö·û¼¯µÄÎÊÌ⣬°ÑÔÀ´·þÎñÆ÷ÉϵÄmy.cnfÒ»¿´£¬»¹¹ûÕæÊÇ~~ÔÎÁË~~~
ÏÂÃæд³ömysql×°ÍêºóÐèҪעÒâµÄһЩ³õʼ»¯ÉèÖÃ~
1. ÅäÖÿª»úÆô¶¯·þÎñ
/sbin/chkconfig httpd on [ÉèÖÃapache·þÎñÆ÷httpd·þÎñ¿ª»úÆô¶¯]
/sbin/chkconfig –add mysqld [ÔÚ·þÎñÇåµ¥ÖÐÌí¼Ómysql·þÎñ]
/sbin/chkconfig mysqld on [ÉèÖÃmysql·þÎñ¿ª»úÆô¶¯]
/sbin/service httpd start [Æô¶¯httpd·þÎñ,Ó뿪»úÆô¶¯ÎÞ¹Ø]
/sbin/service mysqld start [Æô¶¯mysql·þÎñ,Ó뿪»úÎÞ¹Ø]
2. ÉèÖÃmysqlÊý¾Ý¿ârootÕʺÅÃÜÂ롣ĬÈϵijõʼ»¯ÃÜÂëΪ¿Õ~~~
mysqladmin -u root password ‘new-password’ [ÒýºÅÄÚÌîÃÜÂë]
3. ÈÃmysqlÊý¾Ý¿â¸ü°²È«
mysql -u root -p
mysql> DROP DATABASE test; [ɾ³ýtestÊý¾Ý¿â]
mysql> DELETE from mysql.user WHERE user = ”; [ɾ³ýÄäÃûÕÊ»§]
mysql> FLUSH PRIVILEGES; [ÖØÔØȨÏÞ]
4.°²×°ÉÏmysqlÀ©Õ¹
yum -y install mysql-connector-odbc mysql-devel libdbi-dbd-mysql
5.ÉèÖÃĬÈϱàÂëµÈһЩ³õʼ²ÎÊý£¨my.cnf£©
vi /etc/my.cnf
[mysqld]
da
Ïà¹ØÎĵµ£º
´óÖÂ×ܽáÁËÒ»ÏÂlinuxϸ÷ÖÖ¸ñʽµÄѹËõ°üµÄѹËõ¡¢½âѹ·½·¨¡£µ«ÊDz¿·Ö·½·¨ÎÒûÓÐÓõ½£¬Ò²¾Í²»È«£¬Ï£Íû´ó¼Ò°ïÎÒ²¹³ä£¬ÎÒÃǽ«ËæʱÐÞ¸ÄÍêÉÆ£¬Ð»Ð»£¡
¡¡¡¡.tar
¡¡¡¡½â°ü£º tar xvf FileName.tar
¡¡¡¡´ò°ü£ºtar cvf FileName.tar DirName
¡¡¡¡£¨×¢£ºtarÊÇ´ò°ü£¬²»ÊÇѹËõ£¡£©
¡¡¡¡---------------------------- ......
¼¤¶¯°¡£¬½ñÌìÏÂÎç·ÅѧÀíÍê·¢»ØÀ´ÎÒ°Ö¸æËßÎÒ˵¼ÄÀ´Ñù¶«Î÷£¬»¹ÊÇ´Ó¹úÍâ¼ÄÀ´µÄ£¡ÕâÊÇÎÒµÚÒ»´Î´Ó¹úÍâ±ðÈ˸øÎҼĶ«Î÷¡£·Ï»°²»¶à˵£¬ÉÏͼ²ÅÊÇÍõµÀ¡£ÓÉÓÚÅÄÉãÌõ¼þ¹ýÓÚ¼òª£¨ÁªÏëI398ÊÖ»ú+ÊÖµçͲ£©£¬Óе㱾ßÁË¡£
°ü¹üÕýÃæµÄÍâ°ü×°
°ü¹ü±³Ã棨Ϊ·ÀÖ¹¸öÈËÐÅϢй¶ÄÃÅçÆáºÍгÁËһϣ©
°ü¹ü×îÉÏÃ棬ÓÉÓÚÓ¢ÓïˮƽÓÐÏÞÿ̫¿´¶®ÊÇÊ²Ã´Ò ......
ΪÁË·½±ã±àд³ÌÐò£¬ÕûÀíÁËviÉèÖõÄС·½·¨£¡
ÓÉÃüÁî“vi --version”ËùÏÔʾµÄÄÚÈÝÖªviµÄÈ«¾ÖÅäÖÃÎļþÔÚ/usr/share/vim/vim61/macros/vimrc£»
Óû§ÅäÖÃÎļþÔÚ$HOME/.vimrc
ËÑË÷ÍøÉÏÎÄÕ²¢ÊµÑéµÃÖª£º
ÉèÖÃTAB¼üµÄÏÔʾ¿í¶È£ºset tabstop=4 & ......
unixODBC°²×°
Õ⼸ÌìÕæÊÇÓôÃÆËÀÁË£¬»ù±¾Ã¿Ì춼ÔÚ±àÒë°²×°QTºÍunixODBC£¬ÎÞÄÎ×Ü»á³öÏÖЩĪÃûÆäÃîµÄ´íÎó¡£Ê×ÏÈ£¬ÎÒ³ÐÈÏÎÒLinuxÍæµØ²»Ê죬µ«ÕâЩ¿ªÔ´Èí¼þ²úÉÌÖ®¼äµÄ¼æÈÝÐÔҲ̫²îÁË°É¡£ËùÒÔ»¹ÊÇÖƶ¨¸ö±ê×¼±È½ÏºÃ£¬´ó¼Ò¶¼×ñÊØÒ»¸öÔ¼¶¨¡£´ÓÕâ¸öÒâÒåÀ´Ëµ£¬Î¢ÈíµÄ¢¶Ï£¬»¹ÊÇÓÐÒ»¶¨µÄºÃ´¦µÄ¡£
......
Èç¹ûÍü¼ÇmysqlµÄÃÜÂë,¿ÉÒÔÓÃÒÔϵķ½Ê½½øÐÐÐÞ¸Ä:
ÎÒÓõÄmysqlÊÇ5.1µÄserver
ÔÚwindowsÏ£º
´ò¿ªÃüÁîÐд°¿Ú£¬Í£Ö¹mysql·þÎñ£ºNet stop mysql
µ½mysqlµÄ°²×°Â·¾¶Æô¶¯mysql£¬ÔÚbinĿ¼ÏÂʹÓÃmysqld.exeÆô¶¯£¬ÔÚÃüÁîÐд°¿ÚÖ´ÐУºmysqld --skip-grant-tables
È»ºóÁíÍâ´ò¿ªÒ»¸öÃüÈëÁîÐд°¿Ú£¬Ö´ÐÐmysql£¬´ËʱÎÞÐèÊäÈëÃÜÂë ......