Hallo,
ich habe gerade mein altes Suse 10.1 plattgemacht und 11.1 aufgesetzt, soweit so gut.
Jetzt möchte ich MySQL zum laufen bringen, welches ich über YAST installiert habe. Dem Handbuch entsprechend versuche ich jetzt die Grant-Tabellen zu initialisieren, leider funktioniert das überhaupt nicht:
weiterhin habe ich probiert:
und
Also irgendwie funktioniert hier garnichts.
Liegt bestimmt unter anderem an den Rechten, verstehe aber nicht warum.
gm
ich habe gerade mein altes Suse 10.1 plattgemacht und 11.1 aufgesetzt, soweit so gut.
Jetzt möchte ich MySQL zum laufen bringen, welches ich über YAST installiert habe. Dem Handbuch entsprechend versuche ich jetzt die Grant-Tabellen zu initialisieren, leider funktioniert das überhaupt nicht:
Code:
mysql_install_db
hostname: Unknown host
WARNING: The host '' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
mkdir: cannot create directory `/var/lib/mysql/mysql': Permission denied
chmod: cannot access `/var/lib/mysql/mysql': No such file or directory
mkdir: cannot create directory `/var/lib/mysql/test': Permission denied
chmod: cannot access `/var/lib/mysql/test': No such file or directory
Installing MySQL system tables...
091001 13:02:18 [Warning] Can't create test file /var/lib/mysql/fb08-labor305.lower-test
091001 13:02:18 [Warning] Can't create test file /var/lib/mysql/fb08-labor305.lower-test
ERROR: 1049 Unknown database 'mysql'
091001 13:02:18 [ERROR] Aborting
091001 13:02:18 [Note] /usr/sbin/mysqld: Shutdown complete
Installation of system tables failed!
Examine the logs in /var/lib/mysql 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 /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!
weiterhin habe ich probiert:
Code:
/usr/bin/mysql -u root mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
und
Code:
/usr/sbin/mysqld --skip-grant &
[1] 13474
091001 13:11:00 [Warning] Can't create test file /var/lib/mysql/fb08-labor305.lower-test
091001 13:11:00 [Warning] Can't create test file /var/lib/mysql/fb08-labor305.lower-test
username:~> 091001 13:11:00 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
Also irgendwie funktioniert hier garnichts.
Liegt bestimmt unter anderem an den Rechten, verstehe aber nicht warum.
gm