I'm getting this error Access denied for user 'user'@'localhost' (using password: NO) when I open a second mysqli connection in the same script.
I have a class which has 2 properties(Subclasses). This both properties extends from the DataBase class(which makes a new mysqli connection). At the moment when this subclases get instantiate I got that Access denied error.
Is there a way to establish two mysqli connection or my logic is wrong and a class shoulnd't have 2 subclasses like this ?
I hope I could explain myself. Thanks in advance