Busqueda sobre Linux y software libre

Noticias sobre linux y software libre - Google 

MySQL - workbench no se conecta en Ubuntu

Pregunta


Les comento que estoy probando mysql-workbench

-instale una version para ubuntu 10.04 el cual no me funciono
-compilé y vuelvo a intentar conectarme a mysql pero nada y me sale el
siguiente error:

Cannot Connect to Database Server
Your connection attempt failed for user 'root' from your host to server at
127.0.0.1:3306:
  Access denied for user 'root'@'localhost' (using password: YES)

Please:
1 Check that mysql is running on server 127.0.0.1
2 Check that mysql is running on port 3306 (note: 3306 is the default, but
this can be changed)
3 Check the root has rights to connect to 127.0.0.1 from your address
(mysql rights define what clients can connect to the server and from which
machines)
4 Make sure you are both providing a password if needed and using the
correct password for 127.0.0.1 connecting from the host address you're
connecting from

he probado los siguientes:
netstat -tanp |grep 3306
sudo ps -eF | grep mysql
mysqladmin -u root -p version
dpkg -l |grep mysql

al parecer tengo las versiones adecuadas
puedo conectarme desde mysql-administrator y query-browser
y la pregunta es donde configuro que clientes se pueden conectar a mysql?

lo que sigue es las salidas de los comandos ejecutados:
---------------------------------------------------------------------------------------------------------------------------------
netstat -tanp |grep 3306

mysqladmin -u root -p version
Enter password:
mysqladmin  Ver 8.42 Distrib 5.1.49, for debian-linux-gnu on i486
Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version        5.1.49-3
Protocol version    10
Connection        Localhost via UNIX socket
UNIX socket        /var/run/mysqld/mysqld.sock
Uptime:            1 hour 6 min 26 sec

Threads: 2  Questions: 579  Slow queries: 0  Opens: 59  Flush tables: 1
Open tables: 51  Queries per second avg: 0.145

sudo ps -eF | grep mysql
[sudo] password for ghaspaer:
root      2111     1  0   437   544   0 17:19 ?        00:00:00 /bin/sh
/usr/bin/mysqld_safe
mysql     2270  2111  0 34439 18900   1 17:19 ?        00:00:01
/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql
--pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock
--port=3306
root      2271  2111  0   418   540   0 17:19 ?        00:00:00 logger -t
mysqld -p daemon.error
ghaspaer  3489     1  0  1100  1236   0 17:28 ?        00:00:00 /bin/bash
/usr/local/bin/mysql-workbench
ghaspaer  3493  3489  0   437   516   1 17:28 ?        00:00:00 /bin/sh
/usr/bin/catchsegv /usr/local/bin/mysql-workbench-bin
ghaspaer  3495  3493  1 57905 70396   0 17:28 ?        00:00:51
/usr/local/bin/mysql-workbench-bin
ghaspaer  3555  3074  0   447   540   1 17:30 pts/1    00:00:00 /bin/sh
/home/ghaspaer/.mysql/workbench/delme.KOQEe1
ghaspaer  3592  3557  0  2109  2988   1 17:30 pts/1    00:00:00 mysql -u
root -p
ghaspaer  4659  4162  0   899   832   0 18:26 pts/2    00:00:00 grep mysql

mysqladmin -u root -p version
Enter password:
mysqladmin  Ver 8.42 Distrib 5.1.49, for debian-linux-gnu on i486
Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version        5.1.49-3
Protocol version    10
Connection        Localhost via UNIX socket
UNIX socket        /var/run/mysqld/mysqld.sock
Uptime:            1 hour 7 min 48 sec

Threads: 2  Questions: 580  Slow queries: 0  Opens: 59  Flush tables: 1
Open tables: 51  Queries per second avg: 0.142

