[英]How to access MySQL Server - XAMPP Mac OS?
I could not figure out why is that not working, While searching a lot for a solution I notice there are a lot of answers that not targeting the true cause of this problem.我不知道为什么这不起作用,在寻找解决方案的同时,我注意到有很多答案都没有针对这个问题的真正原因。
The problem is: the root user can connect only from the localhost machine, and since the XAMPP is running on its own virtual machine you can't access it directly from your own machine localhost.问题是:root 用户只能从本地主机连接,而且由于 XAMPP 在它自己的虚拟机上运行,你不能直接从你自己的机器本地主机访问它。 This is why you need to: 1. Allow the root user to connect from other IPs 2. Create a secondary user and allow him with specific rules to connect.
这就是为什么您需要: 1. 允许 root 用户从其他 IP 连接 2. 创建一个辅助用户并允许他按照特定规则进行连接。
I found a great article that describes the solution and how to manage that.我找到了一篇很棒的文章,它描述了解决方案以及如何管理它。 https://www.dev2qa.com/how-to-connect-to-mysql-server-after-install-xampp-on-mac-os/
https://www.dev2qa.com/how-to-connect-to-mysql-server-after-install-xampp-on-mac-os/
Thanks to Jerry Zhao for writing the right solution.感谢 Jerry Zhao 编写了正确的解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.