macport und mysql5

lixx

New Member
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:
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
Google kann mir mit dieser Meldung leider nicht weiterhelfen.

lg lixx
 
Ich sehe da nur Warnmeldungen, aber keine die zum Abbruch führt.

Hast Du den Server mal gestartet und das Test-Script laufen lassen?
Code:
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
--marneus
 
Der mysqld läuft. Ich kann sogar mysql-Befehle ausführen:
Code:
sudo /opt/local/bin/mysql5 -uroot
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.84 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

Wenn ich Deinen Vorschlag mache, dann läuft ein zweiter mysqld-Prozess.
Code:
cd /opt/local
server:/opt/local admin$ sudo /opt/local/lib/mysql5/bin/mysqld_safe &
[1] 378
server:/opt/local admin$ Starting mysqld daemon with databases from /opt/local/var/db/mysql5

AHHH! Also muss man nur die Warnung ignorieren. Habe nun einfach weiter gemacht und das passwort angelegt:
Code:
sudo /opt/local/lib/mysql5/bin/mysqladmin -u root password 'root'

Komischerweise funtzte es jetzt. Vll lag es daran, dass ich dazwischen einen Neustart gemacht habe.

Hoffe es klappt jetzt weiterhin ! :)
 
Wenn Du neu startest wird der mysql Prozess nicht autom. gestartet!

Code:
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
Ich bin leider kein Apfeluser, deswegen weiß ich nicht, wo das hingehört. Google kann da aber bestimmt helfen.

--marneus
 
Wenn Du neu startest wird der mysql Prozess nicht autom. gestartet!

Das geht mit einem LaunchDeamon.

Aber jetzt, nach zwei Tagen tüfteln, klappt's endlich und ich hab meinen eigenen WebServer :D

Danke noch für Deinen Hinweis!

lg lixx
 
Back
Top