简体   繁体   English

无法在主机中连接mysql DB

[英]cannot connect mysql DB in my host

I just created a site at freewebhosting.com, upload a new mediawiki project and opened it for first time. 我刚刚在freewebhosting.com上创建了一个网站,上传了一个新的mediawiki项目并首次打开了它。 The installation goes fine until I have to connect my DB. 在我必须连接数据库之前,安装一切正常。

freewebhosting provided me the data I should need: freewebhosting为我提供了我需要的数据:

DataBase name: db_name 数据库名称:db_name
DataBase username: db_user 数据库用户名:db_user
DataBase password: db_pass 数据库密码:db_pass
DataBase host: localhost 数据库主机:本地主机

I put all these data correctly but cannot connect: DB connection error: Access denied for user 'db_user'@'localhost' (using password: YES) (localhost). 我正确放置了所有这些数据,但无法连接:数据库连接错误:用户'db_user'@'localhost'的访问被拒绝(使用密码:是)(本地主机)。

It must be not that hard lol, but I dont know what should be. 它一定不是那么难笑,但我不知道应该怎么做。 The only odd thing I see there i DataBase host: localhost. 我在数据库主机上看到的唯一奇怪的东西:本地主机。 Is this right? 这是正确的吗? I mean it is trying to connect to my site and not to my localhost? 我的意思是它正在尝试连接到我的站点而不是我的本地主机?

Regards. 问候。

LoL. 大声笑。 Just tried again and worked. 只是再次尝试并工作。
I guess they should have updated my db information a few hours after setting it up. 我猜他们应该在设置几个小时后就更新了我的数据库信息。 Appreciate everybody. 感谢大家。

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

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