I am a mac user and so only have access to the mac terminal.
I am developing a database driven website, I'm trying to connect to the database but keep getting this error which I don't know how to fix.
My php code is:
$connection = mysqli_connect("MY IP ADDRESS HERE","root","","coursework")
but when opening the browser I get the following message:
Warning: mysqli_connect(): (HY000/1130): Host '192.168.64.2' is not allowed to connect to this MariaDB server in /opt/lampp/htdocs/functions/db.php on line 2
Does anybody know how I can allow connection to this database? Thank you in advance