简体   繁体   English

我对 laragon phpmyadmin 有疑问

[英]I've a issue with laragon phpmyadmin

I've a little problem with my laragon mysql server.我的 laragon mysql 服务器有点问题。 I'm trying to connect phpmyadmin panel but I have this error code我正在尝试连接 phpmyadmin 面板,但出现此错误代码

Error Code错误代码

 mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO)

and I've got another weird error codes like in picture我还有另一个奇怪的错误代码,如图所示

在此处输入图像描述

Root folder is working perfectly and my site working good.根文件夹运行良好,我的网站运行良好。 Bu I can't connect phpmyadmin. So what shall I do?但是phpmyadmin无法接通,怎么办?

The red error in your screenshot, that you also mentioned in your error code, is the real problem.您在错误代码中也提到的屏幕截图中的红色错误才是真正的问题。 The blueish messages are just deprecation notices which won't affect the behavior of your system.蓝色消息只是弃用通知,不会影响系统的行为。

The message Access denied for user 'root'@'localhost' (using password: NO) is very speaking already.消息Access denied for user 'root'@'localhost' (using password: NO)已经非常有说服力了。 You try to connect to your database as root user without a password , which your database does not allow.您尝试以没有passwordroot用户身份连接到您的数据库,而您的数据库不允许这样做。

So, you have a few options:所以,你有几个选择:

  1. Create and configure a root password.创建和配置root密码。 You can find a laragon-specific walkthrough here .您可以在此处找到特定于 laragon 的演练。

  2. Even better, if suitable for you: Create a specific user (not root ) and password for your application and use this one.更好的是,如果适合您:为您的应用程序创建一个特定的用户(不是root )和密码并使用这个。

  3. Make your database allow password-less root connections.使您的数据库允许无密码根连接。 See here for how this can be achieved.请参阅此处了解如何实现这一点。 Note : Mostly, this is a serious security issue.注意:通常,这是一个严重的安全问题。 Please be sure to know, what you are doing and never do something like this in productive / inte.net accessible systems!请务必知道,您在做什么,并且永远不要在生产性/互联网可访问系统中做这样的事情!

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

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