Skip to content

How can I use a database in another server? #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Rocking80 opened this issue Apr 14, 2025 · 0 comments
Open

How can I use a database in another server? #6

Rocking80 opened this issue Apr 14, 2025 · 0 comments

Comments

@Rocking80
Copy link

I only changed connectDB.php file with the database IP and credential, seems not work.
the register.php can be displayed in the page, but when I finished the form and submit the page show error. I tried to change the servername in register.php file, and also the new user cannot be inserted in the database.

          $servername = "192.168.0.47";
          $username = "root";
          $password = "xxxxxxxx";

Could you please update all the page code to use outer database?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant