Hi all,
maybe this isn't a php question, but a MySQL question.
If so I'm sorry for asking you guys to help me :)
I know this question is asked often in NGs, but I couldn't find the
answer that works for me.
I've just installed my server with following:
Apache2, PHP5 and MySQL 4.1.12 on Windows 2000 Server.
Apache and PHP are funtioning properly (I can open a page like
phpinfo() ).
But now i've come upon a problem with MySQL.
When i try to run a simple PHP script like:
mysql_connect(" localhost", "root", "password") or die (mysql_error()) ;
I get the following error:
Can't connect to MySQL server on 'localhost' (10061)
I've tried several different addresses like: localhost, 127.0.0.1,
server01, 192.168.0.3 all with same result.
Loopback address should work cause I configured MySQL that way.
The MySQL service is started.
I don't know whether it's a good way to test the MySQL server but on
commandline I typed:
mysql --user=user_name --password=your_p assword
And I got mysql> commandline.
Can someone please help me find the problem and/or give a better way of
testing.
Thanks in advance for your replies.
P. Hordijk 2 4504
<pi************ @hotmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. . Hi all,
When i try to run a simple PHP script like: mysql_connect(" localhost", "root", "password") or die (mysql_error()) ; I get the following error: Can't connect to MySQL server on 'localhost' (10061)
I've tried several different addresses like: localhost, 127.0.0.1, server01, 192.168.0.3 all with same result.
Have you tried plugging in the phrase (in quotes) to Google?
This is a fairly common problem with an easy fix posted on the MySQL manual
pages.
Go to Google & put in: "Can't connect to MySQL server on 'localhost'"
(quotes included) - the answer is one of the top two responses.
It has to do with the passwords & latest versions of MySQL - the page on the
MySQL site you find will tell you how to fix it.
Thanks for your reply!
When i said i searched NGs, I meant I also searched Google (Could be
that I'm so retarded that I overlooked the sollution to my problem
though).
I followed your instruction to enter "Can't connect to MySQL server on
'localhost'" in google and I studied the results, none of them did the
trick for me.
Bout the password thingy: I couldn't find it (but like I said before
that could also be me being retarded), so I'm blushing when I ask you
the following: Can you give me the URL of the site where you found out
bout that password thingy and latest versions.
Do you still think this is a php question or do I need to post in a
MySQL NG?
I know I can be a pain in the ass :), so I thank all for taking the
time to help me. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stefan Hinz |
last post by:
Degan,
jumping in to try and solve some problems that look pretty obvious to
me ...
> #options for default service (mysqld2)
> (mysqld2)
It should be , not (mysqld2).
|
by: Steve Carson-Rowland |
last post by:
I have tried to install MySQL 4.0.14 on my Pentium 1.7Ghz running WindowsXP
Professional.
the installation ran through without any problems.
However, every command gives an error:
C:\mysql\bin>mysql
ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)
C:\mysql\bin>mysql --install
|
by: Asad Khan |
last post by:
Hello,
I was using MySQL till a few days ago just fine. Now everytime I try to run
it using mysql.exe, I get the following error:
"can't connect to mysql server 'localhost' (10061)"
What can I do to get rid of this? (What is 10061?)
|
by: David Ehmer |
last post by:
I have installed MySQL on WinXP Pro
When attempting to access various commands from the command prompt (eg help,
set password etc) I get the following error.
ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)
When trying to access the MySQL server via a local web page I am also unable
to connect to the database.
|
by: Ryan Stewart |
last post by:
I'm running MySQL server on a WinXP box at home. I have a cable
modem/router. I've set up port forwarding on port 3306 to the machine
running MySQL. I can connect locally just fine, but when I try to
connect from a remote location using:
mysql -h xxx.xxx.xxx.xxx -P 3306 -u root -p mysql
I get:
ERROR 2003: Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (10061)
When I try:
| |
by: Mondal |
last post by:
Hi,
I am using MySQL 5.0 beta and Active Python 2.4. I have the correct
version of MySQLdb installed. The problem is that I can't connect to
MySQL through the Active Python interactive window.
Here is a sample error:
>>> c=MySQLdb.Connect(host='localhost',user='root',passwd='',db='shop',port=3306)
Traceback (most recent call last):
|
by: swarajtnj |
last post by:
HI Everybody,
I am a newly person on MySql Database.
I am using ASP.net 2.0 with Using the Database as MySql 5.0.
My client server 63.247.82.34. The server previlages as create a database as 2.
i create a database saathii.
Herewidth i created the database in my local server perfectly working.
But i create the database thrown an error as cann't connect to MySql Server on localhost @ 10061.
How to solve the problem.
|
by: swarajtnj |
last post by:
Hi Friends,
I am using MySql 5.0. With the Front end as ASP.NET 2.0.
I am working a small concern.
my company local server to connect the MySql is perfectly working.
But when i Connect to the Client server Ip Address thrown an Error. I Captured the error as follows:
"Cann't connect to MySql sever @ localhost(10061)"
Next one "Access denied for user "saathii"@125.99.195.246' Using Password:YES".
Client ip Add: 63.247.82.34
|
by: samnav |
last post by:
Hello,
I know this question was asked many times before but I couldn't find a solution that works for me.
I've installed an apache server (2.2.6), PHP (5.2) and MySQL (5.0.45) in my windows XP SP2.
I've configured everything as needed (or at least I think so)
and tested my MySQL with a small php page on the localhost but the browser showed the error:
"Can't connect to MySQL server on 'localhost' (10061)"
I've tried many things but...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |