我有下面的php代码来连接到mysql。mysql_connect( "myserver.com" , "root", "redhat","datastore") or die(mysql_error()); Warning: mysql_connect(): Host '10.21.21.10' is not allowed to connect to this MySQL<
/mysql.sock', }-Finally,我使用MAMP运行Apache和MySQL服务器并导航localhost:8888。我预期导航页面localhost:8888将指向我的项目的主页面视图(index.html),正如我在urls.py中配置的那样。但是,它只是打开一个"Index of /“页面,其中包含本地目录中的目录和python文件。我知道MAMP打算与