Home >Backend Development >PHP Tutorial >PHPMyAdmin sets the database connection port code
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′
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)!