Archiv verlassen und diese Seite im Standarddesign anzeigen : mySQL nimmt Hostnamen nicht an
Moin Leute
Ich habe SuSE 9.1 installiert, doch der mySQL Server erkennt den Hostnamen nicht und startet darum nicht:
# rcapache2 restart
rcmysql restart
Restarting service MySQL
Shutting down service mysql
done
Creating MySQL privilege database and starting MySQL...
hostname: Unknown host
Neither host '' and 'localhost' could not be looked up with
/usr/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
nach den Tipps in http://www.linuxforen.de/forums/showthread.php?t=183560 habe ich ein paar Einträge in die my.cnf gemacht, doch die bringen auch nichts:
CHANGE MASTER TO MASTER_HOST='192.168.1.3', MASTER_PORT=3306,
MASTER_USER='joe', MASTER_PASSWORD='secret';
Liegt das Problem vielleicht an resolveip?? naja bin nicht so erfahren in Linux :(... noch ^^
:confused:
Vielen Dank im Voraus!
Willst du aus dem Netzwerk auf MySQL zugreifen?
Ansonsten würde ich in der my.cnf skip-networking entkommentieren.
Kannst du mal die Ausgaben von hostname und cat /etc/hosts posten?
nee da wird nur von diesem rechner darauf zugegriffen, aber jetzt wo skip-networking auskommentiert ist änderts auch nix...
hier die Ausgaben:
moonshineSERVER:/ # more /etc/hosts
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#
127.0.0.1 localhost
# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
127.0.0.2 linux.site linux
192.168.1.3 moonshine-server.moonshiNEt moonshine-server
also was 127.0.0.2 linux.site linux da drinn zu suchen hat frage ich mich...
moonshineSERVER:/ # hostname
moonshineSERVER
Änder mal die Zeile
127.0.0.1 localhost in
127.0.0.1 localhost moonshineSERVER und guck obs dann geht.
hmm schonmal n schritt weiter...
moonshineSERVER:~ # rcmysql restart
Restarting service MySQL
Shutting down service mysql
done
Creating MySQL privilege database and starting MySQL...
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
/usr/sbin/mysqld: ERROR: unknown variable 'CHANGE MASTER TO MASTER_HOST='192.168
.1.3', MASTER_PORT=3306,'
Installation of grant tables failed!
Examine the logs in /var/lib/mysql for more information.
You can also try to start the mysqld daemon with:
/usr/sbin/mysqld --skip-grant &
You can 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 /var/lib/mysql 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!
failed
dann hab ich halt die zwei Zeilen aus my.cnf wieder raus genommen, doch dann kommt das...
moonshineSERVER:~ # rcmysql restart
Restarting service MySQL
Shutting down service mysql done
Starting service MySQL
failed
Examine the logs in /var/lib/mysql for more information. Mach mal :)
ja machmal ^^ da hätte ich eigentlich draufkommen sollen :o
hehe jetzt wollt ichs doch gleich nochmal testen doch der brachte die alte meldung :eek:
dann sah ich in /etc/hosts dass da die halbe datei gelöscht wurde...
nachdem ich den ordner /var/libs/mysql geleert hatte gings dann PLÖTZLICH :)
moonshineSERVER:/var/lib/mysql # rcmysql restart
Restarting service MySQL
Shutting down service mysql
done
Creating MySQL privilege database and starting MySQL...
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
ERROR: 1062 Duplicate entry 'localhost-root' for key 1
ERROR: 1062 Duplicate entry 'localhost-root' for key 1
050522 6:30:13 /usr/sbin/mysqld: Shutdown Complete
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost password 'new-password'
See the manual for more instructions.
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
done
boaah das ganze war wohl nur wegen dem einen eintrag in der hosts datei... mal schauen wie lange das funzt ;)
schonmal VIELEN DANK :cool:
JAA es geht, nach der passwortfestlegung und weiterem neustart...
moonshineSERVER:/var/lib/mysql # rcmysql restart
Restarting service MySQL
Shutting down service mysql
done
Starting service MySQL
done
:)
p.s. hast du eigentlich icq?
Bisher hatte jeder in diesem Threat diese lustige grüne Blume unterm avatar... :rolleyes:
Hab meine Nummer eben erst eingetragen ;)
Powered by vBulletin® Version 4.2.5 Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.