1.linuxä¸å®è£
phpMyAdmin
linuxä¸å®è£ phpMyAdmin
百度网站源码 phpMyAdminæ¯ä¸ç§åºäºWebçå è´¹MySQL管çå·¥å ·ãphpMyAdminæ¯ç¨PHPç¼åçï¼å æ¤åªææ¯æPHPçæå¡å¨æè½ä½¿ç¨phpMyAdminãphpMyAdmiè½å¤éè¿æµè§å¨å®æå ä¹ææçSQLæä½ãå ¶å®è£ æ¥éª¤å¦ä¸ï¼百度网站源码ï¼1ï¼ä¸è½½æºç ï¼/project/phpmyadmin/phpMyAdmin/3.5.1/phpMyAdmin-3.5.1-all-languages.tar.gzï¼å½åï¼-5-8ï¼ææ°çæ¬ä¸º3.5.1ã
百度网站源码ï¼2ï¼è§£åå°Webæå¡å¨çæä»¶æ ¹ç®å½ï¼å³/usr/local/apache2/htdocsã
百度网站源码#tar -zxvf phpMyAdmin-3.5.1-all-languages.tar.gz -C /usr/local/apache2/htdocs
百度网站源码ï¼3ï¼å°å®è£ ç®å½éå½å为phpMyAdminã
百度网站源码#mv /usr/local/apache2/htdocs/phpMyAdmin-3.5.1-all-languages /usr/local/apache2/htdocs/phpMyAdmin
百度网站源码è¿å ¥ç®å½/usr/local/apache2/htdocs/phpMyAdmin/librariesï¼æ¥çé ç½®æ件config.default.phpã
百度网站源码#cd /usr/local/apache2/htdocs/phpMyAdmin/libraries/
百度网站源码#vi config.default.php
百度网站源码百度网站源码
ä¿®æ¹é ç½®æ件config.default.php
百度网站源码$cfg['Servers'][$i]['host'] = 'localhost';
百度网站源码æå®MySQLæå¡å¨æå¨ç主æºåï¼é常ç¨é»è®¤å¼ã
百度网站源码$cfg['Servers'][$i]['port'] = '';
百度网站源码æå®MySQLççå¬ç«¯å£ï¼ä¿æ空ç½å表示使ç¨é»è®¤ç«¯å£ã
百度网站源码$cfg['Servers'][$i]['auth_type'] = 'config';
百度网站源码æå®è®¤è¯æ¹æ³ãå¨æ¬æºè°è¯æ¶ç¨configãå¦æå¨ç½ä¸è°è¯ï¼ä½¿ç¨cookieã
百度网站源码$cfg['blowfish_secret'] = 'php';
百度网站源码æå®ç¨äºcookie认è¯çä¿¡æ¯ï¼å¯ä»¥æ¯ä»»ä½å符串ã
百度网站源码$cfg['Servers'][$i]['user'] = 'root';
百度网站源码æå®MySQL管çè çå¸å·ã
百度网站源码$cfg['Servers'][$i]['password'] = 'rootpass';
百度网站源码æå®MySQLrootå¸æ·çå¯ç ã
百度网站源码ï¼4ï¼æµè¯ãå¼å¯æµè§å¨ï¼è¾å ¥http://localhost/phpMyAdmin/ãå¦æå°$cfg['Servers'][$i]['auth_type']设置为âcookieâï¼å°±ä¼åºç°å¾1æ示çç»å½çé¢ãå¦æ设置为âconfigâæè æåç»å½åå°±è½è¿å ¥phpMyAdminç主页é¢ï¼å¾2ï¼ã
百度网站源码百度网站源码