Jump to content
chmichael89

не запускается сайт на локальном сервере после переноса с хоста

Recommended Posts

Posted (edited)

вот что пишет 

Цитата

Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'admin00'@'localhost' (using password: YES) in /Applications/MAMP/htdocs/сайт/system/library/db/mysqli.php on line 7Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /Applications/MAMP/htdocs/сайт/system/library/db/mysqli.php on line 10Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /Applications/MAMP/htdocs/сайт/system/library/db/mysqli.php on line 10

 

вот мой конфиг

<?php


// HTTP
define('HTTP_SERVER', 'http://localhost:8888/сайт/admin/');
define('HTTP_CATALOG', 'http://localhost:8888/сайтl/');

// HTTPS
define('HTTPS_SERVER', 'http://localhost:8888/сайт/admin/');
define('HTTP_CATALOG', 'http://localhost:8888/сайт/');

// DIR
define('DIR_APPLICATION', '/Applications/MAMP/htdocs/сайт/admin/');
define('DIR_SYSTEM', '/Applications/MAMP/htdocs/сайт/system/');
define('DIR_IMAGE', '/Applications/MAMP/htdocs//сайт/image/');
define('DIR_STORAGE', '/Applications/MAMP/storage/');
define('DIR_CATALOG', '/Applications/MAMP/htdocs/сайт/catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'admin00');
define('DB_PASSWORD', '12345');
define('DB_DATABASE', 'базаданных');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');


// OpenCart API
define('OPENCART_SERVER', 'https://www.opencart.com/');
define('OPENCARTFORUM_SERVER', 'https://opencartforum.com/');

где еще может быть проблема 

Edited by chmichael89

Share this post


Link to post
Share on other sites

Не правильно указаны данные подключения в БД

Share this post


Link to post
Share on other sites

ну название одинаковые в конфеге и в sql, может где-то еще прописано? 

Share this post


Link to post
Share on other sites
46 минут назад, chmichael89 сказал:

ну название одинаковые в конфеге и в sql, может где-то еще прописано? 

доступа нет у пользователя

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.