skip to Main Content

I have registered a domain using some web hosting website and I logged into parallels plesk panel,I have uploaded my pages onto it but unable to connect to database does anyone know what would be three parameters would be?

$con = mysql_connect("localhost","root","");    

what are the 3 fields i should fill in to connect to mysql on plesk panel, I registered domain just yesterday i am kinda new to this stuff.please help me, any help is greatly appreciated.

2

Answers


  1. At its basic level any database connection needs location (host), username, and password. I would assume it would be all three of those, though I don’t have plesk panel experience.

    Login or Signup to reply.
  2. it’s the mysql host,username,password.

    1. the host will be your ip or localhost(default)
    2. your mysql username
    3. your mysql password

    mysql_connect

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search