Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   MySQL error 2003 (http://www.programmingforums.org/showthread.php?t=2159)

ArchAngel Feb 8th, 2005 2:59 PM

MySQL error 2003
 
I get "ERROR 2003: can't connect to MySQL server on 'localhost' (10061)."
Everytime I try to access mysql.exe.
Anybody have idea why?

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


IP, pw, and ID yanked.

Thanks,
Arch

Ooble Feb 8th, 2005 3:34 PM

I had this problem for ages. I fixed it by moving php.ini to the Windows folder (I'm assuming you're running Windows here).

ArchAngel Feb 8th, 2005 5:19 PM

Which windows folder?

Ooble Feb 8th, 2005 6:44 PM

C:\windows.

codetaino Feb 8th, 2005 11:53 PM

try running on a command propt windows on the mysql bin folder

mysql -u root

to check if works?!

ArchAngel Feb 9th, 2005 9:47 AM

Didn't work, "ERROR 2003: Can't connect ot MySQL server on 'localhost' (10061)"

What is a meer Angel to do?

BlazingWolf Feb 9th, 2005 8:08 PM

Do a phpinfo() and make sure PHP is recognizing MySQL.

tempest Feb 9th, 2005 9:34 PM

Make sure MySQL is on.

ArchAngel Feb 10th, 2005 1:12 PM

tempest - How exactly? I'm guessing through prompt but I'm nto exactly sure how to check.

My dad said phpinfo looks like it's set up for SQLite, so does that mean it's not going to work for MySQL?

BlazingWolf Feb 10th, 2005 7:42 PM

SQLite and MySQL are different. Make sure PHP is setup to recognize MySQL properly.

Did you edit your PHP.ini to look for the MySQL module?


All times are GMT -5. The time now is 4:17 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC