MySQL

Locked
Message
Author
Bernhard

MySQL

#1 Post by Bernhard »

Hallo an alle Linuxer!

Ich habe ein Problem mit der MySQL Datenbank. Anhängend sind sämtliche Shell – Eingaben/Ausgaben aufgelistet. Ich habe eine Binärdistribution, welche normal nach dem Entpacken mit scripts/mysql_install_db (sollte nur einmal bei der Installation ausgeführt werden) konfiguriert wird und mit bin/safe_mysql --log & im Hintergrund gestartet wird.
Was mich verwundert, daß ich ./configure (was eigentlich nur bei der Sourcedistribution verwendet wird und zwar einzig zum einmaligen kompilieren) ausführen muß, damit MySQL bei mir läuft. Doch damit könnte ich leben, doch ich muß dies nach jedem Systemstart ausführen, und kann somit „bin/safe_mysql --log &“ nicht als Startup – Skript verwenden. Ich muß die unten aufgeführte Prozedur jedesmal wiederholen.

Bitte helft mir! Ich benutze SUSE 6.4 und „mysql-3.22.32-pc-linux-gnu-i686.tar.gz“.

Recht herzlichen Dank im Voraus
Bernhard



bash-2.03# bin/safe_mysql --log &

<font size="1"> 447
bash: bin/safe_mysql: No such file or directory
<font size="1">+ Exit 127 bin/safe_mysql --log
bash-2.03#


bash-2.03# bin/mysqladmin -p version

Enter password:
bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!


bash-2.03# scripts/mysql_install_db

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 !
This is done with:
./bin/mysqladmin -u root 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!
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://www.tcx.se/license.htmy.


bash-2.03# bin/mysqladmin -p version

Enter password:
bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!


bash-2.03# ./configure

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 !
This is done with:
./bin/mysqladmin -u root 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!
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://www.tcx.se/license.htmy.
Starting the mysqld server. You can test that it is up and running
with the command:
./bin/mysqladmin version
bash-2.03# Starting mysqld daemon with databases from /mysql/data


bash-2.03# bin/mysqladmin -p version

Enter password:
bin/mysqladmin Ver 8.0 Distrib 3.22.32, for pc-linux-gnu on i686
TCX Datakonsult AB, by Monty
Server version 3.22.32
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /tmp/mysql.sock
Uptime: 17 sec
Threads: 1 Questions: 1 Slow queries: 0 Opens: 6 Flush tables: 1 Open tables: 2
bash-2.03#

User avatar
hjb
Pro-Linux
Posts: 3264
Joined: 15. Aug 1999 16:59
Location: Bruchsal
Contact:

Re: MySQL

#2 Post by hjb »

Hi,

alle Versuche nach dem ersten Fehler (also nach der ersten Zeile <img src="http://www.pro-linux.de/UltraBoard/Images/Wilk.gif" border="0" align="middle"> waren schon sinnlos.

Der Aufruf muß lauten:

./bin/safe_mysql --log &

oder man gibt gleich den kompletten Pfad zu safe_mysql an.

Gruß,
hjb
Pro-Linux - warum durch Fenster steigen, wenn es eine Tür gibt?

Bernhard

Re: MySQL

#3 Post by Bernhard »

Genau das hatte ich doch zu allererst gemacht!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

User avatar
hjb
Pro-Linux
Posts: 3264
Joined: 15. Aug 1999 16:59
Location: Bruchsal
Contact:

Re: MySQL

#4 Post by hjb »

Hi,

auch mit dem ./ am Anfang?

Falls ja, dann schreibe mal in die 2. Zeile von safe_mysqld "set -x".

Gruß,
hjb
Pro-Linux - warum durch Fenster steigen, wenn es eine Tür gibt?

Bernhard

Re: MySQL

#5 Post by Bernhard »

NÖÖÖÖÖ!

probiers mal, in der Anleitung wars ja ohne ./

Ciao Bernhard

User avatar
killerhippy
Posts: 529
Joined: 19. May 2000 19:36
Contact:

Re: MySQL

#6 Post by killerhippy »

Wenn in Initscripten Programmaufrufe nachgetragen werden, müssen absolute Pfade angegeben werden, denn dann ist die Variable PATH noch nicht gesetzt.
Es gibt keine dumme Fragen!

Killerhippy

Locked