ERROR 2003: Can't connect to MySQL server on 'localhost' (10

Installation and configuration iussues

Moderators: macek, egami, gesf

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Postby ruturajv » Tue Feb 15, 2005 7:29 pm

pleased do...

Code: Select all

mysql_connect(...) or die(mysql_error());

User avatar
d.shankar
New php-forum User
New php-forum User
Posts: 71
Joined: Fri Jul 29, 2005 2:17 am

Re: ERROR 2003: Can't connect to MySQL server on 'localhost'

Postby d.shankar » Mon Aug 01, 2005 1:11 am

ArchAngel wrote:I know there isn't any documentation on this error, but cna anybody tell me a fix for it?

[mysqld]
basedir=F:/apachefriends/xampp/mysql
#bind-address=************
datadir=C:/apachefriends/xampp/mysql/data
#language=C:/mysql/share/your language directory
#slow query log#=
#tmpdir#=
#port=3306
#set-variable=key_buffer=16M
[WinMySQLadmin]
Server=C:/apachefriends/xampp/mysql/bin/mysqld-nt.exe
user=*****
password=*****



What is the server you are using ?
I used EasyPHP got the same error but i fixed it.

You tell me the server name i will try to fix it.

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Postby Alexej Kubarev » Mon Aug 01, 2005 2:36 am

The problem is in php code most probably: what code is used?


Return to “MySQL Installation”

Who is online

Users browsing this forum: No registered users and 2 guests