ÔÚLinuxÏ°²×°ºÍʹÓÃMySQL
ÔÚLinuxÏ°²×°ºÍʹÓÃMySQL
Ò»¡¢ÒýÑÔ
ÏëʹÓÃLinuxÒѾºÜ³¤Ê±¼äÁË£¬ÓÉÓÚûÓÐÓ²ÐÔÈÎÎñһֱҲûÓÐϵͳѧϰ£¬½üÈÕÓÉÓÚ¹¤×÷ÐèÒª±ØÐëʹÓÃLinuxϵÄMySQL¡£±¾ÒÔΪÓÐWindowsÏÂʹÓÃSQL ServerµÄ¾Ñ飬¾õµÃÔÚLinuxÏ°²×°MySqlÓ¦¸ÃÊÇÒ×Èç·´ÕƵÄÊ£¬¿ÉÔÚÕæÕý°²×°ºÍʹÓÃMySQLʱ×ßÁ˺ܶàÍä·£¬Óö¼ûºÜ¶àÎÊÌ⣬±Ï¾¹LinuxºÍWindows±¾Éí¾ÍÓкܴóÇø±ð¡£ÎªÁËÈúÍÎÒÒ»ÑùµÄ³õѧÕßÔÚѧϰµÄ¹ý³ÌÖÐÉÙ×ßÍä·£¬¾¡¿ìÈëÃÅ£¬Ð´ÁË´ËÎÄ£¬Ï£Íû¶ÔÄúÓÐËù°ïÖú¡£±¾ÎĵÄLinux»·¾³ÊÇRed Hat 9.0£¬MySQLÊÇ4.0.16¡£
¶þ¡¢°²×°Mysql
1¡¢ÏÂÔØMySQLµÄ°²×°Îļþ
°²×°MySQLÐèÒªÏÂÃæÁ½¸öÎļþ£º
MySQL-server-4.0.16-0.i386.rpm¡¡
MySQL-client-4.0.16-0.i386.rpm
ÏÂÔصØַΪ£ºhttp://www.mysql.com/downloads/mysql-4.0.html£¬ ´ò¿ª´ËÍøÒ³£¬ÏÂÀÍøÒ³ÕÒµ½“Linux x86 RPM downloads”ÏÕÒµ½“Server”ºÍ“Client programs”ÏÏÂÔØÐèÒªµÄÉÏÊöÁ½¸örpmÎļþ¡£
2¡¢°²×°MySQL
rpmÎļþÊÇRed Hat¹«Ë¾¿ª·¢µÄÈí¼þ°²×°°ü£¬rpm¿ÉÈÃLinuxÔÚ°²×°Èí¼þ°üʱÃâ³ýÐí¶à¸´ÔÓµÄÊÖÐø¡£¸ÃÃüÁîÔÚ°²×°Ê±³£ÓõIJÎÊýÊÇ –ivh ,ÆäÖÐi±íʾ½«°²×°Ö¸¶¨µÄrmpÈí¼þ°ü£¬V±íʾ°²×°Ê±µÄÏêϸÐÅÏ¢£¬h±íʾÔÚ°²×°ÆÚ¼ä³öÏÖ“#”·ûºÅÀ´ÏÔʾĿǰµÄ°²×°¹ý³Ì¡£Õâ¸ö·ûºÅ½«³ÖÐøµ½°²×°Íê³Éºó²ÅÍ£Ö¹¡£
1£©°²×°·þÎñÆ÷¶Ë
ÔÚÓÐÁ½¸örmpÎļþµÄĿ¼ÏÂÔËÐÐÈçÏÂÃüÁ
[root@test1 local]# rpm -ivh MySQL-server-4.0.16-0.i386.rpm
ÏÔʾÈçÏÂÐÅÏ¢¡£
warning: MySQL-server-4.0.16-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing...¡¡########################################### [100%]
1:MySQL-server¡¡########################################### [100%]
¡¡¡£¡£¡£¡£¡£¡££¨Ê¡ÂÔÏÔʾ£©
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h test1 password 'new-password'
¡¡¡£¡£¡£¡£¡£¡££¨Ê¡ÂÔÏÔʾ£©
Starting mysqld daemon with databases from /var/lib/mysql
Èç³öÏÖÈçÉÏÐÅÏ¢£¬·þÎñ¶Ë°²×°Íê±Ï¡£²âÊÔÊÇ·ñ³É¹¦¿ÉÔËÐÐnetstat¿´Mysql¶Ë¿ÚÊÇ·ñ´ò¿ª£¬Èç´ò¿ª±íʾ·þÎñÒѾÆô¶¯£¬°²×°³É¹¦¡£MysqlĬÈϵĶ˿ÚÊÇ3306¡£
[root@test1 local]# netstat -nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address¡¡ Foreign Address State¡¡
tcp00 0.0.0.0:3306 0.0.0.0:*¡¡ LISTEN¡¡
ÉÏÃæÏÔʾ¿ÉÒÔ¿´³
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
1. ¹Ø±ÕÐéÄâ»ú;Æô¶¯WindowsϵÄÃüÁîÌáʾ·û½çÃæ;
¡¡¡¡2. ÃüÁî½øÈëVMwareµÄ°²×°Ä¿Â¼(È磺D:\VMware),ÊäÈë“vmware-vdiskmanager”ºó°´»Ø³µ¼ü£¬¿ÉÏÔʾ¹ØÓÚ¸ÃÃüÁîµÄ˵Ã÷¡£
¡¡¡¡3. Ö´ÐÐÈçÏÂÃüÁvmware-vdiskmanager -x 20Gb "J:\VMware Space\SUSE Linux 64-bit.vmdk"²ÎÊý-x±íʾҪÀ©Õ¹ÐéÄâ»úÓ²ÅÌ¿Õ¼ä;½ôËæÆäºóµÄÊý ......
LinuxÊÀ½çÒ»Ö±³ÖÓÐ×ÔÓɵijç¸ßÀíÏ룬µ«ÏÖʵÉú»î×ÜÊÇÄÇô²Ð¿á£ºÃ»ÓÐÇ®ÊÇÍòÍò²»Äܵġ£
APC Magazineµ÷²é·¢ÏÖ£¬LinuxµÄ¾ø´ó¶àÊýÄں˴úÂëÊÇÓÉ´ó¹«Ë¾·¢Õ¹µÄ£¬Êý×Ö´ïµ½Á˾ªÈ˵Ä75%£¬ÕæÕýµÄÎÞ³¥Ö¾Ô¸Õß¹±Ï׵ĴúÂëÖ»Õ¼´óÔ¼²»µ½20%£¬¾ø´ó¶àÊý´úÂëÀ´×ÔÄù¤×ʵĹ«Ë¾Ô±¹¤£¬LinuxÄÚºËÿÌìÒÔ7000ÐеÄÊý¾ÝµÝÔö£¬½ö½ö´Ó2.6.28µ½2.6.32°æ±¾£¬± ......
LinuxÎļþȨÏÞ»ù±¾¸ÅÊö:
1.»ù±¾È¨ÏÞ:¿É¶Á(r) ¿Éд(w) ¿É±à¼(x)
2.ÌØÊâȨÏÞ:SUID SGID SBIT
3.Òþ²ØȨÏÞ:ͨ¹ý[lsattr]²é¿´,[chattr]ÉèÖÃ;ÓÉÓÚÎļþµÄÒþ²ØȨÏÞÖÖÀà½Ï¶à(13ÖÖ),Ôڴ˲»×÷¾ßÌå˵Ã÷;¿ÉÒÔͨ¹ý[man ......