Configurations

i have created my php program. How can i configure it in a way that the database can be accessed remotely by client machines.

Hi tsanyaz, welcome to the forum

The only “configuration” needed that I can think of as far as remote access is that you create a User with read-only abilities.

https://dev.mysql.com/doc/refman/5.5/en/privilege-system.html

Then have the code use the corresponding HOST, USER, PASSWORD, DATABASE values.

Thanks Mittineague. May i have the example of the code please.

I don’t understand what you mean, it’s your program you created.
And it doesn’t require any configuration in the real sense any more than you’ve already done in the CREATE queries,

The link I posted previous gives details on how to do the privileges and the rest is your connection values. where you just make them what they need to be.
HOST is where the database server is.
And USER, PASSWORD and DATABASE are whatever names you gave them.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.