A question for Mr. Rao

A question for Mr. Rao

Postby Armando » Fri Aug 16, 2019 2:42 am

Mr Rao:

Why this code does not work (There is not conection)

Code: Select all  Expand view  RUN

FWCONNECT oCn HOST "localhost" USER "root" PASSWORD "secret" DB "AppSap"
 


But this one yes (There is conection)

Code: Select all  Expand view  RUN

FWCONNECT oCn HOST "192.178.100.3" USER "root" PASSWORD "secret" DB "AppSap"
 


The only diference is the host name.

Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3229
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: A question for Mr. Rao

Postby joseluisysturiz » Fri Aug 16, 2019 1:23 pm

Armando wrote:Mr Rao:

Why this code does not work (There is not conection)

Code: Select all  Expand view  RUN

FWCONNECT oCn HOST "localhost" USER "root" PASSWORD "secret" DB "AppSap"
 


But this one yes (There is conection)

Code: Select all  Expand view  RUN

FWCONNECT oCn HOST "192.178.100.3" USER "root" PASSWORD "secret" DB "AppSap"
 


The only diference is the host name.

Regards


Armando no soy Mr.Rao, pero para localhost prueba con 127.0.0.1, saludos, gracias... :shock:
Dios no está muerto...

Gracias a mi Dios ante todo!
User avatar
joseluisysturiz
 
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela

Re: A question for Mr. Rao

Postby Armando » Fri Aug 16, 2019 2:39 pm

José Luis:

También funciona, muchas gracias.

Solo queda la incógnita, por que con localhost no?

Saludos
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3229
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: A question for Mr. Rao

Postby anserkk » Sat Aug 17, 2019 5:38 am

Armando wrote:José Luis:

También funciona, muchas gracias.

Solo queda la incógnita, por que con localhost no?

Saludos


Check your hosts file in the path \Windows\system32\drivers\etc
User avatar
anserkk
 
Posts: 1333
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: A question for Mr. Rao

Postby Armando » Sat Aug 17, 2019 3:46 pm

anserkk:

Thanks for your answer.

I made the change as follow but there is no way.

Code: Select all  Expand view  RUN

# localhost name resolution is handled within DNS itself.
    127.0.0.1       localhost
#   ::1             localhost
 


Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3229
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: A question for Mr. Rao

Postby anserkk » Tue Aug 20, 2019 4:19 am

You said that it is working fine if you try 127.0.0.1 instead of localhost, right ?

Can I get the exact error message that you get when you try to connect to localhost ?

There are few possibilities for this issue, based on the error we shall try to identify the problem
User avatar
anserkk
 
Posts: 1333
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: A question for Mr. Rao

Postby Armando » Tue Aug 20, 2019 2:58 pm

anserkk:

You said that it is working fine if you try 127.0.0.1 instead of localhost, right ?
Yes that's right.

The message is

2003
Can't connect to MySQL server on 'localhost' (10061)

Thanks for your help

Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3229
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: A question for Mr. Rao

Postby anserkk » Wed Aug 21, 2019 12:40 pm

What is the value of the entry
bind-address
in my.cnf (in case your OS is linux) or my.ini

Is that uncommented or commented?

The users in the DB ?
Image
User avatar
anserkk
 
Posts: 1333
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: A question for Mr. Rao

Postby Armando » Wed Aug 21, 2019 2:30 pm

anserkk:

There is no bind-address entry in mysql.ini (I have windows 10)
and the users is

root localhost

Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3229
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 91 guests