Failed to connect database

Failed to connect database
0
#1

I am getting this error below.
I have created another db a month ago and when I change it to that db, it does not come up any errors but when I change it to goharbour_db it throws out an error.
Warning : mysqli_connect(): (HY000/1049): Unknown database 'goharbour_db.db

mysqli_connect('localhost','root','','goharbour_db');
0 Likes

#2

Your db is either not created/deleted or your db name probably has a typo.

0 Likes

#3

No typo and its created.
image

0 Likes

#4

fixed my own issue!!
Created db with latin1_swedish_ci when it should have been Collation.
:slight_smile: :slight_smile: :slight_smile:

2 Likes