MySQL - problema con mysql_install_db

 
Vista:

problema con mysql_install_db

Publicado por cggj (2 intervenciones) el 30/08/2008 00:43:10
Hola instale mysql cuando corro el script mysql_install_db sin modificar algún archivo de configuración todo sale bien, pero mi objetivo es cambiar el directorio donde se almacenan las bases de datos por lo tanto al modificar el archivo /etc/my.cnf de la siguiente manera:

[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
datadir = /disco_prueba/bases/ppp/ #aqui realizo el cambio
skip-locking
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K

cuando vuelvo a realizar las tablas de las bases por default con el script mysql_install_db, obtengo el siguiente error:

[root@localhost ppp]# mysql_install_db --user=mysql
Installing MySQL system tables...
Installation of system tables failed!

Examine the logs in /disco_prueba/bases/ppp/ for more information.
You can try to start the mysqld daemon with:
/usr/sbin/mysqld --skip-grant &
and use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:

shell> /usr/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /disco_prueba/bases/ppp/ that may be helpful.

The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script!

Si intento levantar mysql sin correr este script o copiando y pegando los archivos que tenia desde un principio en /var/lib/mysql obviamente mysql no inicia me manda el siguiente error:

[root@localhost ppp]# service mysql start
Starting MySQL.Manager of pid-file quit without updating fi[FALLÓ]

A alguién le ha sucedido algo parecido??

Muchas gracias de antemano.

Saludos.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:problema con mysql_install_db

Publicado por Carlos Badilla Donoso (3 intervenciones) el 04/01/2009 19:13:12
Recién tuve que solucionar este problema con Ubuntu 8.10 , instalando Mysql 5.1 , usando rpm con alien. La respuesta está en este link, al menos a mí me funcionó ;)

http://javasolution.blogspot.com/2007/04/mysql-couldnt-find-mysql-server-or.html
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar