Hallo Leute!
Ich bekomme mySQL5 auf meinem mac mini (10.4) nicht zu laufen und hoffe ihr könnt mir da weiterhelfen.
Installiert habe ich mittels MacPort:
sudo port install php5 +apache2 +sqlite +pear +mysql5-server +postgresql83-server +macosx
Der Apache Server läuft nun und auch der mySQL Server:
Wenn ich nun aber wie in den Tutorials die Datenbank installieren möchte, bekomme ich folgende Meldung ("server" ist unter anderem ein Benutzer und auch die HD heißt so.):
Die my.cnf
Die httpd.conf
Google kann mir mit dieser Meldung leider nicht weiterhelfen.
lg lixx
Ich bekomme mySQL5 auf meinem mac mini (10.4) nicht zu laufen und hoffe ihr könnt mir da weiterhelfen.
Installiert habe ich mittels MacPort:
sudo port install php5 +apache2 +sqlite +pear +mysql5-server +postgresql83-server +macosx
Der Apache Server läuft nun und auch der mySQL Server:
Code:
top
870 httpd 0.0% 0:00.37 1 11 259 904K 11.9M 5.16M 46.4M
869 httpd 0.0% 0:00.37 1 11 259 800K 11.9M 4.88M 46.4M
...
857 mysqld 0.1% 0:03.51 9 45 67 10.6M 5.94M 13.0M 64.7M
Wenn ich nun aber wie in den Tutorials die Datenbank installieren möchte, bekomme ich folgende Meldung ("server" ist unter anderem ein Benutzer und auch die HD heißt so.):
Code:
sudo /opt/local/lib/mysql5/bin/mysql_install_db --user=mysql
[B]WARNING: The host 'server' could not be looked up with resolveip.[/B]
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 !
Installing MySQL system tables...
090825 10:57:48 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090825 10:57:48 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090825 10:57:48 [Warning] Setting lower_case_table_names=2 because file system for /opt/local/var/db/mysql5/ is case insensitive
OK
Filling help tables...
090825 10:57:48 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090825 10:57:48 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090825 10:57:48 [Warning] Setting lower_case_table_names=2 because file system for /opt/local/var/db/mysql5/ is case insensitive
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/opt/local/lib/mysql5/bin/mysqladmin -u root password 'new-password'
/opt/local/lib/mysql5/bin/mysqladmin -u root -h server password 'new-password'
Alternatively you can run:
/opt/local/lib/mysql5/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /opt/local ; /opt/local/lib/mysql5/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems with the /opt/local/lib/mysql5/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 http://shop.mysql.com
Die my.cnf
Code:
[client]
#password = your_password
port = 3306
socket = /opt/local/var/run/mysql5/mysqld.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3306
socket = /opt/local/var/run/mysql5/mysqld.sock
...
Die httpd.conf
Code:
ServerRoot "/opt/local/apache2"
Listen 80
ServerName localhost
lg lixx