Re: MySQL Server startet nicht

Uwe Beck <[email protected]>
Newsgroups gmane.linux.redhat.general.german
Message-ID <[email protected]>
Hallo Alexander,

Alexander Dalloz schrieb:
> Am So, den 09.01.2005 schrieb Ch. Markus Grill um 3:23:
>>Wo befindet sich eigentlich das Startskript und ist es bei RedHat normal,
> 
> 
> Alle Startscripte befinden sich unterhalb von /etc/init.d/ bzw.
> /etc/rc.d/init.d. 
> 
> 
>>dass der Pfad /var/lib/mysql
>>(hier mysql) nicht existiert?
> 
> 
> Ja, das Verzeichnis wird erst beim 1. Start des MySQL Servers angelegt.
Stimmt nicht. In /etc/rc.d/init.d/mysql steht:

datadir="/var/lib/mysql"
start(){
   ...
   chmod 0640 /var/log/mysqld.log
   if [ ! -d $datadir/mysql ] ; then
      action $"Initializing MySQL database: " /usr/bin/mysql_install_db
      ret=$?
      chown -R mysql:mysql $datadir
      if [ $ret -ne 0 ] ; then
                 return $ret;
      fi
    ...
In /var/lib/mysql werden beim ersten Start die Datenbankfiles angelegt.
Folglich muss /var/lib/mysql bereits existieren. Ist Bestandteil des RPM.
> 
> 
>>Marks GRill
> 
> 
> service mysqld start   --> sorgt für den (auch initialen) Start
> chkconfig mysqld on  --> sorgt für die default Aktivierung des MySQL
> Servers in den runleveln
> 
> Alexander
Gruss Uwe
ubeck(at)c3pdm.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.