Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future

I have installed:
Apache 2.4.7
MySQL 5.6.19

PHP 5.5.9

and all the modules of perl mentioned in:
http://wiki.ocsinventory-ng.org/index.php/Documentation:Server#Under_Linux_Operating_System.

hi,  i am installed OCS Inventory NG for Ubuntu Server 14.04.01 LTS.
the installation not had problems but when i login with my credentials in the page 192.168.11.201/ocsreports

at top it shows a message:
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/share/ocsinventory-reports/ocsreports/backend/require/connexion.php on line 13

in the log of Apache a message is displayed
[Fri Sep 18 16:29:47.139271 2015] [:error] [pid 4966] [client 192.168.11.4:5772] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/share/ocsinventory-reports/ocsreports/backend/require/connexion.php on line 13, referer: http://192.168.11.201/ocsreports/index.php
[Fri Sep 18 16:29:47.140307 2015] [:error] [pid 4966] [client 192.168.11.4:5772] PHP Deprecated:  mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/share/ocsinventory-reports/ocsreports/backend/require/connexion.php on line 13, referer: http://192.168.11.201/ocsreports/index.php

if i change the line  

mysql_connect();

for

mysqli();

i more errors appear
 

please someone help me remove the message.
in OCS Inventory NG server for Unix by (120 points)

1 Answer

0 votes
Hi,

This message is just a warning. OCS runs good with it. With the next release, this message will disappear. I have no date for next stable release. Currently 2.2RC2 is planed for the end of the year.

Regards.

Frank
by (90.4k points)
Is there any way to remove or hide the message?
 
Powered by Question2Answer
...