php - host parameter in mysqli_connect() for online website -
i'm beginner in php development. in local station, use xampp host project , use localhost set host parameter. have uploaded project in host server, gives error:
failed connect sql: access denied user 'irdnir_harf'@'localhost' database 'irdnir_harf'
what should set it?
mysqli_connect()
has following syntax:
mysqli_connect(hostname, username, password, database)
hostname localhost usually.
make sure username , password correct. if not set otherwise, use root
username , leave blank password.
Comments
Post a Comment