<code> //Set the host name to connect for database $config["hostname"] = "localhost"; //Set the database name $config["database"] = "pdocrud"; //Set the username for database access $config["username"] = "root"; //Set the pwd for the database user $config["password"] = ""; //Set the database type to be used. Available values are "mysql", "pgsql", "sqlite" and "sqlserver". $config["dbtype"] = "mysql"; $pdocrud = new PDOCrud(false, "", "", $config); </code> Connect to DB using custom DB connection and port $config["hostname"] = "172.25.6.112;port=3340";