What is the cause of the error?

QuestionsWhat is the cause of the error?
장창덕 asked 9 months ago

I recently purchased gridphp 2.9.
I first installed gripphp on server linux php 7.01 and mariaDB 10.1.31, and on the first screen of the website
MySQL Native Driver (msqlnd) required
Please check your database connection configuration.
What should I do in this cas
e?

2 Answers
Abu answered 9 months ago

Hi,

It looks like mysql is not configured correctly.

Please test your php-mysql connection in an independent file that does not use datagrid and then send that code here. I’ll then suggest you the datagrid configuration.

Also send your current datagrid config.php

Oscar replied 2 months ago

Same issue: config file:
// PHP Grid database connection settings, Only need to update these in new project
// replace {{dbtype}} with one of these: mysqli,oci8 (for oracle),mssqlnative,postgres,sybase
define(“PHPGRID_DBTYPE”,”mysqli”);
define(“PHPGRID_DBHOST”,”localhost”);
define(“PHPGRID_DBUSER”,”username”);
define(“PHPGRID_DBPASS”,”pwd”);
define(“PHPGRID_DBNAME”,”dbname”);
// database charset
define(“PHPGRID_DBCHARSET”,”utf8″);
// Basepath for lib
define(“PHPGRID_LIBPATH”,dirname(__FILE__).DIRECTORY_SEPARATOR.”lib”.DIRECTORY_SEPARATOR);

I’ve tested in an independent file, and It works. Please help

Abu answered 2 months ago

Please share the code that’s works.

Your Answer

20 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?