简体   繁体   English

#1045无法登录MySQL服务器

[英]#1045 Cannot log in to the MySQL server

I installed Apache, MySQL, PHP, and phpmyadmin, and I did everything needed to make the localhost/phpmyadmin webpage work correctly, with the two user inputs, I remember making my password and username 'root', when I try to log in, I get the error in the title. 我安装了Apache,MySQL,PHP和phpmyadmin,并通过两个用户输入完成了使localhost / phpmyadmin网页正常工作所需的一切,我记得在尝试登录时将密码和用户名设置为“ root”,我得到标题中的错误。 I've have been searching for an hour for a solution, but nothing has worked for me, please someone help, this is so frustrating! 我一直在寻找一个小时的解决方案,但是对我来说什么都没有用,请有人帮忙,这真令人沮丧! Thanks in advance 提前致谢

PS. PS。 I also installed 'xampp' to start and stop mysql server (that's all I know how to use it for) 我还安装了“ xampp”来启动和停止mysql服务器(这就是我所知道的所有使用方法)

I assume you have not been able to put any valid data into your MySQL database. 我假设您无法将任何有效数据放入MySQL数据库。 Therefore you should definitely remove Apache, MySQL, PHP, and phpmyadmin, plus XAMPP; 因此,您绝对应该删除Apache,MySQL,PHP和phpmyadmin,以及XAMPP。 then restart your machine and install just XAMPP. 然后重新启动计算机并仅安装XAMPP。

Getting all the necessary parts working together is tricky, that's why there are packages like XAMPP that do the work for you. 使所有必要的部分一起工作是很棘手的,这就是为什么像XAMPP这样的软件包可以为您完成工作的原因。

So you haven't managed to connect to the MySQL server through php myadmin, just get to the login screen? 因此,您没有设法通过php myadmin连接到MySQL服务器,只是进入登录屏幕?

The way you have phrased you question makes it sound like you've installed MySQL and php seperatly from xampp, is this the case as I believe that xampp comes with it's own versions? 您表达问题的方式听起来像是已经从xampp分别安装了MySQL和php,是这种情况,因为我相信xampp附带了它自己的版本?

You are on windows?? 你在窗户上吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM