Jump to content
LenGaz

Ошибка, которая показывает пароль к mysql

Recommended Posts

Posted (edited)

Так случилось, что лег сервер mysql. И что я увидел при заходе на сайт...

 

Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: 
Name or service not known in /mounted-storage/www/my-site.com/system/library/db/mysqli.php 
on line 7Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: 
Name or service not known in /mounted-storage/www/my-site.com/system/library/db/mysqli.php on line 7
Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /mounted-storage/www/my-site.com/system/library/db/mysqli.php on line 10
Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in /mounted-storage/www/my-site.com/system/library/db/mysqli.php on line 10
Fatal error: Uncaught exception 'Exception' with message 'Error: <br />Error No: 
' in /mounted-storage/www/my-site.com/system/library/db/mysqli.php:
10 Stack trace: #0 /mounted-storage/www/my-site.com/system/library/db.php(31): 
DB\MySQLi->__construct('mysql.com...', 'db_name', 'my_password', 'db_name', '3306') #1 
/mounted-storage/www/my-site.com/system/framework.php(80): DB->__construct('mysqli', 'mysql.com...',
 'db_name', 'my_password', 'db_name', '3306') #2 /mounted-storage/www/my-site.com/system/startup.php(104):
 require_once('/mounted-storag...') #3 /mounted-storage/www/my-site.com/index.php(19): start('catalog') #4 
{main} thrown in /mounted-storage/www/my-site.com/system/library/db/mysqli.php on line 10

my_password и db_name были в открытом виде. Надо что то с этим решать.

Версия osclass на сегодня последняя, скачена три дня назад 3.0.2.0

Edited by LenGaz

Share this post


Link to post
Share on other sites

из коробки так и есть \ было. либо отключать отображение ошибок, либо делать какой-нибудь обрабатываемый exeption

Share this post


Link to post
Share on other sites
1 час назад, 100napb сказал:

Даниэльсказал, что это не баг а фича...

Нет слов... Он вообще адекватный человек? 

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.