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

vorinstalliertes MySQL installieren und einrichten

Wollte mal aus neugier nen funktionierenden Server aus meinem PC machen. Hab sowas vorher noch nie gemacht und jetzt eine frage. Hab alles soweit eingerichtet, nur MySQL nicht.

Kann mir einer sagen wie man das vorinstalliierte MySQL einrichtet und started?

Wenn ich einfach nur
Code:
mysql
eintippe kommt das hier:

Vamp898@linux-a84l:~/Desktop/mysql-max-5.0.27-linux-i686> mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Vamp898@linux-a84l:~/Desktop/mysql-max-5.0.27-linux-i686>
 
Wie startest Du denn den Apache?
Ansonsten kann man viel mit Yast machen, falls Du SuSE benutzen solltest.
 
Hab SuSE 10.1

Apache2 ist laut suse schon gestarted (started beim hochfahren)

EDIT: Wenn ich localhost oder 127.0.0.1 eintippe kann ich auch HTML seiten problemlos benutzen :D
 
Schau doch mal in den Runlevel-Editor.

Die Frage nach den Apache hatte einen anderen Grund. Wie startest Du den von Hand?
Ähnlich geht es auch mit MySQL:
Code:
/etc/init.d/mysql start
 
cero schrieb:
Schau doch mal in den Runlevel-Editor.

Die Frage nach den Apache hatte einen anderen Grund. Wie startest Du den von Hand?
Ähnlich geht es auch mit MySQL:
Code:
/etc/init.d/mysql start

Genau das hatte ich auch probiert, der meldet mir dann aber folgendes:

Code:
linux-a84l:/home/Vamp898 # /etc/init.d/mysql start
Creating/Updating MySQL privilege database...
Installing all prepared tables
Fill help tables
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h linux-a84l.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
Updating MySQL privilege database...
Fixing privilege tables...
Starting service MySQL                                               failed
linux-a84l:/home/Vamp898 #
 
Hatte das mal auf Englisch beschrieben:

make the MySQL-server start on system-startup by activating it in the runlevel-editor of your distribution: On SuSE 10 start YaST2 being root and go to System/Runlevel-Editor. There you find a list of all system-services. Scroll down until you see "mysql". Select it and click "activate". You should see an information-window, and after that the list entry should say "activated: Yes". Click on "finish" and confirm saving the settings.

mysql has its own password-system. You should set a mysql-root-password with

shell# mysqladmin -u root password yourpassword

(where "yourpassword" is your password).

Gruß
 
Oben