Jump to content
Sign in to follow this  
LenGaz

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

Recommended Posts

Так случилось, что лег сервер 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
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.