doudou6719 2017-04-01 02:23
浏览 31
已采纳

数据库和网站之间的问题。 我无法访问我的网站

I uploaded online all my prestashop website files and database but when I try to open the website I get this error "Link to database cannot be established: SQLSTATE[28000] [1045] Access denied for user 'lt27mhfc_dkddb'@'localhost' (using password: YES)".

I read somewhere on-line that when you upload the website files and the database the connection between those gets lost so I modified the setting.inc.php file changing db_name, db_user, db_password to match my new credentials.

I made a second new user and I choose a second new password and I even tried with those, the strange thing is that the message stays the same instead of saying “…for user newuser@’localhost’…”; like I never changed the user and password the second time.

I am working online with cpanel.

Can anyone help?

  • 写回答

3条回答 默认 最新

  • douxi6903 2017-04-02 16:50
    关注

    so i solved it, i moved all the website files in the root folder which is "public_html" (it's not a must step, you can have those files where you want)

    i modified these voices in the table ps_shop_url in the database connected to my website:

    • domain: www.example.com
    • domain ssl: www.example.com
    • phisical uri: the name of the foler in which you have your website; mine was the root folder so i wrote "/"

    saved and now it works

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 ogg dd trandata 报错
  • ¥15 高缺失率数据如何选择填充方式
  • ¥50 potsgresql15备份问题
  • ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
  • ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
  • ¥60 pb数据库修改与连接
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错