phpMyAdmin 尝试连接到 MySQL 服务器,但服务器拒绝连接。您应该检查配置文件中的主机、用户名和密码...

需要修改phpmyadmin的配置文件,让其连接到MySQL数据库,用记事本打开 config.inc.php 文件
 1 <?php
 2 
 3 /* Servers configuration */
 4 $i = 0;
 5 
 6 /* Server: localhost [1] */
 7 $i++;
 8 $cfg['Servers'][$i]['verbose'] = 'localhost';
 9 $cfg['Servers'][$i]['host'] = 'localhost';
10 $cfg['Servers'][$i]['port'] = '3306';
11 $cfg['Servers'][$i]['socket'] = '';
12 $cfg['Servers'][$i]['connect_type'] = 'tcp';
13 $cfg['Servers'][$i]['extension'] = 'mysqli';
14 $cfg['Servers'][$i]['auth_type'] = 'config';
15 $cfg['Servers'][$i]['user'] = 'root';
16 $cfg['Servers'][$i]['password'] = '';
17 $cfg['Servers'][$i]['AllowNoPassword'] = true;
18 
19 /* End of servers configuration */
20 
21 $cfg['DefaultLang'] = 'en-utf-8';
22 $cfg['ServerDefault'] = 1;
23 $cfg['UploadDir'] = '';
24 $cfg['SaveDir'] = '';
25 
26 
27 /* rajk - for blobstreaming */
28 $cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
29 $cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
30 $cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
31 $cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';
32 
33 
34 ?>

 

转载于:https://www.cnblogs.com/haciont/p/5853130.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值