Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 4.0.1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
I have tried to install civicrm-4.0.1-joomla.zip on Joomla_1.6.3-Stable-Full_Package
my server is 1and1
I noticed that hostname on my 1and1 account is localhost:/tmp/mysql5.sock
so I have to use localhost:/tmp/mysql5.sock as database hostname.
BUT when I install civicrm it failed.
I guess following two lines are creating constant DSN but they are also using COLON( as seperator, so this might be preventing from installation.
path to file in zip(civicrm-4.0.1-joomla.zip) :
com_civicrm/admin/helpers/api.php
define('CIVICRM_UF_DSN', 'mysql://'.$lc123config->getValue('config.user').':'.$lc123config->getValue('config.password').'@'.$lc123config->getValue('config.host').'/'.$lc123config->getValue('config.db').'?new_link=true');
define('CIVICRM_DSN', 'mysql://'.$lc123config->getValue('config.user').':'.$lc123config->getValue('config.password').'@'.$lc123config->getValue('config.host').'/'.$lc123config->getValue('config.db').'?new_link=true');
can you please help me in this regards
I tried to use tcp($lc123config->getValue('config.host')) instead of $lc123config->getValue('config.host') on above lines but it is still not installing correctly.
I am getting following error.
Initialization Error
Array
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => simpleHandler
)
[code] => -24
[message] => DB Error: connect failed
[mode] => 16
[debug_info] => [nativecode=mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user: 'dbo357903463@localhost' (Using password: YES)]
[type] => DB_Error
[user_info] => [nativecode=mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user: 'dbo357903463@localhost' (Using password: YES)]
[to_string] => [db_error: message="DB Error: connect failed" code=-24 mode=callback callback=CRM_Core_Error::simpleHandler prefix="" info=" [nativecode=mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user: 'dbo357903463@localhost' (Using password: YES)]"]
)
backTrace
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 235
, simpleHandler,
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/civicrm/packages/PEAR.php, call_user_func, 931
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/civicrm/packages/DB.php, PEAR_Error, 968
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/civicrm/packages/PEAR.php, DB_Error, 564
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/civicrm/packages/DB/common.php, raiseError, 1903
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/civicrm/packages/DB/mysql.php, raiseError, 256
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/civicrm/packages/DB.php, connect, 558
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/civicrm/packages/DB/DataObject.php, connect, 2287
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/civicrm/packages/DB/DataObject.php, _connect, 2525
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/civicrm/packages/DB/DataObject.php, _build_condition, 411
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Setting.php, find, 209
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/civicrm/CRM/Core/Config.php, retrieve, 397
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/civicrm/CRM/Core/Config.php, _initVariables, 202
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/admin.civicrm.php, singleton, 48
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/admin.civicrm.php, civicrm_init, 59
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/components/com_civicrm/admin.civicrm.php, civicrm_invoke, 45
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/libraries/joomla/application/component/helper.php, require_once, 152
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/includes/application.php, renderComponent, 154
/homepages/14/d242236087/htdocs/ajabumedia/civicrm/administrator/index.php, dispatch, 47