Installation keep installing Demo not my DB

QuestionsInstallation keep installing Demo not my DB
Bassam Osman asked 1 year ago

Hello,
Just purchased the full copy. I followed the instructions by renaming and modifying config.php with my hosted MySQL database. After running "install.php" I am taken to the demo site instead of my own database.

Can you please provide clear instructions on how to prevent the demo and get to my own database defined in the config.php?

Thank you,

1 Answers
Abu Ghufran answered 1 year ago

Hi,

You can change any of the demo code e.g. in demos/editing/index.php

You need 2 changes:
1) Database config
$db_conf = array(
"type" => PHPGRID_DBTYPE,
"server" => PHPGRID_DBHOST,
"user" => PHPGRID_DBUSER,
"password" => PHPGRID_DBPASS,
"database" => PHPGRID_DBNAME
);
and
2) Table name
$g->table = "customers";

Based on your settings it will show your desired database table.
For other options like SQL select_command and columns customizations, you can refer docs.

Your Answer

3 + 13 =

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 / 5. Vote count:

As you found this post useful...

Follow us on social media!

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

Let us improve this post!