dpkg -l |grep mysql
ii  gambas2-gb-db-mysql
2.21.0-2                               The MySQL driver for the Gambas
database component
ii  libdbd-mysql-perl
4.016-1                                Perl5 database interface to the
MySQL database
ii  libmysqlclient-dev
5.1.49-3                               MySQL database development files
ii  libmysqlclient16
5.1.49-3                               MySQL database client library
ii  libqt4-sql-mysql
4:4.6.3-4+squeeze1                     Qt 4 MySQL database driver
ii  mysql-admin
5.0r14+openSUSE-2.1                    GUI tool for intuitive MySQL
administration
ii  mysql-client
5.1.49-3                               MySQL database client (metapackage
depending on the latest version)
ii  mysql-client-5.1
5.1.49-3                               MySQL database client binaries
ii  mysql-common
5.1.49-3                               MySQL database common files, e.g.
/etc/mysql/my.cnf
ii  mysql-gui-tools-common
5.0r14+openSUSE-2.1                    Architecture independent files for
MySQL GUI Tools
ii  mysql-navigator
1.4.2-12+b1                            GUI client program for MySQL
database server
ii  mysql-query-browser
5.0r14+openSUSE-2.1                    Official GUI tool to query MySQL
database
ii  mysql-server
5.1.49-3                               MySQL database server (metapackage
depending on the latest version)
ii  mysql-server-5.1
5.1.49-3                               MySQL database server binaries and
system database setup
ii  mysql-server-core-5.1
5.1.49-3                               MySQL database server binaries
ii  php5-mysql


Respuesta

Te esta pidiendo contrasena del root


Otra respuesta

Mysql suele bloquear por defecto las conexiones externas.
Prueba comentado "skip-networking" en el archivo my.cnf

PgAdmin 3 1.10.5 no funciona

Pregunta

Estoy teniendo un error que me muestra el siguiente mensaje Cuando intento

crear una nueva BD desde pgAdmin3:
-------------------------------------------------
Ha ocurrido un error:

ERROR:  no existe la columna «datconfig»
LÍNEA 1: ...b.dattablespace AS spcoid, spcname, datallowconn, datconfig,...
---------------------------------------------------


-tengo instalado los siguientes:
---------------------------------------------------------------------
ii  gambas2-gb-db-postgresql       2.21.0-2         The PostgreSQL driver
for the Gambas database component
ii  postgresql-9.1                 9.1.1-1~bpo60+1  object-relational SQL
database, version 9.1 server
ii  postgresql-client-9.1          9.1.1-1~bpo60+1  front-end programs for
PostgreSQL 9.1
ii  postgresql-client-common       124~bpo60+1      manager for multiple
PostgreSQL client versions
ii  postgresql-common              124~bpo60+1      PostgreSQL
database-cluster manager
ii  postgresql-contrib-9.1         9.1.1-1~bpo60+1  additional facilities
for PostgreSQL
ii  pgadmin3                       1.10.5-1         graphical
administration tool for PostgreSQL
ii  pgadmin3-data                  1.10.5-1         graphical
administration tool for PostgreSQL - documentation
----------------------------------------------------------------------------
Tambien probe por consola hice los siguiente:
------------------------------------------------------------------------------

postgres en squezee:/home/ghaspaer$psql -U postgres -W

postgres=#_

vim /etc/postgresql/9.1/main/postgresql.conf

fsync = on
#listen_addresses='localhost'
listen_addresses='*'

postgres en squezee:/home/ghaspaer$ createdb MyTest
postgres en squezee:/home/ghaspaer$ psql MyTest
psql (9.1.0)
Digite «help» para obtener ayuda.

MyTest=#

MyTest-# CREATE TABLE libros (id_libro int,nombre varchar)
MyTest=# INSERT INTO libros VALUES (1,'gunchelo');
MyTest=# SELECT * FROM libros;
 id_libro |  nombre
----------+----------
        1 | gunchelo
(1 fila)

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


desde ya muchas gracias por ayuda me pudieran dar ... XD

Respuesta

Un primer problema podría ser la versión de pgadmin3, creo que era
compatible con la versión 8.4.x de postgresql. Y la otra podría ser
que te falta algún paquete de pgadmin3.

TOAD para MySQL para Linux

Pregunta


