已解决 访问数据库的时候提示 #1045 - Access denied for user 'root'@'localhost' (using password: NO)


使用的时候底部会显示这个


禅道版本 8.4.1 Windows安装包
操作系统 Windows 7
客户端浏览器 其他

提问者: 博雅 悬赏:5 日期: 2017-01-23 16:45:51 答案:1 点击:7477

获取技术支持

QQ: 电话:
设置备注
答案列表
最佳答案
2017/01/23

1、检查xampp/phpmyadmin/config.inc.php 中的参数是否正确;

2、数据库受损,需要登录数据库执行sql: REPAIR TABLE `zt_cron`;

2017/01/23
没有发现什么问题


<?php
$cfg['Servers'][1]['auth_type'] = 'config';
$cfg['Servers'][1]['user'] = 'root';
$cfg['Servers'][1]['password'] = '';
$cfg['Servers'][1]['port'] = '3306';
$cfg['Servers'][1]['host'] = 'localhost';
$cfg['Servers'][1]['connect_type'] = 'tcp';
$cfg['Servers'][1]['extension'] = 'mysqli';
$cfg['Servers'][1]['AllowNoPassword'] = true;
2017/01/23
这个服务器以前好像按照过数据库没有删除,跟这个有关系吗?
2017/01/24
已经解决 非常感谢