So after thoroughly searching Google and this forum I have not found a resolution. I am attempting to connect to my MySQL/MariaDB with PHP on my freshly installed SME Server 10 I get a connection refused. This I have tried
config setprop mysqld LocalNetworkingOnly no
expand-template /etc/my.cnf
sv t /service/mysqld
but the sv command returns 'unable to change to service directory; file does not exist'
I see on one post that LocalNetworkingOnly no is strongly discouraged I will change that to yes if I get my connection
working. At this point I am not too concerned about security I am using SME 10 primarily for my own purposes
this I have tried
$mysqliconn = new mysqli("<my host ip address>", "<my user>", "<my user password","<mydatabase>");
and this
$mysqliconn = mysqli_connect("<my host ip address>", "<my user>", "<my user password","<mydatabase>");
I am running my PHP script using putty from the command line: php <my php script>
php version 5.4.16