Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-28-2012, 01:20 PM   PM User | #1
coolumanga
Regular Coder

 
Join Date: Sep 2010
Posts: 106
Thanks: 6
Thanked 0 Times in 0 Posts
coolumanga is an unknown quantity at this point
how to give Ip address with port no as host IP

i have ip address with port no like

120.1.1.1:443

when i use this ipwith port no as a hostIP Address in mysql it will not connecting

so how do i do this


plz help me
coolumanga is offline   Reply With Quote
Old 12-28-2012, 10:09 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,227
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Depends on *HOW* you are trying to connect.

Are you using PHP?

Or just a command line interface to MySQL?

Or what?

With old style PHP mysql_connect, your method should work.

With mysqli_connect, the port is specified separately.

With command line, you would use something like
Code:
mysql -uUSER -pPASSWORD -h120.1.1.1 -P443
So explain HOW you are trying to connect.

NOTE: Since 443 is probably a secure port, you may need to specify the --ssl option as well.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is online now   Reply With Quote
Old 12-29-2012, 03:34 AM   PM User | #3
coolumanga
Regular Coder

 
Join Date: Sep 2010
Posts: 106
Thanks: 6
Thanked 0 Times in 0 Posts
coolumanga is an unknown quantity at this point
Quote:
Originally Posted by Old Pedant View Post
Depends on *HOW* you are trying to connect.

Are you using PHP?

Or just a command line interface to MySQL?

Or what?

With old style PHP mysql_connect, your method should work.

With mysqli_connect, the port is specified separately.

With command line, you would use something like
Code:
mysql -uUSER -pPASSWORD -h120.1.1.1 -P443
So explain HOW you are trying to connect.

NOTE: Since 443 is probably a secure port, you may need to specify the --ssl option as well.

hear i`m going to use third party software navicat..

Ther in the navicat we have to give

Hostname /IP ADDRESS
Username
password

in there after giving ipaddress with port no it will give an error
coolumanga is offline   Reply With Quote
Old 12-29-2012, 08:51 PM   PM User | #4
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,227
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
http://www.navicat.com/manual/online...ual/index.html

That pretty clearly says that PORT is a separate setting from host name/ip address.

I don't use Navicat, but pretty clearly there *IS* a way to specify the port. Try playing around with "New Connection" and looking, for example, to see if there is an "options" button or property that you are missing.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is online now   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:18 AM.


Advertisement
Log in to turn off these ads.