Jump to content

asterisk под каким паролем и в какую базу коннектиться ?


Recommended Posts

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/billing/api/libs/api.dbconnect.php on line 31

Warning: mysql_connect(): Access denied for user 'asterisk'@'localhost' (using password: YES) in /var/www/billing/api/libs/api.dbconnect.php on line 31

Link to post
Share on other sites

Ну очевидно же. В базу куда asterisk складывает лог звонков.  Ну и соответственно нужно научить Asterisk это делать, вот например наглядная статья. 

Link to post
Share on other sites

Вопрос решен, но появился новый момент -

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/billing/api/libs/api.dbconnect.php on line 31

Link to post
Share on other sites

 

 

  On 7/14/2016 at 9:29 AM, speedfire87 said:
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/billing/api/libs/api.dbconnect.php on line 31
 

Какая версия php?

Link to post
Share on other sites
  On 7/14/2016 at 10:09 AM, oberon85 said:

 

в php 5.6 нет  mysql_connect()

 

либо понизить версию пхп

либо установть драйвер mysqli 

 

он есть, но говорят что в будущем его уберут.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...