Telnet / DB help

2012-02-14  Source: Original Site  Category:PHP  Views:0 


I was given a page to be redone, specifically changing from CGI - which was on a old host DB - to a PHP version.

For the connection info to the new host (I cant use the stuff from the old scripts as it deals with the old host), I was originally given:

command line access: telnet.*HOST*.com
database name: *NAMEHERE

username and password is the same as given to me earlier

Plugging that info into the standard mysql_connect I got:

MySQL Connection Failed: Can't connect to MySQL server

SO I wrote the admin and received this reply:

The SQL server is running on sql.*HOST*.com. you can run the mysql program from telnet.*HOST*.com and have it connect to that sql.*HOST*.com server. You
cannot directly connect to sql.*HOST* .com from a windows machine. The other
thing that you can look at is the man page for mysql once you are connected to telnet.*HOST*.com.

so I subsituted sql.*HOST*.com into my connection string to give:

$connection = mysql_connect("sql.*HOST*.com" , "*USERNAME*" , "*PASSWORD*") or die ("Couldn't connect to server.");

This yields the following error:

Warning: MySQL Connection Failed: Access denied for user: *USERNAME*@* (Using password: YES) Cannot connect to database

So right now I'm stuck as to what is wrong. Am I missing something (I've done DBs before and have always connected the same way) or is the host just not set up right? Or both?

Related articles
  • Crontab Telnet Linux help, anyone? 2012-06-04

    I know this isn't PHP, but I'm at a loss who to ask, I've tried IRC, no one seems to see me there. I finally got my hoster to set it up so that I could get to shell via telnet. Which I did, I then did crontab -e, and typed out 00 02 2 3 5 echo "Testi

  • telnet app help wanted 2012-06-23

    all, im not much of a programmer myself, but a friend pointed me to this board and said I might beable to find help on a project im working on. I've created a chatline running on linux, and I'd like to develope a telnet app for windows 98/2000 users

  • Telnet Access Help 2013-03-10

    I need help gaining telnet access to a new linux box I built. All the box has on it is a the basic, most striped down, Debian Sarge installed it. I set it up this was because all I want to use it for is to learn Snort (and a few other network tools).

  • telnet script help!!! 2013-12-20

    ok so i want to be able to run telnet as such : telnet <ip> <port> and then when it hangs and says "escape character '^']." i want it to do a "get /http/1.0". creating a process in java isnt working cause its hanging waiting for user inpu

  • Telnet / DB help 2012-02-14

    I was given a page to be redone, specifically changing from CGI - which was on a old host DB - to a PHP version. For the connection info to the new host (I cant use the stuff from the old scripts as it deals with the old host), I was originally given

  • portforward port 23 telnet iptables help. 2012-12-13

    As the title says I am trying to forward inbound ( from the internet ) telnet ( port 23) connections to the WAN ip of (eth0) through (eth1) to to host server on port 23. Here is what I have ATM. Code:

  • Telnet command help 2014-03-31

    Can nayone enlighten me on how to upload using telnet.. I seem to have found everything else but this command..

  • Ubuntu ssh & ssh2 telnet 2012-09-02

    I just new to the brash (shell) and i would like to know how use the ssh telnet, is any tutorial for a beguine r! i just can't find the way to connect to my e-mail servers using the ssh telnet any help will be appreciate .....

  • Ubuntu I need help configuring postfix to send mail to gmail smtp 2014-11-18

    All I want to do is something simple: I have a Perl script that takes data from a web form, structures the data into an email, and sends me the email. The Perl script is written, it works, no problem. My problem is configuring postfix to send the mai

  • Telnet service 2015-02-03

    i started my telnet service ,within linux i can use the telnet service,but my friend who using windows os can't connet to telnet .please help me.

  • Ubuntu PyGtk vte terminal emulator, executing a child_feed 2014-07-31

    So I an app that uses python-vte, Virtual Terminal Emulator. Everything works fine until I want to telnet and execute a command. I can easily telnet, and I can easily feed the telnet a command. For example "help". I just can't execute it. I read thro

  • How to find a machine acts as mail server? 2015-02-26

    I want to know whether a machine (say ip: is mail server or not? How to know that...any commands like ps or pgrep or ping or telnet will help me? Please help me.

  • HELP to find telnet source code 2012-02-18

    i want telnet source code but written with Borland C++ not visual C as i want to use it in my research i found putty but it written with VC++ and i found another one but with no authentication could anyone help me

  • HELP Using telnet command in shell script 2012-03-21

    I want to test connectivity between different servers using telnet. I have Name,IP List and port in one file. Please help how i can test connectivity is successful or not? File format will be: Name1,,80 Name2,,8080 Output could be N

  • Ubuntu Help! unable to install ssh or telnet server 2012-06-22

    Just did a fresh install with Ubuntu desktop 7.1, trying to enable ssh or telnet server so I can remotely manage it.. (btw, I know telnet is not secure but I need it to verify other protocols.). This is ridiculous that I can't find a clear answer eve

  • Ubuntu Need some help here - Telnet 2012-07-08

    guys, need some help with a telnet issue. Full description of the issue is here: PS: Feedback from anyone with experience in administering Alcatel switches is very valued! KR, Harald

  • Help: how to configure telnet server on linux 2012-08-25

    I have linux on my home desktop. I wanted to access it thru my laptop remotely basically thru my LAN. But I don't know how to configure telnet server on linux. Can anyone help me doing this. Specifications of linux version. Redhat linux 7.1

  • Ubuntu need help with telnet/ssh connecting 2012-08-31

    Hi, and thanks for taking the time to read my post. I am writing this from a PC running Ubuntu Breezy. I also have a computer running Fedora FC4, which functions as a music and file server (a backup machine). I also have several Windows PCs networked

  • Help installing gd via telnet 2012-11-05

    Ok, I am trying to install gd ( URL )to my webserver via telnet access (running on FreeBSD 4.4) but I am not familiar with this OS at all. I do not run/pay for the server, but the guy that does is never around (so I'm unable to ask him), so I was ref

  • HELP about TELNET 2012-11-05

    I want to use telnet but I want to auto login on Windows platform I tried telnet://username:[email protected] port but it did not work. Can I use a script that automaticly enters the username and password. If anyboy can help me I would be pleased