[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re[4]: MySQL



El sáb, 08-06-2002 a las 06:48, Fredy escribió:
> Bufff... estoy cansado de pelearme con esto del MySQL y eso que solo
> quiero hacerlo andar, pero nada... no hay manera no responde ni
> siquiera a un version:
> 
> Starting MySQL database server: mysqld.
> nevenka:/home/fredy# mysqladmin version
> mysqladmin: connect to server at 'localhost' failed
> error: 'Access denied for user: 'root@localhost' (Using password: NO)'
> 

a ver... si no le pasas el parámetro '-p', mysql entiende que _NO_
necesitas password, y por eso _NO_ te lo pide. Sin embargo, si el
usuario root@localhost sí tiene password, falla la autentificación.

Deberías hacer mysqladmin -p --user=root (independientemente del usuario
que seas en la máquina)


> Tras ver si realmente tengo el servidor rulando...
> 
> nevenka:/home/fredy# ps -A u | grep mysql
> 
> root       173  0.0  0.4  2180 1084 ?        S    05:19   0:00 sh /usr/bin/safe_mysqld
> 
> mysql      226  0.1  1.7 36488 4492 ?        S    05:19   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking
> 
> mysql      230  0.0  1.7 36488 4492 ?        S    05:19   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking
> 
> mysql      231  0.0  1.7 36488 4492 ?        S    05:19   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking
> 
> mysql      232  0.0  1.7 36488 4492 ?        S    05:19   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking
> 
> root       270  0.0  0.1  1332  424 pts/0    S    05:22   0:00 grep mysql
> 
> 

ok, todo funciona


> Creo que si, de hecho he vuelto a hacer un dpkg-reconfigure
> mysql-server y en el programilla de configuracion me avisa de lo
> siguiente:
> 
> 
> security and update notice                                               #
>   ¦                                                                          ¦
>   ¦ MySQL will only install if you have a NON-NUMERIC hostname that is       ¦
>   ¦ resolvable via the /etc/hosts file. E.g. if the "hostname" command       ¦
>   ¦ returns "myhostname" then there must be a line like "127.0.0.1           ¦
>   ¦ myhostname".                                                             ¦
>   ¦                                                                          ¦
>   ¦ A new mysql user "debian-sys-maint" will be created. He is used in the   ¦
>   ¦ start/stop and cron scripts. Don't delete him.                           ¦
>   ¦                                                                          ¦
>   ¦ Please remember to set a PASSWORD for the MySQL root user! If you use a  ¦
>   ¦ /root/.my.cnf, always write the "user" and the "password" lines in       ¦
>   ¦ there, never only the password! See                                      ¦
>   ¦ /usr/share/doc/mysql-server/README.Debian for more information.
> 
> 
> Leyendo detenidamente me doy cuenta que quizás el fallo esté en
> /etc/hosts pero tal y como dice ejecuto un hostname y me sale que el
> nombre es nevenka y en el /etc/hosts tengo puesto lo siguiente:
> 
> 127.0.0.1       localhost       nevenka
> 172.26.0.3      localhost       nevenka
> 

eso es una _MUY MALA_ idea...
si yo quiero saber qué ip tiene nevenka, cual me devuelve?
si yo quiero saber cual es la ip de localhost, cual me devuelve?

debería ser algo así:

127.0.0.1       localhost
172.26.0.3      nevenka

al fin y al cabo, para eso tienes _DOS_ interfaces de red, eth0 y lo

> Vamos creo que está bien tal y como dicen esas instrucciones pero no
> hay tu tia... parece que arrancar arranca el servidor pero no responde
> a un version ni a nada... realmente creo que el problema está en el
> propio servidor que no se inicia bien o algo así... aunque despues de
> haber hecho un dpkg-reconfigure mysql-server y de dejarlo todo como
> nuevo sigue dando el mismo error y yo ya no se ni que pensar... o el
> mysql me la tiene jurada o no entiendo...
> 

el problema es que todavía no te aclaras como funciona internamente el
servidor :-)  pero yo te prometo que funcionar, funciona bien :-P

> #
> # The skip-networkin option will no longer be set via debconf menu.
> # You have to manually change it if you want networking i.e. the server
> # listening on port 3306. The default is "disable" - for security reasons.
> skip-networking
    ^^^^^ 

te dije que comentaras esta línea ---> "#skip-networking"

> set-variable    = key_buffer=16M
> set-variable    = max_allowed_packet=1M
> set-variable    = thread_stack=128K


:-PPP



-- 
(Firma en huelga)


--
To UNSUBSCRIBE, email to debian-user-spanish-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: