473,378 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Bad request on invalid hostname

102 100+
when i write http;//localhost on my browser.. it come out bad request on invalid hostname... just these 4 words... i have no idea of wath is the error..

so i write mysqladmin -h 'localhost' version into my cmm prompt

it said error "unknown mysql server host' localhost <11004>
check mysqld is running on the port by doing telnet' localhost' 3306..

how to do that...???
Jun 12 '07 #1
21 5214
r035198x
13,262 8TB
when i write http;//localhost on my browser.. it come out bad request on invalid hostname... just these 4 words... i have no idea of wath is the error..

so i write mysqladmin -h 'localhost' version into my cmm prompt

it said error "unknown mysql server host' localhost <11004>
check mysqld is running on the port by doing telnet' localhost' 3306..

how to do that...???
try http://localhost instead of http;//localhost
Jun 12 '07 #2
lyealain
102 100+
try http://localhost instead of http;//localhost

sorry ...hahaa.. mistake.. that should be http://localhost.. but why it still cannot.. can i just uninstall the mysql 4.1... while leave the rest ODBC and mysq-gui5.0.. ?? can they still functioning after i reinstall mysql 4.1?? the server has data in its database.. i think one of the bastard here has changed my server IP address..
Jun 12 '07 #3
r035198x
13,262 8TB
sorry ...hahaa.. mistake.. that should be http://localhost.. but why it still cannot.. can i just uninstall the mysql 4.1... while leave the rest ODBC and mysq-gui5.0.. ?? can they still functioning after i reinstall mysql 4.1?? the server has data in its database.. i think one of the bastard here has changed my server IP address..
Uninstall should really be the last option. Did you try http://localhost:portNo,
with portNo replaced by your port number?
Jun 12 '07 #4
lyealain
102 100+
Uninstall should really be the last option. Did you try http://localhost:portNo,
with portNo replaced by your port number?
GREAT!!!!!!!!!!!!!
IT HAPPENED!!!!!!!! huhhhh... i put http:// IPaddress:3306/Folder/Login.asp.....
but if just http:// IPaddress/Folder/Login.asp it stated : error.. URL could not be retrieved.. STRANGE??

also when i access the the one with 3306... i cant login... it let me wait like hell.

i checked thru the IIS properties and the IPCONFIG.. the default website is running on the previous IP address.. someone has made a static IP in my server.. which is good.. but ...cos me problem..

i have changed that ip address at the IIS to my current IP address.. but sitll cannot... do i need to change the IP in mysql 4.1.. mysql-ODBC...and mysql tools 5.0 as well?????? but i cant find any
Jun 12 '07 #5
r035198x
13,262 8TB
GREAT!!!!!!!!!!!!!
IT HAPPENED!!!!!!!! huhhhh... i put http:// IPaddress:3306/Folder/Login.asp.....
but if just http:// IPaddress/Folder/Login.asp it stated : error.. URL could not be retrieved.. STRANGE??

also when i access the the one with 3306... i cant login... it let me wait like hell.

i checked thru the IIS properties and the IPCONFIG.. the default website is running on the previous IP address.. someone has made a static IP in my server.. which is good.. but ...cos me problem..

i have changed that ip address at the IIS to my current IP address.. but sitll cannot... do i need to change the IP in mysql 4.1.. mysql-ODBC...and mysql tools 5.0 as well?????? but i cant find any
The change of ip should not be a problem because you are accessing from that same machine (localhost). Try restarting IIS.
Jun 12 '07 #6
lyealain
102 100+
The change of ip should not be a problem because you are accessing from that same machine (localhost). Try restarting IIS.
thanks for the reply...

i have tried that many times lee... IP not playing part in this problem... ? then what can be the problem./// i can access the page with the port specified 3306 in the address.. but cannot connect to the database..

before that #$#&&# changed my IP address.. i can use mysql -u root -ppassword to log in... now cannot connect anymore

