Solved

mysql telnet error

Posted on 2009-04-09
2
780 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Hello to you all, I hear of many people congratulate AWS (Amazon Web Services) on how easy it is to spin up and create new EC2 (Elastic Compute Cloud) instances, but then fail and struggle to connect to them using simple tools such as SSH (Secure…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

786 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