Install MySQL and phpMyAdmin

Source: Internet
Author: User

To install phpMyAdmin, record the following points:

Install phpMyAdmin
Decompress the package to/var/www.
Configure Apache
Listen 8030.
<VirtualHost *: 8030>
DocumentRoot/var/www/phpMyAdmin
</VirtualHost>

Cp config. sample. inc. php config. inc. php
Vi config. inc. php
Modify the following section
/*
* First server
*/
$ I ++;
/* Authentication type */
$ Cfg ['servers'] [$ I] ['auth _ type'] = 'cooker ';
/* Server parameters */
$ Cfg ['servers'] [$ I] ['host'] = 'localhost ';
$ Cfg ['servers'] [$ I] ['connect _ type'] = 'tcp ';
$ Cfg ['servers'] [$ I] ['compus'] = false;
/* Select mysqli if your server has it */
$ Cfg ['servers'] [$ I] ['extension'] = 'mysql ';
$ Cfg ['servers'] [$ I] ['allownopassword'] = false;

Connect multiple hosts, copy the previous section, and change $ cfg ['servers'] [$ I] ['host,
There will be more than host selection boxes during login.

Upgrade RedHat php to 5.2
Find a simple method
Wget-q-O-http://www.atomicorp.com/installers/atomic.sh | sh
Yum update php

Restart apache
Service httpd restart

Install MySQL
./Configure & make install
Install basic library
Scripts/mysql_install_db
[Follow the prompts to set the root password]

Select Configuration File
Cp support-files/my-huge.cnf/etc/my. cnf
Vi/etc/my. cnf Add the following content
[Client]
Default-character-set = utf8
Default-character-set = utf8
[Mysqld]
Datadir =/opt/mysql_data
Default-character-set = utf8

Add mysql users
Adduser mysql

Grant permissions to mysql users
Chown-R mysql. mysql/opt/mysql_data

Set auto-start
Cp support-files/mysql. server/etc/init. d/mysql
Grant execution permission
Chomd + x/etc/init. d/mysql

Start mysql
Service mysql restart

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.