Jump to content


Photo

Can't connect to local MySQL server ERROR


  • Please log in to reply
1 reply to this topic

#1 poetawd

poetawd
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 03 October 2006 - 05:07 PM

Hallo,

Well, I´m trying to install a script:

www.clubglub.com

But, as you can see in INDEX page, I´m getting this error:

Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/content/p/o/e/poetawd4/html/include/adodb/drivers/adodb-mysql.inc.php on line 227
  :-\

Here is the CONFIG

$config['BASE_DIR']     =  '/home/content/p/o/e/poetawd4/html';

$config['BASE_URL']     =  'http://www.clubglub.com';


$config['tmpimgpath']     =   '/home/content/p/o/e/poetawd4/html/tmp';
$config['tmpimgpath2']     =   '/home/content/p/o/e/poetawd4/html/tmp';

$config['CONF_FILE']    =  $config[BASE_DIR].'/include/conf.ini';
$config['IMG_DIR']      =  $config[BASE_DIR].'/images';
$config['IMG_URL']      =  $config[BASE_URL].'/images';
$config['VDO_DIR']      =  $config[BASE_DIR].'/video';
$config['VDO_URL']      =  $config[BASE_URL].'/video';
$config['ADO_DIR']      =  $config[BASE_DIR].'/audio';
$config['ADO_URL']      =  $config[BASE_URL].'/audio';
$config['FLVDO_DIR']      =  $config[BASE_DIR].'/flvideo';
$config['FLVDO_URL']      =  $config[BASE_URL].'/flvideo';
$config['TMB_DIR']      =  $config[BASE_DIR].'/thumb';
$config['TMB_URL']      =  $config[BASE_URL].'/thumb';
$config['baseurl']      =  $config['BASE_URL'];
$config['basedir']      =  $config['BASE_DIR'];
$config['vdodir']       =  $config['VDO_DIR'];
$config['vdourl']       =  $config['VDO_URL'];
$config['audiodir']       =  $config['ADO_DIR'];
$config['audiourl']       =  $config['ADO_URL'];
$config['flvdodir']       =  $config['FLVDO_DIR'];
$config['flvdourl']       =  $config['FLVDO_URL'];
$config['imgurl']       =  $config['IMG_URL'];
$config['imgpath']      =  $config['IMG_DIR'];
$config['tmbdir']       =  $config['TMB_DIR'];
$config['tmburl']       =  $config['TMB_URL'];

$config['ffmpeg']       =  "/usr/local/bin/ffmpeg";
$config['mplayer']        =   '/usr/local/bin/mplayer';
$config['mencoder']       =   '/usr/local/bin/mencoder';
$config['metainject']     =   '/usr/local/bin/flvtool2';

$config['guest_limite'] = 2000;
require_once($config[BASE_DIR].'/smarty/libs/Smarty.class.php');
require_once($config[BASE_DIR].'/classes/mysmarty.class.php');
require_once($config[BASE_DIR].'/classes/SConfig.php');
require_once($config[BASE_DIR].'/classes/SError.php');
require_once($config[BASE_DIR].'/include/adodb/adodb.inc.php');
require_once($config[BASE_DIR].'/include/phpmailer/class.phpmailer.php');
require_once($config[BASE_DIR].'/classes/SEmail.php');

$DBTYPE = 'mysql';
$DBHOST = SConfig::get("Database", "mysql###.secureserver.net");
$DBUSER = SConfig::get("Database", "#####");
$DBPASSWORD = SConfig::get("Database", "##########");
$DBNAME = SConfig::get("Database", "CLUBGLUB");

And here is line 227:

$this->_connectionID = mysql_pconnect($argHostname,$argUsername,$argPassword,$this->clientFlags);


Any Idea of what is happening ?

Maybe Instead of variables I can use FIX values like:

$this->_connectionID = mysql_pconnect('mysql###.secureserver.net','#####','######',$this->clientFlags);


But this dont work EITHER ?

Is this too hard to figure out ? I would pay for someone to install this for me... thanks...

#2 joshi_v

joshi_v
  • Members
  • PipPipPip
  • Advanced Member
  • 168 posts

Posted 28 October 2006 - 12:53 PM

Hi


Are you sure .. all the variables are passing properly to the mysql_pconnect function?


Regards,

Vijaya.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users