ich habe die mysql-5.1.38-linux-x86_64-glibc23.tar.gz von heremysql_install_db geben Fehler
und dann habe ich sie ausgeführt von unten Befehl
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/
und dann habe ich die my.cnf bearbeitet und stellen Sie die basedir und datadir zu /home/mysql123/mysql und /home/mysql123/mysql/data und innodb_home_dir und Logfile-Verzeichnis DATADIR
012.351.Jetzt bearbeitet mysql.server und stellen Sie die datadir und basedir in ihnen richtig
und dann initiiert mysql_install_db als
[[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
auf den Fehler zu sehen, dachte ich, es das gleiche mit basedir und ausgeführt verwechselt werden kann unter
[[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
i gettin bin nicht das, was intern und zeigt diese Art von Nachricht wird
und ich bin sicher, dass ich genug Speicherplatz (df -h), und ich habe die richtige Eigentum habe (chown mysq123: mysql/home/mysql123/-R) und entsprechende Berechtigungen (chmod 755.)
und die Linien in mysql_install_db sind wie unten
jede Hilfe bitte, dieses Problem zu lösen, ist sehr nützlich (und ich habe die gleiche Installation folgen)
i RedHat bin mit 6
Ich glaube nicht, Ihre Host-Datei ist das Problem. Nicht für localhost sowieso. Gesucht und gefunden eine Referenz auf jemanden mit dem, was das gleiche Problem sein kann - sieht aus wie ein Fehler in ihrem Fall und sie löste es. Könnte von unten beginnen wollen;) [link] (https://bugs.mysql.com/bug.php?id=44405) –