Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mysql version 5 (non RPM package) - aufsetzen

Empfohlene Antworten

Veröffentlicht

mysql version 5 - aufsetzen

Hi @all,

ich muss auf einem SLES9 System, auf dem mysql 4 schon installiert ist, mysql 5 installieren bzw. zum laufen bringen.

Auf der MySQL Homepage habe ich mir unter Linux (non RPM package) downloads die Linux (S/390X)herunter geladen.

Ich bin laut MySQL - Dokumentation vorgegangen Kapitel 2.7 "Installation von MySQL auf anderen Unix-ähnlichen Systemen"

shell> groupadd mysql

shell> useradd -g mysql mysql

shell> cd /usr/local

shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -

shell> ln -s full-path-to-mysql-VERSION-OS mysql

shell> cd mysql

shell> scripts/mysql_install_db --user=mysql

shell> chown -R root  .

shell> chown -R mysql data

shell> chgrp -R mysql .

shell> bin/mysqld_safe --user=mysql &
Zu den Einzelnen Schritten:
shell> groupadd mysql
Gruppe habe ich angelegt, da sie noch nicht vorhanden war
shell> useradd -g mysql mysql
User war schon vorhanden
shell> cd /usr/local

shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
Version in /cust/usr/local entpackt
shell> ln -s full-path-to-mysql-VERSION-OS mysql
Im /cust/usr/local ein Sybolischen Link auf /cust/usr/local/mysql ertellt.
shell> cd mysql
ins /cust/usr/local/mysql Verzeichnis Wechseln
shell> scripts/mysql_install_db --user=mysql
MySQL-Grant-Tabellen erstellen:
scripts/mysql_install_db --user=mysql

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:

[b]./bin/mysqladmin -u root password 'new-password'

./bin/mysqladmin -u root -h neptun password 'new-password'[/b]

See the manual for more instructions.


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 http://shop.mysql.com
shell> chown -R root  .

shell> chown -R mysql data

shell> chgrp -R mysql .
Die Verschinden Recht habe ich auch vergeben
shell> bin/mysqld_safe --user=mysql &

/cust/usr/local/mysql # Starting mysqld daemon with databases from /cust/usr/local/mysql/data
Die MySQL Datenbank manuel Starten, dass habe ich auch gemacht
ps -ef | grep mysql

mysql     9522  9498  0 12:29 pts/0    00:00:00 /cust/usr/local/mysql/bin/mysqld --basedir=/cust/usr/local/mysql --datadir=/cust/usr/local/mysql/data --user=mysql --pid-file=/cust/usr/local/mysql/data/neptun.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
Über ps prüfe ich ob die MySQL Datenbank gestartet ist, und wie man sehen kann ist sie hochgefahren. Oben werde ich darauf hingewiesen, dass ich für den MySQL root User ein Passwort anlegen soll, also mache ich das auch gleich
./bin/mysqladmin -u root password 'test'
Das hat funktioniert Wenn ich Versuche es das Passwort mittels host ein passwort zu vergeben
./bin/mysqladmin -u root -h neptun password 'test'
Dann bekomme ich folgende Meldung:
./bin/mysqladmin: connect to server at 'neptun' failed

error: 'Host 'neptun.admin.de' is not allowed to connect to this MySQL server'
Wieso darf ich da das Passwort nicht Setzen? Jetzt wollte ich mittels dem Ausgelieferten Skript "support-files/mysql.server" die Datenbank Stoppen bzw. Starten. Dafür habe ich im Skript die zwei Variablen angepasst:
basedir="/cust/usr/local/mysql"

datadir="/var/lib/mysql"

Aber ich kann mittels dem Skript den Server werder Starten noch Stoppen?!

Ich bin hier wirklich am Verzweifeln, kann mir jemand helfen?

Ich vermute mal, das es daran liegt das root sich nur von Localhost aus verbinden kann, du aber über den Hostnamen gehst, was einem externen Zugriff gleich kommt.

Versuche mal -h localhost, statt -h neptun, bzw das -h xxxx ganz weglassen

Wenn ich es ohne wie folgt versuche kalppt das auch nicht:

./bin/mysqladmin -u root password 'test'

./bin/mysqladmin: connect to server at 'localhost' failed

error: 'Access denied for user 'root'@'localhost' (using password: NO)'

Ich dachte das passwort wäre jetzt gesetzt?!

Anscheinend ja, deswegen kommst kommst du ja ohne passwort nicht rein.

Zum einloggen: mysqladmin -u root -p

Das übergibt den Benutzer root und fragt danach nach dem Passwort

Wenn ich jetzt einfach nur:

mysqladmin -u root -p

Eingebe, dann bringt er mir nur die Usage-Page mysqladmin ?!

Wenn ich jetzt einfach nur:
mysqladmin -u root -p

Eingebe, dann bringt er mir nur die Usage-Page mysqladmin ?!

Das war jetzt wohl aneinander vorbeigeredet ;)

Das Passwort ist ja gesetzt ('Access denied for user 'root'@'localhost' (using password: NO)' heißt das du versuchst dich ohne Passwort einzuloggen und deswegen der Zugriff verweigert wird), wenn du jetzt einen Befehl per mysqladmin absetzten willst, brauchst du -u root damit er den User kennt und -p damit er nach dem Passwort fragt, dann natürlich noch der eigentliche Befehl.

Wenn du einfach nur in die mysql-Konsole willst, kommst du da über: mysql -u root -p (diesmal ohne weitere direkte Befehle) rein. Auch da ist das -p notwendig, damit nach dem Passwort gefragt wird.

Ok jetzt verstehe ich ... DANKE jetzt tut es auch wie ich will.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.