Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-09-24 22:16:12
- dreamer
- Member
- Registered: 2007-06-08
- Posts: 242
[resolved] [Solved] Connection issue when installing TXP
Does anybody know how to remedy this error below when installing TXP?
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /data/4/0/151/156/314645/user/320052/htdocs/textpattern/setup/index.php on line 208
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /data/4/0/151/156/314645/user/320052/htdocs/textpattern/setup/index.php on line 210
Can’t connect to database
It is referring this line of code in the index.php file;
if (($mylink = mysql_connect($dhost, $duser, $dpass)))
$carry['dclient_flags'] = 0;
elseif (($mylink = mysql_connect($dhost, $duser, $dpass, false, MYSQL_CLIENT_SSL)))
Offline
#2 2011-09-25 08:58:18
- dreamer
- Member
- Registered: 2007-06-08
- Posts: 242
Re: [resolved] [Solved] Connection issue when installing TXP
After searching and reading this threads
http://forum.textpattern.com/viewtopic.php?id=28451
http://forum.textpattern.com/viewtopic.php?id=29757
I tried replacing ‘localahost’ with the server alias with Network Solutions and that fixed the problem. thanks
Offline