Phpmyadmin configuration in CentOS

Source: Internet
Author: User
Tags mysql host

Install phpmyadmin on the development and testing machine web, and test mysql locally:

Mysql 5.0.77, start the service, set the mysql account password, initialize... Phpmyadmin3.5.3 unzip the installation directory:/var/www/html/xx/hub/mydb VM access domain name: mydb. hub. xx. modify the comphpmyadmin configuration file: Open the config under the libraries directory. default. PHP file 1) visit the website
 
 
  1. $cfg['PmaAbsoluteUri'] = 'mydb.hub.xx.com';

Enter the phpMyAdmin access URL. 2) mySQL host information
 
 
  1. $cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address

Enter the ip address of the localhost or MySQL server. If MySQL and phpMyAdmin are on the same server, press the default localhost
 
 
  1. $cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port

MySQL port. The default value is 3306. leave it blank. If you use another port during MySQL installation, enter it here. 3) MySQL user name and password
 
 
  1. $cfg['Servers'][$i]['user'] = 'root';

Enter the MySQL user name used by MySQL to access phpMyAdmin. The default value is root.
 
 
  1. $cfg['Servers'][$i]['password'] = '';

Enter the password corresponding to the above MySQL user name. 4) authentication method
 
 
  1. $cfg['Servers'][$i]['auth_type'] = 'cookie';

For security considerations, we recommend that you enter the cookie here in four modes: cookie, http, HTTP, and configconfig. You can enter the phpMyAdmin access URL directly, you do not need to enter the user name and password. It is insecure and is not recommended. When this option is set to cookie, http or HTTP, you need to use the data username and password for verification to log on to phpMyAdmin. For details, refer to the following: PHP installation mode is Apache, and http and cookie can be used; the PHP installation mode is CGI. You can use cookies. 5) set the phrase password (blowfish_secret)
 
 
  1. $cfg['blowfish_secret'] = '';<P></P>

If the authentication method is set to cookie, you need to set the phrase password. leave it blank. Otherwise, an error will be prompted when you log on to phpMyAdmin.


This article is from the "E people space" blog, please be sure to keep this source http://iceeggplant.blog.51cto.com/1446843/1107824


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.