Ho scaricato il mysql-5.1.38-linux-x86_64-glibc23.tar.gz da heremysql_install_db dando errore
e poi ho eseguito usando sotto il comando
groupadd mysql
useradd -g mysql mysql123
cp mysql-5.1.38-linux-x86_64-glibc23.tar.gz /home /mysql123/
su - mysql123
tar -zxvf mysql-5.1.38-linux-x86_64-glibc23.tar.gz
mv mysql-5.1.38-linux-x86_64-glibc23 mysql
mkdir tmp
cd mysql/
mv suppport-files/my-medium.cnf my.cnf
cp support-files/mysql.server bin/
e poi ho modificato il my.cnf e impostare il basedir e datadir a /home/mysql123/mysql e /home/mysql123/mysql/dati e innodb_home_dir e directory del file di registro per datadir
012.351.mysql.server ora modificato e impostare il datadir e basedir in modo corretto
e poi mysql_install_db avviato come
[[email protected] mysql]$ ./scripts/mysql_install_db
./scripts/mysql_install_db: line 244: ./bin/my_print_defaults: cannot execute binary file
Neither host '127.0.0.1' nor 'localhost' could be looked up with
./bin/resolveip
Please configure the 'hostname' command to return a correct
hostname.
If you want to solve this at a later stage, restart this script
with the --force option
nel vedere l'errore ho pensato che può essere confusa con basedir ed eseguito lo stesso sotto
[[email protected] mysql]$ ./scripts/mysql_install_db -–user=mysql123 -–basedir=/home/mysql123/mysql
./scripts/mysql_install_db: line 244: ./bin/my_print_defaults: cannot execute binary file
Neither host '127.0.0.1' nor 'localhost' could be looked up with
./bin/resolveip
Please configure the 'hostname' command to return a correct
hostname.
If you want to solve this at a later stage, restart this script
with the --force option
non sto gettin cosa sta succedendo internamente e che mostra questo tipo di messaggio
e sono sicuro che ho abbastanza spazio su disco (df -h) e ho corretto di proprietà: i permessi (chown mysq123 mysql/home/mysql123/-R) e propri (chmod 755.)
e le linee in mysql_install_db sono come di seguito
piacere a qualsiasi aiuto per risolvere questo problema è molto utile (e devo seguire la stessa procedura di installazione)
sto usando RedHat 6
Non credo che il file host è il problema. Comunque non per localhost. Ho cercato e trovato un riferimento a qualcuno con quello che potrebbe essere lo stesso problema - sembra un insetto nel loro caso e lo hanno risolto. Potrebbe voler iniziare dal basso;) [link] (https://bugs.mysql.com/bug.php?id=44405) –