在MAC OS下,用Apache服务器安装网站,或者mysql连接phpMyAdmin,数据库配置文件都必须写成127.0.0.1,如果写成localhost就会报错,是什么问题?

Apache hosts文件配置了localhost,通过localhost能访问服务器,只是连mysql数据库
只能写127.0.0.1
Helenr
HUH函数
慕丝7291255
忽然笑
ITMISS
慕容3067478
随时随地看视频慕课网APP