Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-17 18:32:00

RAW
New Member
Registered: 2006-07-17
Posts: 8

Newbie having trouble with install

Warning: mysql_connect(): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) in /export/home/ir/ironnipplez/public_html/text/textpattern/setup/index.php on line 189

Can’t connect to database

This is the error message I’m getting.

I don’t have a clue how to use mySQL. I know that my webhoster has set it up for me.
I can log into the PHPAdmin page and see the server name and that stuff.

What am I doing wrong?

Thanks

Offline

#2 2006-07-17 19:06:34

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: Newbie having trouble with install

Is your database set up correctly?
Did you set it to localhost? Or is it on a different server?

Do you have access to /tmp/mysql.sock?
Is it read/writeable by www?

Does your host provide an example that you can reference to show us how they recommend connecting to the db using php?

Offline

#3 2006-07-17 20:07:11

RAW
New Member
Registered: 2006-07-17
Posts: 8

Re: Newbie having trouble with install

Actually, I finally stumbled on the correct combination of variables.

My problem was that my server info was listed as mysql.webhero.com
I tried mysqlconnect.webhero.com and that solved the problem.

Now I just gotta figure out how to change some stuff on this template I’ve downloaded!

Thanks

Offline

Board footer

Powered by FluxBB