una ayudita amigos les cuento que tengo que exponer sobre este tema "TOAD for Mysql on windows" pero me gustaria "TOAD for Mysql on linux" no se si
alguien tiene experiencia sobre alguna herramienta tipo TOAD for oracle(
http://adf.ly/1ey21V ) que tambien pueda sacarse el diagrama fisico de
la BD etc...


Respuesta


Una opción puede ser MySQL WorkBench


Otra Respuesta

Tora [1]  fue muy popular un tiempo, me gusta mas Aqua Data Studio [2](No es
FOSS segun entendi pero es el emjor que he probado en entornos *Nix), pero
si quiere aprender a administrar bien una base de datos lo mejor es por
consola, comandos y SQL.

Para sacar un diagrama de tablas y sus relaciones sugiero SQL Power
Architect [3]

Éxitos.

[1] http://en.wikipedia.org/wiki/TOra
[2] http://adf.ly/1ey233
[3] http://adf.ly/1ey24X

Cómo encontrar un paquete en Ubuntu

Pregunta

Lo que queria consultar es como encuentro x paquete que no tengo en el

source.list

por ejemplo queria instalar los siguientes paquetes:

*apt-get install portmap*

*apt-get install unfs3*

*apt-get install nfs-user-server*

*apt-get install nfs-kernel-server
*


**

*pero no encuentro algunos de estos por ejemplo **nfs-user-server  la
pregunta es: Como encuentro en que repo esta ese paquete que estoy buscando
para agregarlo a mi source.list*

Respuesta

Evita mesclar repositorios, especialmente de paquetes del sistema.

Como sea: El paquete que mencionas ya no existe. ¿Cómo lo sé? Bueno,
primero:

  http://adf.ly/1ey1v6

El paquete existe, pero sólo en oldstable (5.0-Lenny, la versión
estable aprox. durante 2009-2011). Entonces, en mi computadora que
está corriendo Squeeze (estable actual) debo poder preguntar por él,
¿no? Bien, veamos:

$ apt-cache search nfs-user-server
nfs-kernel-server - support for NFS kernel server

Entonces, el paquete nfs-kernel-server sabe *algo* del que
buscas. ¿Qué es lo que sabe?

$ apt-cache show nfs-kernel-server 
Package: nfs-kernel-server
Priority: optional
Section: net
Installed-Size: 380
Maintainer: Debian kernel team <debian-kernel en lists.debian.org>
Architecture: i386
Source: nfs-utils
Version: 1:1.2.2-4
Replaces: knfs, nfs-server
Provides: knfs, nfs-server
Depends: libblkid1 (>= 2.16), libc6 (>= 2.3), libcomerr2 (>= 1.01), libgssapi-krb5-2 (>= 1.6.dfsg.2), libgssglue1, libk5crypto3 (>= 1.6.dfsg.2), libkrb5-3 (>= 1.6.dfsg.2), libnfsidmap2, librpcsecgss3, libwrap0 (>= 7.6-4~), nfs-common (= 1:1.2.2-4), ucf, lsb-base (>= 1.3-9ubuntu3)
Conflicts: knfs, nfs-server
Filename: pool/main/n/nfs-utils/nfs-kernel-server_1.2.2-4_i386.deb
Size: 158932
MD5sum: 6b920b1c121a9a4d670f53bc3dc230fe
SHA1: d6d64f13302c4f0fe7e655514f19a34dd6e1bf9f
SHA256: d15aca0ac5e6ce65e16d27d19ca9afb2fe42c6e20ddf33e7e9e380c975dbc734
Description: support for NFS kernel server
 The NFS kernel server is currently the recommended NFS server for use
 with Linux, featuring features such as NFSv3 and NFSv4, Kerberos
 support via GSS, and much more. It is also significantly faster and
 usually more reliable than the user-space NFS servers (from the
 unfs3 and nfs-user-server packages). However, it is more difficult to
 debug than the user-space servers, and has a slightly different
 feature set.
 .
 This package contains the user-space support needed to use the
 NFS kernel server. Most administrators wishing to set up an NFS server
 would want to install this package.
Homepage: http://nfs.sourceforge.net/
Tag: admin::kernel, implemented-in::c, interface::daemon, network::server, protocol::kerberos, protocol::nfs, qa::old-rc-bugs, role::program
Task: file-server

En la descripción menciona que este paquete es significativamente más
rápido y confiable que nfs-user-server, aunque un poco más dificil de
depurar.

Ahora, ¿por qué desapareció tu paquete? Cosa de echar un pequeño
clavado entre tu motor favorito de búsqueda y bugs.debian.org, y llego
a:

http://adf.ly/1ey1yB

El mantenedor solicitó que se eliminara el paquete porque su
desarrollo está muerto y el paquete "unfs3" cubre la funcionalidad.

Error al copiar por SSH un archivo de Ubuntu a Debian

Pregunta

Sucede que quiero copiar por ssh un archivo de una maquina ubuntu 11.04 a

una debian 6.0.2 pero me sale el siguiente error:

$scp -r richard/ ghaspaer en 192.168.1.78:
 _,met$$$$$gg.

y luego las letras de la consola se ponen rojas,  ya probé haciendo:
-ping,
-/etc/init.d/ssh is running,
-
openssh-server openssh-client instalados,
-puedo conectarme con ssh desde cualquiera
-puedo copiar desde debian a ubuntu por ssh
-probé también:
root en Gunche:/home/gcc/z# scp -rv richard/ ghaspaer en 192.168.1.78:
Executing: program /usr/bin/ssh host 192.168.1.78, user ghaspaer, command
scp -v -r -t -- .
OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.1.78 [192.168.1.78] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1
Debian-6
debug1: match: OpenSSH_5.5p1 Debian-6 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.8p1 Debian-1ubuntu3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 81:60:98:d5:3b:df:7c:08:84:e6:3f:40:ec:6c:57:86
debug1: Host '192.168.1.78' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Trying private key: /root/.ssh/id_ecdsa
debug1: Next authentication method: password
ghaspaer en 192.168.1.78's password:
debug1: Authentication succeeded (password).
Authenticated to 192.168.1.78 ([192.168.1.78]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions en openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = es_BO.UTF-8
debug1: Sending command: scp -v -r -t -- .
          _,met$$$$$gg.
root en Gunche:/home/gcc/z# debug1: client_input_channel_req: channel 0 rtype
exit-signal reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 1856, received 3112 bytes, in 0.0 seconds
Bytes per second: sent 41071.9, received 68866.3
debug1: Exit status -1

no se que mas probar ...

Respuesta

http://adf.ly/1ey1sK

Esto puede que no ayude, pero _,met$$$$$gg. es parte del ASCII-Art de Debian:

echo -e "$c7       _,met\$\$\$\$\$gg."
echo -e "$c7    ,g\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$P."
echo -e "$c7  ,g\$\$P\"\"       \"\"\"Y\$\$.\"."
echo -e "$c7 ,\$\$P'              \`\$\$\$."
echo -e "$c7',\$\$P       ,ggs.     \`\$\$b:"
echo -e "$c7\`d\$\$'     ,\$P\"\'   $c6.$c7    \$\$\$"
echo -e "$c7 \$\$P      d\$\'     $c6,$c7    \$\$P"
echo -e "$c7 \$\$:      \$\$.   $c6-$c7    ,d\$\$'"
echo -e "$c7 \$\$\;      Y\$b._   _,d\$P'"
echo -e "$c7 Y\$\$.    $c6\`.$c7\`\"Y\$\$\$\$P\"'"
echo -e "$c7 \`\$\$b      $c6\"-.__"
echo -e "$c7  \`Y\$\$"
echo -e "$c7   \`Y\$\$."
echo -e "$c7     \`\$\$b."
echo -e "$c7       \`Y\$\$b."
echo -e "$c7          \`\"Y\$b._"
echo -e "$c7              \`\"\"\"\""$c0
echo " "
echo " "

¿No sería que screenfetch esta afectando a scp?
¿Qu'e tal si lo desinstalas?

Otra respuesta

Hola tuve un problema parecido entre una lenovo 10s y otros equipos

luego di con la solución googleando
creo que con

 sudo ethtool -K eth0 gso off
no encuentro el mismo post
pero encontre varios con esta y otra solución
sudo ethtool -K eth0 tx off rx off

prueba antes ejecutando 

sudo ethtool -k eth0
para que veas los valores actuales

Ads by CJ - Linux Foundation

Share This