Jump to content

connect data base to live server


akhilk

Recommended Posts

2 hours ago, akhilk said:

or

Or?

 

2 hours ago, akhilk said:

 i have uploaded all files on my server but index file is not opening please help.

If you need technical help from people with technical knowledge then you need to be very, very specific with your questions.

What does "not opening" mean? What is happening and what did you expect would happen?

Link to comment
Share on other sites

On 8/9/2020 at 7:08 AM, akhilk said:

define('DB_USER', 'root');
define('DB_PASS', '');

Never use the root (or any other "superuser") account for running applications.  

These uber-powerful accounts should be kept solely for your use to clean up the mess when an Application goes wrong
Keep the Biggest and Best tools in the toolbox for yourself. 

Create an account specifically for the application to use and grant that account only the permissions that it needs to do its job. 

+1 for not showing us your [root] password
-1 again, though, for hard-coding it into your PHP source code. 

Database credentials need to be carefully guarded and having them lying around in plain text, even in a PHP file, is not a Good Idea. 

 

All that said, we have no idea why your "index file is not opening" ...    you've shown us no PHP code to examine, nor [database or PHP] errors to diagnose. 
Details, details, details ...   🙂

Regards, 
   Phill  W.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.