• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

mysql installation

Yosh

Newbie
Hallo,

bin Linux Anfänger und habe da ein paar Fragen bzgl einer Installation.
Also ich will PHP coden und dafür brauche ich einen Apacheserver. Zusätzlich wollte ich auch MySQL installieren.
Ich habe die Version Suse 9.2 drauf. Normalerweise habe ich es immer mit xaamp auf wwindows gemacht... will es aber lernen das allers auf Linux laufen zu lassen.

Ich habe mir da so ein Tutorial zur LAMP Installation gefunden und wollte es anhand diesem machen. Es geht aber leider nicht.
http://www.tutorials.de/forum/linux-tutorials/7822-linux-apache-mit-mysql-und-php-installieren.html

Bei der Auswahl von MySql bin ich bei Version 4.0.... geblieben wusste abernicht genau welche der gegebene Versionen ich nehmen soll. Habe mir
Linux (x86, glibc-2.2, "standard" is static, gcc)
runtergeladen. Was ist der unterschied zur x86 Version?

Dann habeich es mit tar entpackt, und wollte wie im tutorial angegeben "make" ausführen. Es ging aber nicht.
Bekamm folgende Meldung
make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden. Schluss.

Was mache ich falsch?
Was mach make? Wie sieht so eine standardprozedur bei der Installation einer Software aus?

gruss yoshi
 
OP
Y

Yosh

Newbie
habe jetzt über yast php, mysql und apache installiert.
Wenn ich aber versuche mysql mit start mysql zu starten geht dies nicht. Bekomme folgende Fehlermeldung:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Was muss ich denn noch machen damit alles läuft?
 
Hallo,

als root:

Code:
rcmysql start


Oder im Yast Runleveleditor das automatische Starten einstellen.

Gruß
Reiner


[/code]
 
OP
Y

Yosh

Newbie
Ich glaube es hat geklappt. Bin mir aber nicht sicher, da nach der Eingabe von rsmysql start das wörtchen failed ausgegeben wird (vorer auch noch irgendein Text).
Creating MySQL privilege database and starting MySQL...
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
061012 16:33:27 /usr/sbin/mysqld: Shutdown Complete


PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands.
Remeber to type your password instead of <new-password>!
/usr/bin/mysqladmin -u root password <new-password>
/usr/bin/mysqladmin -u root -h linux.site password <new-password>
See the manual for more instructions.


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 /usr/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

failed

Mit welchem befehl starte ich den den Apache Server?
 
Yosh schrieb:
[...] vorer auch noch irgendein Text [...]
:roll: Der auch gelesen werden darf (z.B der Teil mit dem Passwort)

Yosh schrieb:
[...]
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands.
Remeber to type your password instead of <new-password>!
/usr/bin/mysqladmin -u root password <new-password>
/usr/bin/mysqladmin -u root -h linux.site password <new-password>

[...]

Yosh schrieb:
[...] Mit welchem befehl starte ich den den Apache Server?
Code:
rcapache2 start

Außerdem gehört das wohl eher in LAMP-Webserver XAMPP.
=> *schieb*
 
Oben