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"
Zu den Einzelnen Schritten:
Gruppe habe ich angelegt, da sie noch nicht vorhanden war
User war schon vorhanden
Version in /cust/usr/local entpackt
Im /cust/usr/local ein Sybolischen Link auf /cust/usr/local/mysql ertellt.
ins /cust/usr/local/mysql Verzeichnis Wechseln
MySQL-Grant-Tabellen erstellen:
Die Verschinden Recht habe ich auch vergeben
Die MySQL Datenbank manuel Starten, dass habe ich auch gemacht
Ü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
Das hat funktioniert
Wenn ich Versuche es das Passwort mittels host ein passwort zu vergeben
Dann bekomme ich folgende Meldung:
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:
Aber ich kann mittels dem Skript den Server werder Starten noch Stoppen?!
Ich bin hier wirklich am Verzweifeln, kann mir jemand helfen?
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"
Code:
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:
Code:
shell> groupadd mysql
Code:
shell> useradd -g mysql mysql
Code:
shell> cd /usr/local
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
Code:
shell> ln -s full-path-to-mysql-VERSION-OS mysql
Code:
shell> cd mysql
Code:
shell> scripts/mysql_install_db --user=mysql
Code:
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
Code:
shell> chown -R root .
shell> chown -R mysql data
shell> chgrp -R mysql .
Code:
shell> bin/mysqld_safe --user=mysql &
/cust/usr/local/mysql # Starting mysqld daemon with databases from /cust/usr/local/mysql/data
Code:
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
Oben werde ich darauf hingewiesen, dass ich für den MySQL root User ein Passwort anlegen soll, also mache ich das auch gleich
Code:
./bin/mysqladmin -u root password 'test'
Wenn ich Versuche es das Passwort mittels host ein passwort zu vergeben
Code:
./bin/mysqladmin -u root -h neptun password 'test'
Code:
./bin/mysqladmin: connect to server at 'neptun' failed
error: 'Host 'neptun.admin.de' is not allowed to connect to this MySQL server'
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:
Code:
basedir="/cust/usr/local/mysql"
datadir="/var/lib/mysql"
Ich bin hier wirklich am Verzweifeln, kann mir jemand helfen?