mysql installation

Reakwon

Grünschnabel
Hi Leute!

hab hier _leichte_ Probleme mit meinem MySQL Server

folgendes:
Redhat 7.0
Apache
Php
Mysql

aber mysql will ned funktionieren

geb ich mysql ein kommt:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib'mysql/mysql.sock' (111)

probiere ich es mit:
[root@Tank home]safe_mysql
Starting mysqld daemon with databases from /usr/local/mysql/data
020708 00:07:15 mysqld ended

wollte dann die neueste mysql version compilieren

aber schon beim ./configure kommt irgendwann wiederum:
Starting mysqld daemon with databases from /usr/local/mysql/data
020708 00:07:15 mysqld ended

das wars.. mehr kommt nicht

langsam rauf ich mir die haare..

hat irgendwer ne Lösung parat ?

Gruss Markus
 
Kurze Anleitung zur MySQL-Installation:
Code:
./configure --prefix=/usr/local/mysql --localstatedir=/var/mysql
make
make install
mkdir /var/mysql
chmod 777 /var/mysql
scripts/mysql_install_db
cp support-files/mysql.server /sbin/mysqld
chmod 755 /sbin/mysqld
./mysqld start
Ein bischen besser erklärt habe ich das ganze in meinem [Linux] Apache mit PHP und MySQL - Tutorial erklärt (OS-Tutorials!)
Noch was:
Du solltest wenn etwas nicht funktioniert noch in den LogFiles (entweder /var/mysql (nach meiner Anleitung) oder /usr/local/mysql/var) gucken. Die Error-File gibt Auskunft über die genauen Probleme, die MySQL hatte. Wahrscheinlich ist das Verzeichnis für die Datenbanken nicht vorhanden oder hat kein Schreibzugriff!
 
Zuletzt bearbeitet:
Hi Leute.

Ich hab auch ein Problem dass hier rein passen dürfte. Und zwar wollte ich MySQL 4.1.14 installieren. Zuerst herunter geladen, entpackt und in das Verzeichnis gewechselt. So weit alles gut. Als ich dann den configure Befehl ausführen wollte brach er bei der Meldung "mysqld ended" ab.
Hier ein der Auszug aus meiner Konsole:
Code:
 192-168-001-101:~/apache/mysql-standard-4.1.14-pc-linux-gnu-i686 # ./configure --prefix=/usr/local/mysql --localstatedir=/var/mysql
 NOTE: This is a MySQL binary distribution. It's ready to run, you don't
 need to configure it!
 
 To help you a bit, I am now going to create the needed MySQL databases
 and start the MySQL server for you.  If you run into any trouble, please
 consult the MySQL manual, that you can find in the Docs directory.
 
 Installing all prepared tables
 Fill help tables
 
 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:
 ./bin/mysqladmin -u root password 'new-password'
 ./bin/mysqladmin -u root -h 192-168-001-101 password 'new-password'
 See the manual for more instructions.
 
 NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
 the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
 able to use the new GRANT command!
 
 You can start the MySQL daemon with:
 cd . ; ./bin/mysqld_safe &
 
 You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
 cd sql-bench ; perl run-all-tests
 
 Please report any problems with the ./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 https://order.mysql.com
 Starting the mysqld server.  You can test that it is up and running
 with the command:
 ./bin/mysqladmin version
 192-168-001-101:~/apache/mysql-standard-4.1.14-pc-linux-gnu-i686 # Starting mysqld daemon with databases from /root/apache/mysql-standard-4.1.14-pc-linux-gnu-i686/data
 STOPPING server from pid file /root/apache/mysql-standard-4.1.14-pc-linux-gnu-i686/data/192-168-001-101.pid
 051016 21:50:01  mysqld ended
 
 make
 make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden.  Schluss.
 192-168-001-101:~/apache/mysql-standard-4.1.14-pc-linux-gnu-i686 #

Was kann ich da machen? Ich bin ziemlich neu in dem Gebiet Linux.
Ich arbeite auf einem Rechner mit Suse 9.3

mfg daniel
 
Zurück