when i write mysqladmin -h localhost version..... it said it cannot connect to the localhost.. ask me to check the the port by using telnet localhost 3306 waht the $*#&$(*&# hahahaha....thanks
Jun 12 '07 #7
lyealain
102 100+
hi ... i have reinstall all my application.. hahhaa.. sorry..

now when i write http://localhost:3306
it said the page not found...
i still cannot access to the page i want with http://IP address/ folder/ file.asp ..

but i can connect to the database.. pls help
Jun 13 '07 #8
r035198x
13,262 8TB
hi ... i have reinstall all my application.. hahhaa.. sorry..

now when i write http://localhost:3306
it said the page not found...
i still cannot access to the page i want with http://IP address/ folder/ file.asp ..

but i can connect to the database.. pls help
Which page are you expecting to get? Which error do you get when you use the IP?
Jun 13 '07 #9
lyealain
102 100+
thanks.. i finally can see my log in page(front page).. but..when i enter password to log in.. it say "page cannot be displayed" ..it cannot get the data from my database.....

i write http://localhost:3306
it state "the page cannot be display"


in IIS the TCP port for my default website is 80...
in mysql server the port is 3306(default)

are they must be the same???
i changed them to be the same.. but when i restart IIS and mysql.. it is fine... but the default project in IIS is never running.. " stated cannot acccess the file because is being used by other process"

surely my database cannot connect to the port..

when i log in to the database .. i can see all my database tables and data..i had inserted that .sql and execute it.. it work fine..

pls help .. i am almost there...
Jun 13 '07 #10
r035198x
13,262 8TB
thanks.. i finally can see my log in page(front page).. but..when i enter password to log in.. it say "page cannot be displayed" ..it cannot get the data from my database.....

i write http://localhost:3306
it state "the page cannot be display"


in IIS the TCP port for my default website is 80...
in mysql server the port is 3306(default)

are they must be the same???
i changed them to be the same.. but when i restart IIS and mysql.. it is fine... but the default project in IIS is never running.. " stated cannot acccess the file because is being used by other process"

surely my database cannot connect to the port..

when i log in to the database .. i can see all my database tables and data..i had inserted that .sql and execute it.. it work fine..

pls help .. i am almost there...
Don't make those ports the same. You are not supposed to be connecting to 3360 but to your project on 8080? or whatever it is. Do that when you log in post the error that you get.
Jun 13 '07 #11
lyealain
102 100+
Don't make those ports the same. You are not supposed to be connecting to 3360 but to your project on 8080? or whatever it is. Do that when you log in post the error that you get.
my server port is 3306... since when we have 8080 and 3360 .. sorry i am a beginner.. i can see my login page... but when i log in.. below is the output..

-=---------------------------------------------------------------------------------------------------------
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.


Please try the following:

Open the 172.24.163.243 home page, and then look for links to the information you want.
Click the Refresh button, or try again later.

Click Search to look for information on the Internet.
You can also see a list of related sites.


HTTP 500 - Internal server error
Internet Explorer

-------------------------------------------------------------------------------------------------------------------
Jun 13 '07 #12
r035198x
13,262 8TB
my server port is 3306... since when we have 8080 and 3360 .. sorry i am a beginner.. i can see my login page... but when i log in.. below is the output..

-=---------------------------------------------------------------------------------------------------------
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.


Please try the following:

Open the 172.24.163.243 home page, and then look for links to the information you want.
Click the Refresh button, or try again later.

Click Search to look for information on the Internet.
You can also see a list of related sites.


HTTP 500 - Internal server error
Internet Explorer

-------------------------------------------------------------------------------------------------------------------

If your log in page is part of the application, then the application is running on the server because the log in page is running. After logging in, where are you supposed to be directed? Which language are you using to connect to the database?
Jun 13 '07 #13
lyealain
102 100+
ohhh my god.... i can use my retrieve password function.. the password was sent to my email....huhhh....it work fine with the database wooooo...

my front page is just the login module..
after that.. it will direct me to my main page...

i cant see my main page...

i am using asp script and vb....almost almost there... hahh
Jun 13 '07 #14
r035198x
13,262 8TB
ohhh my god.... i can use my retrieve password function.. the password was sent to my email....huhhh....it work fine with the database wooooo...

