简体   繁体   English

安装后Wamp配置的问题

[英]Problems with wamp configuration after installation

I recently installed wamp2.5 and I am having a series of problems with it. 我最近安装了wamp2.5,但遇到了一系列问题。

  1. I get the error "Access denied for user: 'dante ' @ ' @ localhost' (password : YES )" (think the first issue here is why there are two @ signs) 我收到错误消息“用户拒绝访问:'dante'@'@ localhost'(密码:YES)”(认为这里的第一个问题是为什么有两个@符号)
  2. When i try to click on a web project on my localhost interface, instead of the url leading to, for example, localhost/mysite ... it instead points to www.mysite.com 当我尝试单击本地主机界面上的Web项目时,而不是指向例如localhost / mysite的URL ...而是指向www.mysite.com

Any help will be highly appreciated 任何帮助将不胜感激

For the second issue you can go to wamp/www/index.php . 对于第二个问题,您可以转到wamp/www/index.php

And change: 并更改:

$suppress_localhost = true;

To : 至 :

$suppress_localhost = false;

I'll see what I can do about the first problem. 我将看到我可以对第一个问题做些什么。

By default WAMPServer like most MYSQL deliveries comes with only one account set in MYSQL. 像大多数MYSQL交付一样,默认情况下,WAMPServer仅在MYSQL中设置一个帐户。

This is root and comes out of the box with no password set. 这是root ,开箱即用,没有设置密码。

So to login to phpMyAdmin for example you should use : 因此,例如要登录phpMyAdmin,您应该使用:

Username = root
Password = (leave it blank)

As to your second point, you should consider setting up Virtual Hosts in Apache for all your projects. 关于第二点,您应该考虑为所有项目在Apache中设置虚拟主机。 See this post for how to configure Apache correctly with Virtual Hosts 有关如何使用虚拟主机正确配置Apache的信息,请参见这篇文章。

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

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