Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySql - XP Pro - is it running is it not

Status
Not open for further replies.

itspooch

Technical User
Nov 29, 2003
5
GB
Hi all,


I am running XP Proand have just installed Xampp which incorporates :-

Apache, mysql and PHP

I am trying to learn who to use mysql and PHP. I have setup mysql to start when the PC I am running it on starts.

when I try to access mysql using a php file in the root i get the following messages

Warning: mysql_connect(): Lost connection to MySQL server during query in E:\webdevv\xampp\htdocs\mysql_up.php on line 11

Warning: mysql_query(): Can't connect to MySQL server on 'localhost' (10061) in E:\webdevv\xampp\htdocs\mysql_up.php on line 13

Warning: mysql_query(): A link to the server could not be established in E:\webdevv\xampp\htdocs\mysql_up.php on line 13
Error 2003: Can't connect to MySQL server on 'localhost' (10061)

I have tried all sorts but I cannot seem to figure this out.

Can anyone help please I am going bonkers !!!!


Thanks

Pooch
 
If you do Ctrl+Alt+Del in the process list can you see mysqld-nt.exe? If so it is running. Also try from command line:
mysqladmin -uroot status.
If you get access denied then you'll need to find out what Xampp or you've set up the root password as and do:
mysqladmin -uroot -p status
and key in the password at the prompt.

 
Thanks for your reply its running. I still cannot connect to mysql. I am not getting the error messages now but my browser is just hanging like its trying to connect but it ticks half way up the page opening progress bar at the bottom.

Its really frustrating. I am dying to learn how to code both PHP and Mysql but so far I cannot even get started its really doing my swede in now.

Any advice you can give is greatly appreciated !
 
Hi, I also have downloaded Xampp, and was looking to set it up on my local hard disk drive so that I could start to learn PHP, etc. But I cant seem to get anything going at all ? Im running it on Windows 98SE, if anyone knows where to start etc. I would much appreciate it.

Kindest Regards

Steven Price







 
i have downloaded the mini version. i don't think there is any difference in setup. One additional benefit of going to apachefreindfs was 7-zip a real good compree/uncompress utility and only 900k!!!. The downloadbale version in zip and 7-zip format shows the diff. if one is 50 Mb then 7-zip version is 25mb!!!

i hope u have extracted in one of your folder e.g. Application.

There will be one file called setup_xampp.bat. Execute this to install xampp. Default folder is \minixampp
1. cd to this folder.
2. there are two bat files. one for starting apache apache_start.bat and another for starting mysql mysql_start.bat. It is quite possible that u may not see the extensions.
3. execute both of them by clciking or throujg run.It can be done in any order
4. When u run mysql_start.bat, its says MySql Starting and after a while u can see (on the top blue bar of windows) Finished - mysql_start. Now u can close this windows
5. When u run apache_start.bat its says Apache 2 Starting and after a while the mouse pointer chanegs from the Hour Glass icon (Busy or is it working in background ?) to normal pointer. DON'T CLOSE this window, else it stop Apache.
6. Now the litmus test.
7. start ie (internet explorer) and type th url as U will get something in German. U chke the page it has englih options also. Even if u dont check then aslo ur Apache is running.
8. for testing mysql, it has one item 'TEST MYSQL'
Hope, i have not bored u with this long teratise

if apache is not starting then check if u can ping to localhost. if not then apache would not work



[ponder]
----------------
ur feedback is a very welcome desire
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top