PDO Crud connect to separate DB

//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);

Connect to DB using custom DB connection and port
$config["hostname"] = ";port=3340";

Leave a Reply

Your email address will not be published. Required fields are marked *