Solved

mysql telnet error

Posted on 2009-04-09
2
778 Views
Last Modified: 2013-11-08
i am trying to test mysql connection  on a linux mach. i have created the user in mysql and given that user all privilages to connect from any host'%'. and i am able to connect to that linux mach.'s mysql server and able to work but when i try to telnet it form the same mach i am getting error

command:
telnet localhost 3306

ho can i over come this error my  web applicaion is giving error.
error is 

Trying 127.0.0.1 ...

Connected to localhost.localdomain (127.0.0.1).

Escape character is '^]'.

4

5.0.22BCLT"JIR,#f^$4z,fCYsConenction closed by foreign host.

Open in new window

0
Comment
Question by:serveradmin
2 Comments
 
LVL 19

Accepted Solution

by:
jools earned 500 total points
Comment Utility
what do you expect to happen? The application uses this port to connect, you don't get a login prompt there!

to test mysql you would use the command;
    mysql -u <userid> -p<password> <database>

<userid> must be configured to connect using the GRANT option, I believe there is also a mysqladmin command that can do this;

0
 
LVL 7

Expert Comment

by:mchkorg
Comment Utility
jools is right.
"Telneting" your server will just make sure it's available on your network (here, locally)
Here's mine :
telnet localhost 3306
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
8
5.0.51a-24U.R0B,ZaZ,|$;;X*d=CuHD^]
telnet> quit
Connection closed.

What is the web application you're talking about? why should it be doing a telnet connection? O_o
If it's something like a PHP web-application, you'll have to enable PHP for your web server and so on...

First of all, check if you can connect with the regular mysql command-line tool
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now