244863 Posted April 12, 2013 Share Posted April 12, 2013 I have installed the AclExtras Plugin and within the plugin have the following: public $dataSource = 'default'; my default datasource is: public $default = array( 'datasource' => 'Database/Sqlserver', 'persistent' => false, 'host' => 'IAINROSE\SQLEXPRESS', 'login' => 'administrator', 'password' => 'd3veloper', 'database' => 'clearview', 'prefix' => '', ); The rest of the app can connect and functions as normal, but when I try and run the plugin commands e.g. cake -app "c:\wamp\www\app" AclExtras.AclExtras aco_sync I get the following error: database connect Sqlserver is missing, or could not be created?? Any ideas why only the plugin can not connect?? Quote Link to comment https://forums.phpfreaks.com/topic/276872-cakephp-acl/ Share on other sites More sharing options...
jazzman1 Posted April 12, 2013 Share Posted April 12, 2013 Does XAMPP have a proper connection to MSSQL? Quote Link to comment https://forums.phpfreaks.com/topic/276872-cakephp-acl/#findComment-1424396 Share on other sites More sharing options...
244863 Posted April 12, 2013 Author Share Posted April 12, 2013 Yes, my whole site works fine. It is just the plugin that does not like it. I have a feeling it is to do with the default database connection using a Datasource of Database/Sqlserver and the plugin not liking / finding the file location. But I'm not sure how to test / change it too???? Quote Link to comment https://forums.phpfreaks.com/topic/276872-cakephp-acl/#findComment-1424457 Share on other sites More sharing options...
jazzman1 Posted April 12, 2013 Share Posted April 12, 2013 Try to change (just for a test) database driver from 'datasource' => 'Database/Sqlserver' to 'datasource' => 'Database/Mysql'. Quote Link to comment https://forums.phpfreaks.com/topic/276872-cakephp-acl/#findComment-1424483 Share on other sites More sharing options...
244863 Posted April 15, 2013 Author Share Posted April 15, 2013 It says the same thing: Database connection "Mysql" is missing???? Quote Link to comment https://forums.phpfreaks.com/topic/276872-cakephp-acl/#findComment-1424797 Share on other sites More sharing options...
244863 Posted June 3, 2013 Author Share Posted June 3, 2013 Hi, The answer was because Apache was looking at a different PHP ini file, so could not connect through the command line. Thanks, Quote Link to comment https://forums.phpfreaks.com/topic/276872-cakephp-acl/#findComment-1433798 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.