my front page is just the login module..
after that.. it will direct me to my main page...

i cant see my main page...

i am using asp script and vb....almost almost there... hahh
There could a problem with your log in module or with your front page.
Jun 13 '07 #15
lyealain
102 100+
ooooooo.. i forgot to export my database out....shit...

but in my previous backup mysql folder ...mysql/data....
there have my database folder.. .. can i just copy and paste into my current mysql/data folder??????there are a lot of .frm file inside that data folder

also .. in the msyql datafiles folder ... there contains of a ibdata1 file which got 800Mb of data inside... do i need to copy back to the current mysql datafiles folder... but there aleady got an new ibdata1 file after i reinstall.. what should i do
Jun 13 '07 #16
lyealain
102 100+
bro ... can i work by copy the previous ibdata into my current ibdata??????
Jun 13 '07 #17
r035198x
13,262 8TB
bro ... can i work by copy the previous ibdata into my current ibdata??????
I don't know about that. Maybe someone else here knows. Trying never hurts though ...
Jun 13 '07 #18
lyealain
102 100+
bro ... i really thank you for the effort that u had done to help me.. .i really appreciate that ..thanks .... but may i know your real name
hahaha... you are great man.. thanks....
Jun 13 '07 #19
r035198x
13,262 8TB
bro ... i really thank you for the effort that u had done to help me.. .i really appreciate that ..thanks .... but may i know your real name
hahaha... you are great man.. thanks....
Welcome. Wish I could have helped more.

You can call me r035198x.
Jun 13 '07 #20
lyealain
102 100+
Welcome. Wish I could have helped more.

You can call me r035198x.
hahaha.. thanks r035198...is this your phone numb or your ic ..hahahha.. anyway thanks r035198... how can i next time straight post the question to u?? is that possible? straight to your mail ?? do u know asp??
Jun 17 '07 #21
r035198x
13,262 8TB
hahaha.. thanks r035198...is this your phone numb or your ic ..hahahha.. anyway thanks r035198... how can i next time straight post the question to u?? is that possible? straight to your mail ?? do u know asp??
Well if it's a technical question, it has to go to the forums (says admin + site rules), If it's private you can use PM.
Jun 18 '07 #22

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Lukas Schnieper | last post by:
Hi How can i get the hostname of my Linux PC? I tried os.system('hostname') but i cant save the hostname in a variable like hostname = os.system('hostname') thanks Lukas Schnieper
2
by: K.M Jr | last post by:
Hi group, I usually don't code in C. I happened to write a piece of code that parses an input string of the form "host_name:XXXX" into host_name and XXXX. I would request the group to give me...
7
by: SevDer | last post by:
Do you have any idea why I am getting the following error? Invalid URI: The hostname could not be parsed. Inner stack trace at System.Uri.Parse() at System.Uri..ctor(String uriString, Boolean...
4
by: customerservice | last post by:
I have been tracking website traffic on my site www.grabbagvideo.com:84 and also https://www.grabbagvideo.com for a few weeks now. I am using the request.browser.crawler property in attempt to...
6
by: Eric Rechter | last post by:
Hi, I only want to display the provider name from a hostname, so I need to divide the string to take only de characters from after the before last dot. For example: ...
3
by: Mark Delaney | last post by:
When using the MS SQL 2005 JDBC driver, I now need to have the DNS name resolution to the client correctly set up. If not I get the following error: SQLState: 08S01 SQLError: 0 Message:...
0
by: 123456prakash | last post by:
hi , I have a doubt . I have a 5mb file on a server . I am downloading the file from my java application My application is NOT a web aplication I am using https connection to the sever My...
5
by: rpjanaka | last post by:
Hi all, I am using AJAX to submit a data from a web page, it is properly working on the local host (when test with the local machine it is ok).also when access from another machine the pages are...
4
by: ak121234 | last post by:
Hello, We have written a page which views correctly in Internet Explorer. As well, the page views ok for some of the other programmers on their machines in FireFox. The other programmers are...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.