Error in connecting to database!
pncoder29 opened this issue · 2 comments
pncoder29 commented
i made all but still cant it always keep saying "Error in connecting to database!"
i am looking forward for this
amarlearning commented
@zerrete
-
Create a database on your server with whatever name you like, for example, I will make
urls
as my database. -
Now create a table with name
link
in theurls
database. Now using this sql dump import the table details. -
Now in the UrlShortener.php configure the database properties.
Now if I am hosting this application in my local server, then the settings would be something like this.
$this->db = new mysqli('localhost', 'root', 'root123', 'urls');
If you have followed above steps correctly, then I am sure everything will work correctly.
amarlearning commented
closing due to inactivity