MySQL说:无法连接:无效的设置 [英] MySQL Says: Cannot connect: invalid settings

查看:126
本文介绍了MySQL说:无法连接:无效的设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在本地网络的共享环境中使用XAMPP.所有项目均具有默认的mysql用户名和密码.最近,我尝试更改项目的用户名和密码.现在,我无法访问phpmyadmin.它仅显示以下消息:

We are using XAMPP in a shared environment in our local network. All the projects had the default mysql username and password. Recently I tried to change the user name and password of a project. And now I am not being able to access phpmyadmin. It just displays the following message:

phpMyAdmin尝试连接到MySQL服务器,服务器拒绝了该连接.您应检查配置中的主机,用户名和密码,并确保它们与MySQL服务器管理员提供的信息相对应.

现在没有人能够访问phpmyadmin.我该如何解决?

Now no one is able to access the phpmyadmin. How can I solve this?

推荐答案

错误:-您在配置中定义的controluser的连接失败.

Error:-Connection for controluser as defined in your configuration failed.

解决方案:- 由于您的ubuntu系统中有两个mysql服务器正在运行,因此引起混乱,请解决此问题,先停止mysql servert

solution:- because of in your ubuntu system two mysql server running so get confusion solve this problem stop mysql servert first

  1. 打开终端
  2. 类型命令:

  1. open terminal
  2. type command:

sudo /etc/init.d/mysql stop

  • 类型命令:

  • type command:

    sudo  /opt/lampp/lampp restart
    

  • 在浏览器中打开localhost
  • 这篇关于MySQL说:无法连接:无效的设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