Install and use phpMyAdmin. Set up phpMyAdmin on CentOS and centosphpmyadmin in CentOS
Required components: apachephpmysqlphpmyadminapache0.yum install httpd1. confirm the version $ httpd-v2. start apache $ sudo service httpd start (http://xxx.xxx.xxx.xxx shows apache info) 3. set optional $ sudo chkconfig httpd on $ sudo chkconfig -- listhttpd 0: off 1: off 2: on 3: on 4: on 5: on 6: offphp0.yum install php-devel php-mbstring php-mysql php-gd1. confirm version $ php-v2. set php. ini $ sudo cd/etc $ sudo cp php. ini php. ini. old $ sudo vim php. ini (optional) post_max_size = 8Mupload_max_filesize = 2 M bytes post_max_size = 128Mupload_max_filesize = 128MMysql0. yum-y install mysql-server1. confirm the version of $ mysql -- version2. Mysql to start $ sudo service mysqld start or $ sudo/etc/rc. d/init. d/mysqld start3. set the password $ sudo mysql_secure_installation4. set automatic start $ sudo chkconfig mysqld onphpmyadmin0.installation $ sudo yum install phpmyadmin1. configure phpMyAdmin. conf $ cd/etc/httpd/conf. d $ sudo cp phpMyAdmin. conf phpMyAdmin. conf. old $ sudo vim phpMyAdmin. conf Allow from 127.0.0.1 (near line 25) Allow from: 1 lower # Allow from 127.0.0.1 # Allow from: 1 Allow from All $ sudo service httpd restarthttp: // xxx. xxx. xxx. xxx/phpmyadmin
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.