PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : mysql_install_db



Schnitzel
30.10.03, 23:34
ich hab ein kleines problem.
ich versuche mir nach dem howto auf
http://lamps.efactory.de/lamps-2-0.shtml
einen lamps server aufzusetzen.

ich habe also mysql kompiliert und die befehle bis zu
ln -s /usr/local/mysql/3.23.57 /usr/local/mysql/current
befolgt, hat auch alles super funktioniert.

beim

/usr/sbin/groupadd mysql
/usr/sbin/useradd mysql -g mysql -s /bin/false -d /home/mysql
scripts/mysql_install_db

bekomme ich aber folgenden fehler ...

useradd: Kann Verzeichnis /home/mysqlscripts/mysql_install_db nicht erstellen
was kann ich da machen ?

achso als distri verwende ich redhat 9.0

ohcibi
05.11.03, 20:07
das verzeichnis heißt einfach /home/mysql

scripts/mysql_install_db sollst du nach useradd ausfuehren.... mir is das ooch passiert, geht halt nich eindeutig aus der seite hervor....

Schnitzel
06.11.03, 14:12
cool danke

nun hab ich dannach gleich noch ein problem

[root@Schnitzel schnitzel]# /usr/local/mysql/current/bin/safe_mysqld & /usr/loca
l/mysql/current/bin/mysqladmin -u root password 'geheim'
[1] 4969
/usr/local/mysql/current/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
[root@Schnitzel schnitzel]# Starting mysqld daemon with databases from /home/mys
ql/data
031106 14:23:49 mysqld ended

warum startet er den mysqld erst nachdem er ihn braucht und warum beendet er ihn sofort wieder?

ohcibi
06.11.03, 14:45
du musst erst safe_mysqld &
aufrufen und dann mysqladmin

das sieht so aus als haettest du die beiden programme mit dem & verknuepft, das & bedeutet aber nur dass du nachdem du safe_mysqld gestartet hast noch ne prompt bekommst....

wenn da steht mysql ended dann kannst du durch aufrufen von libexec/mysqld genaueres ueber den grund erfahren....

Schnitzel
07.11.03, 16:12
jo stimmt hatte das verknüpft,

danke

Schnitzel
07.11.03, 17:32
[schnitzel@Schnitzel schnitzel]$ /usr/local/mysql/current/libexec/mysqld
Cannot initialize InnoDB as 'innodb_data_file_path' is not set.
If you do not want to use transactional InnoDB tables, add a line
skip-innodb
to the [mysqld] section of init parameters in your my.cnf
or my.ini. If you want to use InnoDB tables, add to the [mysqld]
section, for example,
innodb_data_file_path = ibdata1:10M:autoextend
But to get good performance you should adjust for your hardware
the InnoDB startup options listed in section 2 at
http://www.innodb.com/ibman.html
031107 17:28:42 /usr/local/mysql/current/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)


ööööh?

ohcibi
07.11.03, 17:40
also wegen dem innodb gewaesch nimmste dir die my-huge.cnf aus shared/mysql und nimmst die kommentare weg bei der sache mit der innodb und außerdem musste wahrscheinlich fuer die host.frm mal das dataverzeichnis auf den user 'mysql' ueberschreiben aber mit -R damit auch wirklich alles ihm gehoert....