Home > php教程 > php手册 > body text

PHPMyAdmin设置数据库连接端口代码

WBOY
Release: 2016-06-13 10:04:16
Original
1331 people have browsed it

本文章来给大家介绍关于PHPMyAdmin设置数据库连接端口代码,有需要了解的朋友可参考。

 代码如下 复制代码

/* 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'] = ”;

比如MySQL的端口设置为3308,可以把配置文件设置为:$cfg['Servers'][$i]['port'] = ’3308′;

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!