Tente conectar-se com algo como um script em Perl, PHP ou o próprio shell do mysql: mysq --user==usuario --password=senha --host=127.0.0.1 database
OBS: ao criar o usuário foi garantido à ele o direito de logar de qualquer lugar? isto é feito com um %... On 1/4/06, cleber da silva <[EMAIL PROTECTED]> wrote: > instalei um server com mysql-server-4.1, preciso fazer > conexão remota ao server para fazer alterações nas > bases dados (incluir dados, apagar, etc), para testar > os aplicativos. Estou utilizando para essas conexões o > mysqlcc no windows e o DbVisualizer > http://www.dbvis.com no linux (Debian Sarge 3.1). > Tenho um outro server com a versão 3.23 e outro 4.0, > faço as conexões normalmente, porém, com o 4.1, apesar > de ja ter usado o comando grant, não consigo conecta. > No mysqlcc essa é a mensagem que aparece: [tornado] > ERROR 2003: Can't connect to MySQL server on > '192.168.2.1' (10061) > > No DbVisualizer é essa (esse erro copiei de uma > máquina windows, mas é o mesmo em máquinas linux): > An error occured while establishing the connection. > Type: com.mysql.jdbc.CommunicationsException Error > Code: 0 SQL State: 08S01 > Message: > Communications link failure due to underlying > exception: > ** BEGIN NESTED EXCEPTION ** > java.net.SocketException > MESSAGE: java.net.ConnectException: Connection > refused: connect > STACKTRACE: > java.net.SocketException: java.net.ConnectException: > Connection refused: connect > at > com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156) > at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284) > at > com.mysql.jdbc.Connection.createNewIO(Connection.java:2555) > at > com.mysql.jdbc.Connection.<init>(Connection.java:1485) > at > com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) > at java.sql.DriverManager.getConnection(Unknown > Source) > at java.sql.DriverManager.getConnection(Unknown > Source) > at > com.onseven.dbvis.wrapper.DriverManagerImpl.getConnection(Unknown > Source) > at com.onseven.dbvis.sql.O.Ĭ(Unknown Source) > at com.onseven.dbvis.sql.O.access$000(Unknown Source) > at com.onseven.dbvis.sql.O$A.execute(Unknown Source) > at > se.pureit.util.ThreadCommand.runExecute(ThreadCommand.java:163) > at > se.pureit.util.ThreadCommand.run(ThreadCommand.java:143) > at java.lang.Thread.run(Unknown Source) > ** END NESTED EXCEPTION ** > Last packet sent to the server was 0 ms ago. > > Se alguém já passou por algo semelhante, e puder me > ajudar, agradeço. > > __ > Cleber > > > > > > > > > _______________________________________________________ > Yahoo! doce lar. Faça do Yahoo! sua homepage. > http://br.yahoo.com/homepageset.html > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- Maxwillian Miorim - LPIC1 (LPID 85928) [EMAIL PROTECTED] Alive and slacking! - Slackware 10.2