Get DbConnection error in OJS 3.0 with XAMPP 7.2.26

I don’t have PHP background. I am trying to install OJS at my local machine(Windows 10). I am using XAMPP 7.2.26. I am using PHP 7.2.26. I am using Ver 9.1 Distrib 10.4.11-MariaDB, for Win64 on AMD64.
I have downloaded OJS 3.0. When I am running this on XAMPP it is giving the following database error.

[Fri Jan 24 21:27:35.153750 2020] [php7:error] [pid 13924:tid 1864] [client ::1:52090] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in D:\xampp\htdocs\ojs1\lib\pkp\lib\adodb\drivers\adodb-mysql.inc.php:456\nStack trace:\n#0 D:\xampp\htdocs\ojs1\lib\pkp\lib\adodb\adodb.inc.php(558): ADODB_mysql->_connect(‘localhost’, ‘ojs’, ‘ojs’, ‘ojs’)\n#1 D:\xampp\htdocs\ojs1\lib\pkp\classes\db\DBConnection.inc.php(144): ADOConnection->Connect(‘localhost’, ‘ojs’, ‘ojs’, ‘ojs’, false)\n#2 D:\xampp\htdocs\ojs1\lib\pkp\classes\db\DBConnection.inc.php(119): DBConnection->connect()\n#3 D:\xampp\htdocs\ojs1\lib\pkp\classes\db\DBConnection.inc.php(76): DBConnection->initConn()\n#4 D:\xampp\htdocs\ojs1\lib\pkp\classes\db\DBConnection.inc.php(52): DBConnection->initDefaultDBConnection()\n#5 D:\xampp\htdocs\ojs1\lib\pkp\classes\db\DBConnection.inc.php(220): DBConnection->DBConnection()\n#6 D:\xampp\htdocs\ojs1\lib\pkp\classes\i18n\PKPLocale.inc.php(156): DBConnection::getInstance()\n#7 D:\xampp\htdocs\ojs1\lib\pkp\classes\core\Dispatcher.inc.php(131): PKPLocale::initialize(Object(Request))\n#8 D:\xampp\htdocs\ojs1\ in D:\xampp\htdocs\ojs1\lib\pkp\lib\adodb\drivers\adodb-mysql.inc.php on line 456

Hi @Raman_Mittal,

See e.g.: Uncaught Error: Call to undefined function mysql_connect()

Regards,
Alec Smecher
Public Knowledge Project Team

Hello Alec. I have tried with the OJS 3.0.0 version. Now it is giving the database error. Which I have mentioned in the post. I was following this tutorial Cara Instal OJS 3.0 - YouTube

Hi @Raman_Mittal,

There is a solution to that error at the link I posted above.

That’s a third party tutorial, and be aware that it has an unsafe recommendation around the files directory – it should not be placed inside your web root, unless you protect it from direct access!

Regards,
Alec Smecher
Public Knowledge Project Team

Thanls @asmecher It is working now. You save my Day.