wamp deprecated error
Posted by: jsoftware2014 (198.209.225.---)
Date: February 03, 2016 06:29PM

I'm new to wamp server, and I have gotten an error :

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\wamp\www\testmysql.php on line 2


How do I fix it "PLEASE EXPLAIN IN A VERY SIMPLISTIC WAY" I am very new to this jsoftware2014@yahoo.com or (314) 630-1384



Edited 1 time(s). Last edit at 02/03/2016 06:47PM by jsoftware2014.

Options: ReplyQuote
Re: wamp deprecated error
Posted by: Otomatic (Moderator)
Date: February 03, 2016 06:54PM


Options: ReplyQuote
Re: wamp deprecated error
Posted by: jsoftware2014 (198.209.225.---)
Date: February 03, 2016 06:59PM

I'm TOTALLY lost, please help

Options: ReplyQuote
Re: wamp deprecated error
Posted by: Otomatic (Moderator)
Date: February 03, 2016 07:50PM

Hi,

We are lost also. Please, answer the questions that are in the link previouly given.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: wamp deprecated error
Posted by: jsoftware2014 (198.209.225.---)
Date: February 03, 2016 08:08PM

I have a windows 10 os

Options: ReplyQuote
Re: wamp deprecated error
Posted by: jsoftware2014 (198.209.225.---)
Date: February 03, 2016 08:14PM

Forgive me but I'm not understanding the questions.

Options: ReplyQuote
Re: wamp deprecated error
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: February 03, 2016 09:08PM

You have been asked twice please read and answer these questions PLEASE READ AND ANSWER THESE QUESTIONS

We need to know the answers to all those questions before we can give a sensible answer to any question

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: wamp deprecated error
Posted by: jsoftware2014 (198.209.220.---)
Date: February 03, 2016 09:47PM

I have a windows 10 64 bit
Apache : 2.4.9
MySQL : 5.6.17
PHP : 5.5.12
PHPMyAdmin : 4.1.14
SqlBuddy : 1.3.3
XDebug : 2.2.5

I also have the green light

Options: ReplyQuote
Re: wamp deprecated error
Posted by: jsoftware2014 (198.209.220.---)
Date: February 03, 2016 09:49PM

I think I may need to download all of the libraries from the 32 bit version or something of this nature.

Options: ReplyQuote
Re: wamp deprecated error
Posted by: jsoftware2014 (198.209.220.---)
Date: February 03, 2016 10:01PM

I'm trying to answer the questions and work, please be patient with me I'll have more.

Options: ReplyQuote
Re: wamp deprecated error
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: February 04, 2016 01:28AM

Replace that script with this one

<?php
/*    Using "mysqli" instead of "mysql" that is obsolete.
*     Utilisation de "mysqli" à la place de "mysql" qui est obsolète.
* Change the value of parameter 3 if you have set a password on the root userid
* Changer la valeur du 3e paramètre si vous avez mis un mot de passe à root
*/
$mysqli = new mysqli('127.0.0.1', 'root', '');

if ($mysqli->connect_error) {
    die('Connect Error (' . $mysqli->connect_errno . ') '
            . $mysqli->connect_error);
}
echo 'Connection OK';
$mysqli->close();
?>

But basically the error message is pretty self explanitary.
Unfortunately we did not change that script until we released a newer version of WAMPServer than you seem to have downloaded

Latest WAMPServer isV3

Download from here [sourceforge.net]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.