Jump to content
Sign in to follow this  
yuriys

[Решено {админы хостера}] При работе сайта выпадает ошибка Warning: mysql_connect()

Recommended Posts

Добрый вечер.

Помогите работал сайт нормально, а сейчас не понятно почему начал сыпать ошибки:

Warning: mysql_connect(): Unknown MySQL server host '***' (20) in /***/system/database/mysql.php
on line 6 Notice: Error: Could not make a database link *** in /***/system/database/mysql.php
on line 7 Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /***/system/database/mysql.php on line 10 Notice:
Error: Could not connect to database *** in /***/system/database/mysql.php on line 11 Warning: mysql_query() expects parameter
2 to be resource, boolean given in /***/system/database/mysql.php on line 14 Warning: mysql_query() expects parameter 2 to be resource, boolean given
in /***/system/database/mysql.php on line 15 Warning: mysql_query() expects parameter 2 to be resource, boolean given
in /***/system/database/mysql.php
on line 16 Warning: mysql_query() expects parameter 2 to be resource, boolean given in /***/system/database/mysql.php
on line 17 Warning: mysql_real_escape_string() expects parameter 2 to be resource, boolean given in /***/system/database/mysql.php
on line 55 Warning: mysql_query() expects parameter 2 to be resource, boolean given in /***/system/database/mysql.php on line
21 Warning: mysql_error() expects parameter 1 to be resource, boolean given in /***/system/database/mysql.php on
  line 49 Warning: mysql_errno() expects parameter 1 to be resource, boolean given in /***/system/database/mysql.php
  on line 49 Notice: Error:
Error No:
SELECT * FROM store WHERE REPLACE(`url`, 'www.', '') = '' in /***/system/database/mysql.php on line 49 Warning: mysql_close()
expects parameter 1 to be resource, boolean given in /***/system/database/mysql.php on line 67

*** - полный путь
Причем 3 раза при обновлении страницы все нормально, а на четвертый проскакивает.

Что это может быть и в чем проблема, она у меня или на стороне сервера. Подскажите как исправить. Заранее спасибо!

Share this post


Link to post
Share on other sites

Все тема закрыта, разобрался. Админы хостера без предупреждения сменили server host хранения базы данных. Заменил на новый в config.php и все стало на свои места.

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.