LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-23-2006, 08:58 AM   #1
jsmahesh
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
Connect MYSQL db in Windows 2003 from Linux Apache


Hello Friends,

Please let me know whether is it possible to connect a MYSQL db which is in Windows Server 2003 Microsoft-IIS/6.0 server from Linux Apache/1.3.37 (Unix) server.

FYI, the mysql db connection file is in LINUX Apache server and the mysql database is in windows 2003 server.


While trying to connect mysql db it is showing the below error.

=======================================
Can't connect to MySQL server on 'hostname' (4)
=======================================

Any idea ... Help me..

--
Thanks,
Mahesh
 
Old 08-24-2006, 02:32 AM   #2
shibucv
LQ Newbie
 
Registered: Apr 2006
Location: cochin
Distribution: Ubuntu 6.06.1 LTS, Debian Lenny
Posts: 12

Rep: Reputation: 0
hi ... just login to your mysql server and Run this command:

GRANT ALL PRIVILEGES ON *.* TO USERNAME@IP IDENTIFIED BY "PASSWORD";

USERNAME is the username that you would like to create.
IP is the public IP address of your remote connection.
PASSWORD is the password you would like to use for this username.

You now must flush MySQL's privileges. ....using the command command below:

FLUSH PRIVILEGES;

Run this command to exit MySQL:

exit;


check this to see if you are are able to connect to the server using telnet ...also check if you are not using any firewall at both end which needs to be configured.

[linux@ibm ~]$ telnet ipadderss 3306
 
Old 08-29-2006, 12:59 AM   #3
leandean
Member
 
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon, Debian
Posts: 278

Rep: Reputation: Disabled
It's never a good idea to give all privileges on all databases to a user. Privileges should only be granted on the databases you need access to and then only the minimum necessary to do your job.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect LINUX client to WINDOWS 2003 server linuxy2 Linux - Networking 8 07-29-2009 05:02 AM
Connect to Windows 2003 Server icebear Linux - Networking 4 08-07-2006 11:47 AM
ERROR 2003: Can't connect to MySQL server on '127.0.0.1' (111) eantoranz Ubuntu 4 09-06-2005 02:47 PM
Newbie - How SuSE Linux COnnect to Windows 2003 Internet Connection Cipherfx Linux - Networking 4 01-07-2005 12:44 AM
How do I connect from Mandrake 10 to Windows Server 2003? Mandrake10Guy Linux - Networking 1 10-25-2004 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration