Jump to content
Sign in to follow this  
Facece

[Решено] Перенос на хостинг

Recommended Posts

Помогите  пожалуйста, я с денвера перенёс сайт на хостинг, вроде как правил config.php и admin/config.php

но всё равно вылазиет ошибка

Warning: mysql_connect(): Access denied for user '123123'@'localhost' (using password: YES) in /home/c7659/public_html/system/database/mysql.php on line 6

Notice: Error: Could not make a database link using 123123@localhost in /home/c7659/public_html/system/database/mysql.php on line 7

Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/c7659/public_html/system/database/mysql.php on line 10

Notice: Error: Could not connect to database 123123 in /home/c7659/public_html/system/database/mysql.php on line 11

Warning: mysql_query() expects parameter 2 to be resource, boolean given in /home/c7659/public_html/system/database/mysql.php on line 14

Warning: mysql_query() expects parameter 2 to be resource, boolean given in /home/c7659/public_html/system/database/mysql.php on line 15

Warning: mysql_query() expects parameter 2 to be resource, boolean given in /home/c7659/public_html/system/database/mysql.php on line 16

Warning: mysql_query() expects parameter 2 to be resource, boolean given in /home/c7659/public_html/system/database/mysql.php on line 17

Notice: Trying to get property of non-object in /home/c7659/public_html/index.php on line 55

Notice: Trying to get property of non-object in /home/c7659/public_html/index.php on line 64

Warning: Invalid argument supplied for foreach() in /home/c7659/public_html/index.php on line 64

Notice: Trying to get property of non-object in /home/c7659/public_html/index.php on line 72

 

В чём проблема?

 

Share this post


Link to post
Share on other sites

не подключается к БД

проверьте правильность заполнения

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', '');
define('DB_PASSWORD', '');
define('DB_DATABASE', '');
define('DB_PREFIX', '');

на некоторых хостингах вот это

define('DB_HOSTNAME', 'localhost');

может быть не localhost

Share this post


Link to post
Share on other sites

Мне вот интересно нужно ли указывать DB_PREFIX

Share this post


Link to post
Share on other sites

Мне вот интересно нужно ли указывать DB_PREFIX

Вам виднее) Названия таблиц у Вас имеют префикс?

Share this post


Link to post
Share on other sites

Всё сделал заново, всё заработало, видать пароль не тот вводил.

Share this post


Link to post
Share on other sites

только в админку не могу зайти пишет

Firefox не может найти сервер %d0%b2%d0%b5%d0%b3%d0%b0-%d1%81%d0%bf%d0%be%d1%80%d1%82.%d1%80%d1%84.

Share this post


Link to post
Share on other sites

только в админку не могу зайти пишет

Firefox не может найти сервер %d0%b2%d0%b5%d0%b3%d0%b0-%d1%81%d0%bf%d0%be%d1%80%d1%82.%d1%80%d1%84.

не верно изменён config.php в ваш.сайт/admin/

Share this post


Link to post
Share on other sites

не верно изменён config.php в ваш.сайт/admin/

Может из-за того что я сайт написал кирилицей? Просто у меня домен в зоне .рф

Share this post


Link to post
Share on other sites

Может из-за того что я сайт написал кирилицей? Просто у меня домен в зоне .рф

Ах да именно из-за этого

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.

Sign in to follow this  

  • 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.