Jump to content

Archived

This topic is now archived and is closed to further replies.

poetawd

Can't connect to local MySQL server ERROR

Recommended Posts

Hallo,

Well, I´m trying to install a script:

[url=http://www.clubglub.com]www.clubglub.com[/url]

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

[code]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[/code]  :-\

Here is the CONFIG

[code]$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");[/code]

And here is line 227:

[quote] $this->_connectionID = mysql_pconnect($argHostname,$argUsername,$argPassword,$this->clientFlags);[/quote]

Any Idea of what is happening ?

Maybe Instead of variables I can use FIX values like:

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

But this dont work EITHER ?

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

Share this post


Link to post
Share on other sites
Hi


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


Regards,

Vijaya.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.