简体   繁体   English

在Mac OS中更改XAMPP MySQL端口

[英]Changing XAMPP MySQL port in Mac OS

After I have updated Google Chrome, mySql database status became deactivated. 更新Google Chrome后,mySql数据库状态被停用。 It has something to do with ports because now Chrome uses port 80 which has been used by Mysql before. 它与端口有关,因为现在Chrome使用的端口80是Mysql以前使用的端口。 How can I change either of them so my database runs properly? 如何更改它们中的任何一个,以便数据库正常运行? I would note that Apache Web Server also runs on port 80 but it's working correctly. 我会注意到Apache Web Server也可以在端口80上运行,但是它可以正常工作。 I was looking for any answers but none of them were helpful. 我一直在寻找任何答案,但没有一个有帮助。

Thanks 谢谢

You should be able to do it by editing "my.cnf". 您应该可以通过编辑“ my.cnf”来做到这一点。

File Location: XAMPP/xamppfiles/etc/my.cnf

Then look for 然后寻找

port=80

and change it to a different port number, that is open. 并将其更改为另一个打开的端口号。

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

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