我的域名出错了 [英] I am getting errors on my domain
问题描述
Hello Guys,今天我已经完成了我的PHP项目,问题是我已将我的网站上传到我的域名,我也在数据库中导入了MySQL文件,我必须在配置文件中定义所有内容hostname username password和DB name
但是当我打开我的网站所以我得到一些错误我的网站没有打开请帮助我们,请
提前谢谢
我尝试了什么:
遇到PHP错误
严重性:警告
消息:mysqli :: real_connect():( 28000/1045):拒绝访问用户'root1'@'localhost'(使用密码:YES)
文件名:mysqli / mysqli_driver.php
行号:201
Backtrace:
文件:/home/redbrick/cpc.redbricksgroup.com/panel/application/third_party/MX/Loader.php
行:109
功能:DB
文件:/ home / redbrick / cpc。 redbricksgroup.com/panel/application/third_party/MX/Loader.php
行:65
功能:初始化
文件:/home/redbrick/cpc.redbricksgroup.com/panel/application/third_party/MX/Base.php
行:55
功能:__construct
文件:/home/redbrick/cpc.redbricksgroup.com/panel/application/third_party/MX/Base.php
行:60
功能:__构造
文件:/home/redbrick/cpc.redbricksgroup.com/panel/application/third_party/MX/Controller。 php
行:4
功能:需要
文件:/home/redbrick/cpc.redbricksgroup。 com / panel / application / third_party / MX / Modules.php
行:123
功能:include_once
文件:/home/redbrick/cpc.redbricksgroup.com/panel/application/core/MY_Controller.php
行:9
功能:spl_autoload_call
档案:/home/redbrick/cpc.redbricksgroup.co m / panel / index.php
行:315
功能:require_once
发生数据库错误
无法使用提供的设置连接到数据库服务器。
文件名:third_party / MX / Base.php
行号:55
Hello Guys, Today I have completed my PHP project and the problem is I have uploaded my site to my domain and I have import MySQL file also in database and I have to define everything in configuration file hostname username password and DB name
but when I open my site so am gettings some errors my site is not opening please help me guys, please
Thanks in Advance
What I have tried:
A PHP Error was encountered
Severity: Warning
Message: mysqli::real_connect(): (28000/1045): Access denied for user 'root1'@'localhost' (using password: YES)
Filename: mysqli/mysqli_driver.php
Line Number: 201
Backtrace:
File: /home/redbrick/cpc.redbricksgroup.com/panel/application/third_party/MX/Loader.php
Line: 109
Function: DB
File: /home/redbrick/cpc.redbricksgroup.com/panel/application/third_party/MX/Loader.php
Line: 65
Function: initialize
File: /home/redbrick/cpc.redbricksgroup.com/panel/application/third_party/MX/Base.php
Line: 55
Function: __construct
File: /home/redbrick/cpc.redbricksgroup.com/panel/application/third_party/MX/Base.php
Line: 60
Function: __construct
File: /home/redbrick/cpc.redbricksgroup.com/panel/application/third_party/MX/Controller.php
Line: 4
Function: require
File: /home/redbrick/cpc.redbricksgroup.com/panel/application/third_party/MX/Modules.php
Line: 123
Function: include_once
File: /home/redbrick/cpc.redbricksgroup.com/panel/application/core/MY_Controller.php
Line: 9
Function: spl_autoload_call
File: /home/redbrick/cpc.redbricksgroup.com/panel/index.php
Line: 315
Function: require_once
A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: third_party/MX/Base.php
Line Number: 55
推荐答案
查看错误消息:
Look at the error message:
Access denied for user 'root1'@'localhost'
你需要多清楚一点?
它可能不是localhost而是MySQL服务器的正确名称,root1不太可能是普通用户应用程序的登录名。普通用户不需要管理员访问权限,并且提供它是一个坏主意。
因此,首先查看导入数据库时起诉的连接字符串生产服务器 - 可能包含您需要的信息。如果没有,请联系您的托管服务技术支持并从中获取。
How much clearer do you need it to be?
It probably isn't "localhost" but a "proper" name for the MySQL server, and "root1" is very unlikely to be the login name for a "normal" user application. Normal users don't need administrator access, and it's a bad idea to give it.
So start by looking at the connections string you sued when you imported your database to the production server - that probably holds the info you need. If not, contact your hosting service tech support and get it from them.
这篇关于我的域名出错了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!