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

Re[4]: MySQL



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)'

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


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

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...

A ver si a alguien se le ocurre alguna posible solucion, muchas
gracias de antemano y gracias a las personas que ya han intentado
ayudarme.

Mando también el archivo /etc/mysql/my.cnf por si acaso puede aportar
alguna pista...

Ahh uso Debian woody

-- 
Saludos,
 Fernando Cuesta - Fredy                            mailto:fredy@infinityarea.net
# You can copy this to one of:
# /etc/mysql/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /var/lib/mysql) or
# ~/.my.cnf to set user-specific options.
#
# One can use all long options that the program supports.
# Run the program with --help to get a list of available options

# This will be passed to all mysql clients
[client]
#password       = my_password
port            = 3306
socket          = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

[safe_mysqld]
err-log         = /var/log/mysql/mysql.err

[mysqld]
user            = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
#
# You can also put it into /var/log/mysql/mysql.log but I leave it in /var/log
# for backward compatibility. Both location gets rotated by the cronjob.
#log            = /var/log/mysql/mysql.log
log             = /var/log/mysql.log
basedir         = /usr
datadir         = /var/lib/mysql
tmpdir          = /tmp
language        = /usr/share/mysql/english
skip-locking
#
# 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
set-variable    = key_buffer=16M
set-variable    = max_allowed_packet=1M
set-variable    = thread_stack=128K
#
# Here you can see queries with especially long duration
#log-slow-queries       = /var/log/mysql/mysql-slow.log
#
# The following can be used as easy to replay backup logs or for replication
#server-id              = 1
#log-bin                = /var/log/mysql/mysql-bin.log
#binlog-do-db           = include_database_name
#binlog-ignore-db       = include_database_name
#
# Read the manual if you want to enable InnoDB!
skip-innodb

[mysqldump]
quick
set-variable    = max_allowed_packet=1M

[mysql]
#no-auto-rehash # faster start of mysql but no tab completition

[isamchk]
set-variable    = key_buffer=16M

Reply to: