Current time: 04-23-2024, 05:21 PM Hello There, Guest! (LoginRegister)


Post Reply 
acceso exterior de Mysql
Author Message
jakala Offline
Junior Member
*

Posts: 23
Joined: Oct 2008
Reputation: 0
Post: #1
acceso exterior de Mysql
buenas a todos:

estoy probando a acceder a un servidor que tengo montado con el ispcp, desde una utilidad llamada sqlyog (para gestion de bbdd). El asunto es que no consigo conectar.
he revisado este post y, aunque cambio los privilegios, reinicie los privilegios y el mysql, no consigo que conecte.
He probado a hacer un
Code:
telnet 192.168.1.10 3306

desde mi equipo y me dice que no hay conexion. Desde el servidor, miro con netstat -a y veo que no esta el puerto 3306. (192.168.1.10 se entiende que es la ip de mi server)
Tambien he probado, en la administracion, en la parte de configuraciones->puertos del servidor y he agregado dicho puerto... pero nada.
Alguien ha conseguido conectar desde fuera del servidor con mysql, SIN usar el phpmyadmin??? (que os veo, pillines.. Wink )

Nota: El asunto de intentarlo de esta manera es que tengo un volcado en .sql de un proyecto, y desde el phpmyadmin me dice que la carga es muy grande... ya se que puedo 'cortar' el archivo, pero me ha picado la curiosidad de intentarlo desde fuera... Tongue

Un saludo,

Jakala del Pantano
11-12-2008 05:14 AM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #2
RE: acceso exterior de Mysql
Entra en phpmyadmin y en el usuario root
abajo tienes las opciones de acceso donde elijes desde el servidor local o desde cualquier servidor, le marcas esa, le hace un flush a los privilegios por la consola reinicias mysql y ya tienes aceeso al 3306, yo uso navicat y va de escandalo.

Un saludo
11-12-2008 06:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #3
RE: acceso exterior de Mysql
grep bind-address /etc/mysql/my.cnf

/J
11-12-2008 09:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #4
RE: acceso exterior de Mysql
Hello

Thanks joximu, which is rare to see you posting in the forum of Spanish I am delighted that we follow in our problems

He must have configured the server to the mysql ip 127.0.0.1 and the launching of a telnet 192.168.1.10 and I think that is the reason for their lack of connection

------ Español
Si tienes configurado en el archivo my.cnf como acceso al servidor mysql 127.0.0.1 que sera los mas posible el telnet debes lanzarlo a 127.0.0.1 3306 no a 192.168.1.10 y debe de entrar sin problemas.


Un saludo
11-12-2008 09:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: acceso exterior de Mysql
Hi
(sorry, only english :-)

If he need mysql from external (eg. 192.168.1.20 -> 192.168.1.10) then deactivating the "bind-address" in my.cnf should do it.
If he only need access from the same machine, then better connect to 127.0.0.1.

I read "exterior" and thought he means really external... :-)

/J
11-12-2008 09:36 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #6
RE: acceso exterior de Mysql
No problem, I only speak Spanish, software translator fully understands your post.

I fully agree with mysql navicat and only hize changes in the console phpmyadmin in allowing access from any ip.

I have watched my my.cnf file and I have enabled the line
bind-address = 127.0.0.1

But job well externally.
For this reason I have a solution with which I am working well and I followed the steps to connect externally to the server mysql
11-12-2008 09:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #7
RE: acceso exterior de Mysql
El valor por defecto de MySQL es vinculante sólo a la ip 127.0.0.1, que impide el acceso del exterior.

Comentando la "bind-address" en línea my.cnf y reiniciar mysql mysql fuerza debe escuchar también a la dirección IP externa (192.168.1.10) ...

Espero que google se traduce así :-)

Cheers Joxi :-)
11-12-2008 09:53 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #8
RE: acceso exterior de Mysql
Yes, it is understood perfectly all, thank you very much, I know that that value sets the access to mysql only to the local machine,

Ohh forgive was watching another old mysql configuration and you have reason
Linea
bind-address = 127.0.0.1
No, in my configuration mysql


Thank you very much again for your help I hope to see your best help and advice through here once in a while
(This post was last modified: 11-12-2008 10:19 PM by kurgans.)
11-12-2008 10:03 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #9
RE: acceso exterior de Mysql
:-)

/J
11-12-2008 10:26 PM
Visit this user's website Find all posts by this user Quote this message in a reply
victor531 Offline
Junior Member
*

Posts: 167
Joined: Oct 2007
Reputation: 3
Post: #10
RE: acceso exterior de Mysql
(11-12-2008 10:26 PM)joximu Wrote:  :-)

/J

Joxi...

welcome to our forum....

feel free to come back any time, even if your posts are in english


Victor
11-13-2008 03:51 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)