您的位置:極速下載站→ 資訊首頁 → 系統(tǒng)教程 → 系統(tǒng)資訊 → phpMyAdmin在CENTOS6.0中簡單的安裝步驟教程
時間:2019-09-16 14:35:44 作者:無名 瀏覽量:18
大家好,小編是個電腦軟件控,phpMyAdmin是一個Web界面,通過它可以管理你的MySQL數(shù)據(jù)庫。那么怎么在CentOS 6.0安裝phpMyAdmin呢?本文我們就來介紹這一安裝過程,希望能夠?qū)δ兴鶐椭?o:p>
phpMyAdmin在CENTOS6.0中簡單的安裝步驟教程圖1
首先,我們使我們的CentOS系統(tǒng)的RPMForge軟件庫phpMyAdmin,不是官方的CentOS 6.0庫,導(dǎo)入rpmforge的GPG密鑰:
rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
x86_64 系統(tǒng)安裝命令:
yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
i386 系統(tǒng)安裝命令:
yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
現(xiàn)在可以安裝phpMyAdmin如下:
yum install phpmyadmin
現(xiàn)在,我們配置phpMyAdmin。改變Apache的配置,使phpMyAdmin連接,而不僅僅是從localhost(注釋掉允許) :
vi /etc/httpd/conf.d/phpmyadmin.conf
#
# Web application to manage MySQL
#
#
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
下一步,我們改變在phpMyAdmin的身份驗證cookie ,HTTP:
vi /usr/share/phpmyadmin/config.inc.php[...]
/* Authentication type */
$cfg[\\\'Servers\\\'][$i][\\\'auth_type\\\'] = ‘http’;
[...]
phpMyAdmin在CENTOS6.0中簡單的安裝步驟教程圖2
重新啟動Apache:
/etc/init.d/httpd restart
之后,您可以根據(jù)訪問phpMyAdmin http://192.168.0.100/phpmyadmin/管理數(shù)據(jù)庫了。
mysql從5.5之后源碼裝置需求運(yùn)用cmake:
To install MySQL from source,your system must have the following tools,regardless of installation method:
CMake,which is used as the build framework on all platforms.CMake can be downloaded fromhttp://www.cmake.org.
A good make program. Although some platforms come with their ownmake implementations,it is highly recommended that you use GNUmake 3.75 or newer. It may already be available on your system asgmake. GNUmake is available fromhttp://www.gnu.org/software/make/.
A working ANSI C++ compiler. GCC 4.2.1 or later,Sun Studio 10 or later,Visual Studio 2008 or later,and many current vendor-supplied compilers are known to work.
Perl is needed if you intend to run test scripts. Most Unix-like systems include Perl. On Windows,you can use a version such as ActiveState Perl.
yum 裝置 gcc,gcc-c++,cmake,bison(GNU),運(yùn)用 centos6.0 自帶的perl和openssl
增加mysql組和mysql用戶
/usr/sbin/groupadd mysql
/usr/sbin/useradd -g mysql mysql
將mysql和data文件裝置到不同的物理磁盤上
cmake -DCMAKE_INSTALL_PREFIX=/opt/soft/mysql \\\\\\\\
-DMYSQL_DATADIR=/home/soft/mysql/data \\\\\\\\
-DMYSQL_UNIX_ADDR=/opt/soft/mysql/mysql.sock \\\\\\\\
-DMYSQL_TCP_PORT=3306 \\\\\\\\