Support ⇒ New installations :: Archives ⇒ Making Progress.... now getting DB connection error :: Archived ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexNew installations

Archived ⇒ Making Progress.... now getting DB connection error


Thanks for getting me this far along....

I got the app in a subfolder of the root called dragonfly.

I believe that PHP 4 and 5 are installed from the control panel.

I created a SQL database that named itself after the user name "tittiger"

You run it:
www.mexdental.com/drag...nstall.php


and get the message:

**********
Trying to connect to SQL server

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/t/i/t/tittiger1/html/dragonfly/includes/db/mysql.php on line 32

The connection to the database server failed

********

Any help trouble shooting would be much appreciated.

Thanks in advance.

Joe

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
winDoze


Windows is a little bit funny with sockets. In an NT environment Sockets are called Named Pipes.

By default MySQL will let you connect using sockets or named pipes (skip-networking in my.ini on) but will not add it self in the Local Security Settings -> Network Access -> Named Pipes that can be accessed anonymously.

Now you can fix your problem in two different ways.

1) set up NT to accept anonymous connections to the specified MySQL socket (read my.ini)

2) set up MySQL to allow networking (read my.ini and disable skip-networking)


[edit] Just noticed that you are on unix server .... ask you ISP for database connections details.[/edit]

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.7 / PHP 7.3 / head

All times are UTC