Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

mysql telnet error

Posted on 2009-04-09
2
781 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
ID: 24106302
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
ID: 24114054
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

791 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