phpMyAdmin installation, Web Access MySQL

Source: Internet
Author: User
Tags mysql login phpmyadmin

1. Download the phpMyAdmin package: ( Note: phpmyadmin-2.11.10-all-languages.tar.gz )

2, install httpd, PHP, Php-mysql, MySQL, Mysql-sever, php-mbstring package:

#yum install-y httpd php php-mysql mysql mysql-server php-mbstring mysql-devel


3. Copy the phpmyadmin-2.11.10-all-languages.tar.gz compressed package that we downloaded to the HTTPD default page directory/var/www/http, and unzip:

CP Phpmyadmin-2.11.10-all-languages.tar.gz/var/www/http/cd/var/www/http/tar XVF Phpmyadmin-2.11.10-all-langu  ages.tar.gz rm-rf xvf phpmyadmin-2.11.10-all-languages.tar.gz mv phpmyadmin-2.11.10-all-languages/*./RM -RF phpmyadmin-2.11.10-all-languages


4. Create and modify the phpMyAdmin configuration file:

for a configuration file that creates phpMyAdmin, we just need to have the existing config.sample.inc.php file that name :    

#cp config.sample.inc.php config.inc.php #这样我们就得到了phpMyAdmin的配置文件      

Configuring the phpMyAdmin configuration file

#vim config.inc.php #在配置文件中找到如下行: $cfg [' blowfish_secret '] = ' #在连个单引号之间添加任意的字母 (note: It is best to add only letters and numbers, do not add symbols, so as not to cause differences $cfg [' blowfish_secret '] = ' Luzhi ' #保存退出, you can


5. Start the MySQL service and set the MySQL login password for the local root user:

Service mysqld start chkconfig--level 2345 mysqld on Add MySQL service to open auto start list

Execute the following command:

       #mysql  -uroot -p        #给本地的root用户设置密码, password is redhat          Mysql> set password for [email protected]=password (' RedHat ');        Query OK, 0 rows affected  (0.00 sec)           mysql> flush privileges;          Query OK, 0 rows affected  (0.00 sec)        mysql> \q         bye 

6. Start httpd Service:

Service httpd start Chconfig--level 2345 httpd on Add httpd service to boot auto start list

OK, now we can use the Web to login to our MySQL server.

Enter the IP address of your host in the browser: http://192.168.137.10


This article is from the "Tiandaochouqin" blog, make sure to keep this source http://8855546.blog.51cto.com/8845546/1642321

phpMyAdmin installation, Web Access MySQL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.