I’m sure this is very simple, but I’m a pretty simple user right now. I have an application that I’ve been developing that connects just fine to a MySQL server running on my local machine. I set up the connection with:
$db = new \atk4\data\Persistence_SQL(‘mysql://user:password@localhost/dbfile’);
I thought it would be straightforward to simply change the connection to:
$db = new \atk4\data\Persistence_SQL(‘mysql://user:password@host/dbfile’);
However, when I do this I get an error:
PDOException: SQLSTATE[HY000]  No connection could be made because the target machine actively refused it.
What am I doing wrong? I can connect to the database via Excel, for example, and get any data I want.
Thanks for any help you can give me.