phpMyAdminÊÇÒ»¿îÊý¾Ý¿â¹ÜÀí³ÌÐò£¬Ä¿Ç°phpMyAdminÒѾÄܹ»Ö§³ÖWindows¡¢Mac OS¡¢LinuxµÈ¶à¸öƽ̨¡£´Ë°æ±¾ÎªMac°æ£¬·½±ã¹ã´óµÄMac OSÓû§¿ÉÒÔʹÓÃphpMyAdmin for MacÇáËɹÜÀíºÍ±à¼ÄãµÄMySQLÊý¾Ý¿â¡£
phpMyAdmin ÊÇÒ»¸öÒÔPHPÓïÑÔΪ»ù´¡Îª»ù´¡£¬ÒÔWeb-Base·½Ê½¼Ü¹¹ÔÚÍøÕ¾Ö÷»úÉϵÄMySQLµÄÊý¾Ý¿â¹ÜÀí¹¤¾ß£¬Í¨¹ýphpMyAdmin ¿ÉÒÔÍêÈ«¶ÔÊý¾Ý¿â½øÐвÙ×÷£¬ÀýÈ罨Á¢¡¢¸´ÖƺÍɾ³ýÊý¾ÝµÈµÈ¡£
Èç¹ûʹÓúÏÊʵŤ¾ß£¬MySQLÊý¾Ý¿âµÄ¹ÜÀí¾Í»á±äµÃÏ൱¼òµ¥¡£Ó¦Óà MySQL ÃüÁîÐз½Ê½ÐèÒª¶Ô MySQL ֪ʶ·Ç³£ÊìϤ£¬¶ÔSQLÓïÑÔÒ²ÊÇͬÑùµÄµÀÀí¡£²»½öÈç´Ë£¬Èç¹ûÊý¾Ý¿âµÄ·ÃÎÊÁ¿ºÜ´ó£¬ÁбíÖÐÊý¾ÝµÄ¶ÁÈ¡¾Í»áÏ൱À§ÄÑ¡£
Ò»¡¢Æô¶¯ Apache
Mac OS X ϵͳÒѾ¼¯³ÉÁË Apache+PHP »·¾³£¬ÒÀ´Î½øÈ롰ϵͳƫºÃÉèÖà -> ¹²Ïí¡± £¬¿ªÆô¡°Web ¹²Ïí¡±£¬¾Í¿ÉÒÔ´ò¿ª Apache¡£
µ«Ð°æµÄ Mac OS X ÖУ¬Æ»¹ûÈ¡ÏûÁËÕâ¸ö¹²Ïí¹¦ÄܵÄͼÐνçÃ棬ֻÄÜ´ÓÃüÁîÐпªÆô¡£
ÔÚÖÕ¶ËÀïÊäÈëÃüÁÆô¶¯ Apache£º
sudo apachectl start
¹Ø±Õ Apache£º
sudo apachectl stop
ÖØÆô Apache
sudo apachectl restart
²é¿´ Apache °æ±¾£º
httpd -v
MacOS X 10.9.X ÖÐµÄ Apache °æ±¾ÐÅÏ¢£º
Server version: Apache/2.2.26 (Unix) Server built: Dec 10 2013 22:09:38
MacOS X yosemite 10.10 ÖÐµÄ Apache °æ±¾ÐÅÏ¢£º
Server version: Apache/2.4.9 (Unix) Server built: Sep 9 2014 14:48:20
ÆôÓà Apache Ö®ºó£¬ÔÚä¯ÀÀÆ÷ÖзÃÎÊ http://localhost »ò http://127.0.0.1£¬Èç¹û³öÏÖ¡°It works!¡±¾Í±íʾÔËÐÐÕý³£¡£
¶þ¡¢Root Ŀ¼
OS X ÖÐĬÈÏÓÐÁ½¸öĿ¼¿ÉÒÔÖ±½ÓÔËÐÐÄãµÄ Web ³ÌÐò£¬Ò»¸öÊÇϵͳ¼¶µÄ Web ¸ùĿ¼£¬Ò»¸öÊÇÓû§¼¶µÄ¸ùĿ¼£¬´ó¼Ò¼Çϼ´¿É¡£
×¢£ºÒÔÏ haibor ΪÓû§Ãû£¬ÐèÒª°´Êµ¼ÊÐ޸ġ£
Apacheϵͳ¼¶µÄ¸ùĿ¼¼°¶ÔÓ¦ÍøÖ·ÊÇ£º
/Library/WebServer/Documents/ http://localhost
Óû§¼¶µÄ¸ùĿ¼¼°¶ÔÓ¦ÍøÖ·ÊÇ£º
~/Sites http://localhost/~haibor/
~/Sites Ò²¾ÍÊÇÄãÓû§Ä¿Â¼ÏÂÃæµÄ¡±Õ¾µã¡±Ä¿Â¼£¬ÔÚ OS X ÖУ¬Õâ¸öĿ¼¿ÉÄÜûÓУ¬ËùÒÔÄãÐèÒªÊÖ¶¯½¨Á¢Ò»¸öͬÃûĿ¼¡£½¨Á¢·½Ê½ºÜ¼òµ¥£¬Ö±½ÓÔÚÖÕ¶ËÖÐÔËÐУº
sudo mkdir ~/Sites
½¨Á¢¡°Õ¾µã¡±Îļþ¼ÐÖ®ºó£¬¼ì²é /etc/ Îļþ¼ÐÏÂÃæÊDz»ÊÇÓС°haibor.conf¡±Õâ¸öÎļþ£º
/etc/apache2/users/
Èç¹ûûÓУ¬ÄÇôÄãÐèÒª´´½¨Ò»¸ö£¬È¡ÃûΪ¡°haibor.conf¡±£¬¿ÉÒÔʹÓà vi »òÕß nano ÕâÁ½ÖÖ±à¼Æ÷Ö®Ò»À´´´½¨¡£
sudo vi /etc/apache2/users/haibor.conf
´´½¨Ö®ºó½«ÏÂÃæµÄÕ⼸ÐÐÄÚÈÝдµ½ÉÏÃæµÄ conf ÎļþÖУº
<Directory "/Users/haibor/Sites/"> Options Indexes MultiViews AllowOverride All Order allow,deny Allow from all </Directory>
Îļþ±£´æÖ®ºó£¬¸øËü¸³ÓèÏàÓ¦µÄȨÏÞ£º
sudo chmod 755 /etc/apache2/users/haibor.conf
½ÓÏÂÀ´ÖØÆô Apache£¬ÒÔʹ¸ÃÅäÖÃÎļþÉúЧ£º
sudo apachectl restart
Ö®ºóÄã¾Í¿ÉÒÔͨ¹ýä¯ÀÀÆ÷·ÃÎÊÄãµÄÓû§¼¶Ä¿Â¼ÍøÒ³ÁË£¬Äã¿ÉÒÔËæ±ã·À¸öÍøÒ³½øÈ¥²âÊÔһϡ£¸ùĿ¼µØַΪ£º
http://localhost/~haibor/
Ò²¿ÉÒÔ¸ü¸Ä¸ùĿ¼£¬µ«Òª¼ÇµÃ¸øÐÂÎļþ¼ÐÉèÖã¬Îļþ¼ÐÐèÒªÓÐÖ´ÐÐȨÏÞx£¬ÉèÖÃÁË755¾Í¿ÉÒÔÁË£º
mkdir /Users/user/workspace chmod 755 /User/user/workspace
°Ñ/etc/apache2/httpd.confÎļþÀïµÄ /Library/WebServer/Documents/ ¶¼Ìæ»»³É×Ô¼ºµÄ·¾¶£¬±ÈÈç /User/user/workspace
ÖØÆôApache£ºapachectl restart£¬ÔٴηÃÎÊlocalhost¼´ÏÔʾµÄÊǸü¸ÄºóµÄÎļþÀïµÄÄÚÈÝÁË¡£
Èý¡¢Æô¶¯ PHP
OS X Mavericks ÖÐÒѾ¼¯³ÉÁË PHP 5.4.30 °æ±¾£¬ÐèÒªÊÖ¶¯¿ªÆô¡£Äã¿ÉÒÔÓà vi »òÕß nano ±à¼Æ÷´ò¿ªÏÂÃæÕâ¸öÎļþ£º
sudo nano /etc/apache2/httpd.conf
È»ºó°´ctl+W½øÐвéÕÒ£¬ËÑË÷¡±php¡±£¬µÚÒ»ÌõÆ¥ÅäµÄÓ¦¸ÃÊÇÏÂÃæÕâ¾ä´úÂ룺
LoadModule php5_module libexec/apache2/libphp5.so
Ç뽫Õâ¾ä´úÂëÇ°ÃæµÄ#È¥µô£¬È»ºó±£´æÎļþ¡£
½ÓÏÂÀ´ÔÙÒ»´ÎÖØÆô Apache£º
sudo apachectl restart
ÏÖÔÚ PHP Ó¦¸ÃÒѾ¿ªÊ¼¹¤×÷ÁË£¬Äã¿ÉÒÔÔÚÓû§¼¶¸ùĿ¼ÏÂ(~/Sites/)·ÅÒ»¸öPHP²âÊÔÎļþ£¬´úÂëÈçÏ£º
<?php phpinfo(); ?>
ËÄ¡¢°²×° MySQL
OS X Mavericks Öв¢Ã»Óм¯³É Mysql£¬ÐèÒªÊÖ¶¯°²×°¡£Äã¿ÉÒÔµã»÷ http://dev.mysql.com/downloads/mysql/ È¥¹ÙÍøÏÂÔØ MySQL µÄ°²×°°ü¡£
ÇëÏÂÔØ Mac OS X 10.7 (x86, 64-bit), DMG Archive £¨ÈçÓиüа汾£¬¿ÉÏÂÔØ£©¡£
ÏÂÔØÍêDMGÖ®ºó£¬Ë«»÷Äã»áÌáÈ¡³öÈý¸öÎļþºÍÒ»¸ö RedMe.txt Îĵµ¡£ÕâÈý¸öÎļþ·Ö±ðÊÇ£º
mysql-5.6.15-osx10.7-x86_64.pkg MySQLstartupitem.pkg MySQL.PrefPane
ÄãÐèÒªÖðÒ»°²×°ÕâÈý¸öÎļþ£¬MySQLStartupItem.pkg°²×°ºó£¬mysql»áËæϵͳÆô¶¯¶ø×ÔÆô¶¯£¬MySQL.prefPane±íʾ¿ÉÒÔÔÚϵͳƫºÃÉèÖÃÖп´µ½mysqlÑ¡Ï»¹ÓÐÒ»¸ö¾ÍÊÇmysqlµÄ°²×°Ïî¡£
Èý¸öÎļþ¶¼°²×°Íê³ÉÖ®ºó£¬½øÈ롸ϵͳƫºÃÉèÖá¹£¬ÔÚÃæ°åµÄ×îÏÂÃæÄã»á¿´µ½Ò»¸ö MySQL µÄÉèÖÃÏµã»÷ËüÖ®ºó¾Í¿ÉÒÔÆô¶¯MySQL¡£
Ò²¿ÉÒÔͨ¹ýÃüÁÆômysql£º
sudo /usr/local/mysql/support-files/mysql.server start
Èç¹ûÄãÏë²é¿´ MySQL µÄ°æ±¾£¬¿ÉÒÔÓÃÏÂÃæÕâ¸öÃüÁ
/usr/local/mysql/bin/mysql -v
ÔËÐÐÉÏÃæÕâ¸öÃüÁîÖ®ºó£¬»áÖ±½Ó´ÓÃüÁîÐÐÖеǼµ½ MySQL£¬ÊäÈëÃüÁî \q ¼´¿ÉÍ˳ö¡£
µ½ÕâÀï MySQL ÒѾÅäÖÃÍê³É£¬²¢ÇÒ¿ÉÒÔÔËÐС£
ΪÁ˸ü¼Ó·½±ãʹÓã¬×îºÃÔÙÉèÖÃÒ»ÏÂϵͳ»·¾³±äÁ¿£¬Ò²¾ÍÊÇÈà mysql Õâ¸öÃüÁîÔÚÈκη¾¶¶¼¿ÉÒÔÖ±½ÓÆô¶¯(²»ÐèÒªÊäÈëÒ»³¤´®µÄ׼ȷ·¾¶)¡£
ÉèÖû·¾³±äÁ¿Ò²ºÜ·½±ã£¬Ö±½ÓÓÃÃüÁî(ÕâÀï±ÊÕßÓà vi ±à¼Æ÷¾ÙÀý)£º
cd ; vi .bash_profile
È»ºó°´×Öĸ i ½øÈë±à¼Ä£Ê½£¬½«ÏÂÃæµÄÕâ¾ä´úÂëÌù½øÈ¥£º
export PATH="/usr/local/mysql/bin:$PATH"
È»ºó°´ esc Í˳ö±à¼Æ÷£¬ÔÙÊäÈë :wq(±ðÍüÁËðºÅ)±£´æÍ˳ö¡£µ±È»ÄãÈç¹ûʹÓà nano »òÕß±ðµÄ±à¼Æ÷µÄ»°£¬²Ù×÷·½Ê½¸úÕâ¸ö¿ÉÄܲ»Ò»Ñù£¬·´ÕýÒâ˼¾ÍÊǽ«ÉÏÃæÄǾ仰дÈëµ½ .bash_profile ÎļþÖС£
½ÓÏÂÀ´»¹ÒªÖØмÓÔØһϠShell ÒÔÈÃÉÏÃæµÄ»·¾³±äÁ¿ÉúЧ£º
source ~/.bash_profile
Ö®ºóÄã¾Í¿ÉÒÔÔÚÖն˵ÄÈÎÒâĿ¼ʹÓà mysql ÃüÁîÁË£¬Äã¿ÉÒÔÔËÐÐ mysql -v ÊÔÊÔ¡£
×îºóÒ»²½£¬°²×°ºÃºóĬÈϵÄÓû§ÃûÊÇroot£¬ÃÜÂëΪ¿Õ£¬Ä㻹Ӧ¸Ã¸øÄãµÄ MySQL ÉèÖÃÒ»¸ö root Óû§ÃÜÂ룬ÃüÁîÈçÏ£º
mysqladmin -u root password 'ÕâÀïÌîÄãÒªÉèÖõÄÃÜÂë'
(Çë¼ÇסÃÜÂëÒ»¶¨ÒªÓðë½Çµ¥ÒýºÅ°üÆðÀ´)
ÉÏÃæµÄ mysqladmin ÃüÁÎÒûÓÐдÍêÕû·¾¶¡£ÒòΪÉÏÃæÎÒÃÇÒѾÉèÖÃÁË»·¾³±äÁ¿£¬Èç¹ûÄãûÓÐÉèÖû·¾³±äÁ¿µÄ»°£¬¾ÍÐèÒªÓÃ/usr/local/mysql/bin/mysqladmin ******** À´ÔËÐС£
Îå¡¢°²×° phpMyAdmin »ò adminer
ÔÚ°²×° phpMyAdmin ֮ǰ£¬ÇëÊ×ÏÈÐÞ¸´ 2002 socket ´íÎó£º
sudo mkdir /var/mysql sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
½Ó×Å¿ÉÒÔÔÚ phpMyAdmin¹ÙÍøÏÂÔØ°²×°°ü£¬ÍƼöÏÂÔØ english.tar.gz£¬Ò²¿ÉÒÔÏÂÔØ all-languages.tar.gz ʹÓÃÖÐÎİ棬½âѹ֮ºó£¬½«½âѹ³öÀ´µÄÎļþ¼Ð¸ÄÃûΪ¡±phpmyadmin¡±£¬²¢·Åµ½ÉÏÃ潨Á¢µÄ¡±Õ¾µã¡±Ä¿Â¼ÏÂ(~/Sites)¡£È»ºóÔÚ phpmyadmin Ͻ¨Á¢Ò»¸ö config Îļþ¼Ð£º
µ½ÕâÀï¾ÍËãÍê³ÉÁË£¬½ÓÏÂÀ´Äã¾Í¿ÉÒÔ·ÃÎÊ http://localhost/~haibor/phpmyadmin/ À´Í¨¹ý phpmysql ¹ÜÀíÄãµÄÊý¾Ý¿âÁË¡£
ÌÚѶ»áÒéRooms mac°æv2.7.5.514 ¹Ù·½°æ
Á¢¼´ÏÂÔرҰ²macÆ»¹û¿Í»§¶Ëv1.17.0.0 ¹Ù·½°æ
Á¢¼´ÏÂÔØʤÀûÔÆѧÌÃmac°æv11.1.1 ¹Ù·½°æ
Á¢¼´ÏÂÔØÌÚѶQQ for Macv6.7.5 ×îаæ¹Ù·½ÏÂÔØ
Á¢¼´ÏÂÔظß;ѧԺmac°æv8.6.7 ¹Ù·½°æ
Á¢¼´ÏÂÔØж«·½³ö¹ú¿¼ÊÔmac°æv4.2.0 ¹Ù·½Æ»¹û°æ
Á¢¼´ÏÂÔØж«·½´óѧ¿¼ÊÔmac°æv4.2.0 ¹Ù·½°æ
Á¢¼´ÏÂÔØ°¢ÀïÔÆÅÌmac°æv2.1.1 ¹Ù·½°æ
Á¢¼´ÏÂÔØppÖ±Á¬mac°æv5.2 ¹Ù·½°æ
Á¢¼´ÏÂÔØ΢ÐÅMac°æÏÂÔØv3.0.0 ×îаæ
Á¢¼´ÏÂÔØ»ð±ÒÍø for macv2.0.7 ¹Ù·½µçÄÔ°æ
Á¢¼´ÏÂÔØж«·½±ÈÁÚÍâ½Ìmac°æV1.27.0.786 ¹Ù·½Æ»¹û°æ
Á¢¼´ÏÂÔØÄϹϵçÓ°mac°æv1.2.0 ¹Ù·½°æ
Á¢¼´ÏÂÔضàÒæÕ½ÃËmac°æv1.0.77 ¹Ù·½°æ
Á¢¼´ÏÂÔعØÓÚÌÚÅ£ | ÁªÏµ·½Ê½ | ·¢Õ¹Àú³Ì | °æȨÉùÃ÷ | ÏÂÔØ°ïÖú(£¿) | ¹ã¸æÁªÏµ | ÍøÕ¾µØͼ | ÓÑÇéÁ´½Ó
Copyright 2005-2021 QQTN.com ¡¾ÌÚÅ£Íø¡¿ °æȨËùÓÐ ¶õICP±¸19031707ºÅ-1 | ¶õ¹«Íø°²±¸ 42011102000245ºÅ
ÉùÃ÷£º ±¾Õ¾·ÇÌÚѶQQ¹Ù·½ÍøÕ¾ ËùÓÐÈí¼þºÍÎÄÕÂÀ´×Ô»¥ÁªÍø ÈçÓÐÒìÒé ÇëÓë±¾Õ¾ÁªÏµ ±¾Õ¾Îª·ÇÓ®ÀûÐÔÍøÕ¾ ²»½ÓÊÜÈκÎÔÞÖúºÍ¹ã¸æ