View Single Post
Old 23rd August 2010, 18:32
Mosquito Mosquito is offline
Join Date: Nov 2006
Posts: 85
Thanks: 5
Thanked 6 Times in 5 Posts
Default API Call sites_database_add

I'm having an issue with 'sites_database_add'. I can get it to add a DB without any issue. I can see it and connect to it via phpMyAdmin. But, when I try to do a mysql_connect call, I get this error:

PHP Warning:  mysql_connect(): Access denied for user 'c7testAPI'@'localhost' (using password: YES)
These are the parameters I'm passing:
$params = array(
			'server_id' => 1,
			'type' => 'mysql',
			'database_name' => 'c7testAPI',
			'database_user' => 'c7testAPI',
			'database_password' => 'test',
			'database_charset' =>  'utf8',
			'remote_access' => 'n', // n disabled - y enabled
			'active' => 'y', // n disabled - y enabled
			'remote_ips' => ''
Did I miss something?
Reply With Quote
Sponsored Links