Home  >  Article  >  Backend Development  >  PHPMyAdmin sets the database connection port code

PHPMyAdmin sets the database connection port code

PHP中文网
PHP中文网Original
2017-03-30 16:37:473274browse

This article will introduce to you the code for setting the database connection port in PHPMyAdmin. Friends who need to know more can refer to it.

Recommended mysql video tutorials: "mysql tutorial"

/* Authentication type and info */ 
$cfg['Servers'][$i]['auth_type'] = ‘config’; 
$cfg['Servers'][$i]['user'] = ‘root’; 
$cfg['Servers'][$i]['password'] = ”; 
$cfg['Servers'][$i]['port'] = ’3307′; 
$cfg['Servers'][$i]['extension'] = ‘mysql’; 
$cfg['Servers'][$i]['AllowNoPassword'] = true; 
$cfg['Lang'] = ”;

For example, if the MySQL port is set to 3308, you can set the configuration file to:

$cfg['Servers'][$i]['port'] = ’3308′

http://www.bkjia.com/PHPjc/631275.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/631275.htmlTechArticleThis article will introduce to you about PHPMyAdmin settings Database connection port code, friends who need to know can refer to it. The code is as follows Copy code /* Authentication type and info */ $cfg...

The above is the content of PHPMyAdmin setting database connection port code_PHP tutorial. For more related content, please pay attention to the PHP Chinese website (www.php .cn)!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn