Wo is die Configfile?
-
- Posts: 20
- Joined: 2006-03-27 18:02
Wo is die Configfile?
Moin,
ich arbeite gerade an einem mir fremden System. Es ist Cobalt Linux release 6.5.1 (Monterey) installiert. Kann mir jemand sagen wo ich die my.cnf oder wie auch immer sie auf diesem System heißen mag, finden kann?
Oder wie ich herausfinden kann wo die config-file der mysql liegt?
Ich hoffe ihr könnt mir helfen.
Gruss Basetiger
ich arbeite gerade an einem mir fremden System. Es ist Cobalt Linux release 6.5.1 (Monterey) installiert. Kann mir jemand sagen wo ich die my.cnf oder wie auch immer sie auf diesem System heißen mag, finden kann?
Oder wie ich herausfinden kann wo die config-file der mysql liegt?
Ich hoffe ihr könnt mir helfen.
Gruss Basetiger
-
- Userprojekt
- Posts: 7066
- Joined: 2002-10-09 14:30
- Location: Dorsten
Re: Wo is die Configfile?
Code: Select all
find /etc -name my.cnf
Code: Select all
rpm -ql `rpm -qa|grep mysql` | grep my.cnf
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
-
- Posts: 20
- Joined: 2006-03-27 18:02
Re: Wo is die Configfile?
Code: Select all
[root admin]# find /etc -name my.cnf
[root admin]# rpm -ql `rpm -qa|grep mysql` | grep my.cnf
rpm: no arguments given for query
Ich hab ja schon gesucht, aber leider bin ich bis jetzt nirgends fündig geworden.
-
- Userprojekt
- Posts: 7066
- Joined: 2002-10-09 14:30
- Location: Dorsten
Re: Wo is die Configfile?
Dann such dir mal per "rpm -qa|grep mysql" das Paket händisch raus, und schau dir dann per "rpm -ql" an, wo das File steckt. Noch genauer geht's dann aber wirklich nicht...
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
-
- Posts: 20
- Joined: 2006-03-27 18:02
Re: Wo is die Configfile?
ich glaub ich bin zu blöde
kein Ausgabe
package mysql is not installed
Code: Select all
rpm -qa|grep mysql
Code: Select all
rpm -ql mysql
-
- Userprojekt
- Posts: 608
- Joined: 2005-12-16 17:57
Re: Wo is die Configfile?
Eher:basetiger wrote:ich glaub ich bin zu blöde
kein AusgabeCode: Select all
rpm -qa|grep mysql
Code: Select all
rpm -qa | grep -i mysql
-
- Project Manager
- Posts: 11182
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: Wo is die Configfile?
Code: Select all
find /{etc,home,lib,opt,root,usr,var}/ -name my.cnf
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 20
- Joined: 2006-03-27 18:02
Re: Wo is die Configfile?
@joe user: das hab ich natürlich schon ausprobiert. ohne erfolg. die file muss einen anderen namen haben
sooo jetzt hab ich nich nur eine config gefunden sondern 4!!!
/usr/share/mysql/my-huge.cnf
/usr/share/mysql/my-large.cnf
/usr/share/mysql/my-medium.cnf
/usr/share/mysql/my-small.cnf
und welche is es nun? *verzweifel*
sooo jetzt hab ich nich nur eine config gefunden sondern 4!!!
/usr/share/mysql/my-huge.cnf
/usr/share/mysql/my-large.cnf
/usr/share/mysql/my-medium.cnf
/usr/share/mysql/my-small.cnf
und welche is es nun? *verzweifel*
-
- Userprojekt
- Posts: 608
- Joined: 2005-12-16 17:57
Re: Wo is die Configfile?
Schau halt mal rein. :-) Das sollte die Lösung bringen.basetiger wrote:@joe user: das hab ich natürlich schon ausprobiert. ohne erfolg. die file muss einen anderen namen haben
sooo jetzt hab ich nich nur eine config gefunden sondern 4!!!
/usr/share/mysql/my-huge.cnf
/usr/share/mysql/my-large.cnf
/usr/share/mysql/my-medium.cnf
/usr/share/mysql/my-small.cnf
und welche is es nun? *verzweifel*
-
- Posts: 218
- Joined: 2004-09-15 10:14
Re: Wo is die Configfile?
Es kann ohne weiteres sein, das es diese Datei nicht gibt. Dann werden eben die Standardeinstellungen genommen. Es ist nicht zwingend notwendig eine my.cnf zu haben (auch wenn es sich anbietet).
-
- Posts: 20
- Joined: 2006-03-27 18:02
Re: Wo is die Configfile?
Wenn ich eine my.cnf erstelle, nimmt er die dann von selbst an oder muss ich ihm das noch irgendwie klar machen?
Gruß BaseTiger
Gruß BaseTiger
-
- Posts: 218
- Joined: 2004-09-15 10:14
Re: Wo is die Configfile?
Das kommt darauf an, wie du die Datenbank installiert hast. Unter normalen Umständen findet er diese automatisch im Verzeichnis /etc oder im Datenverzeichnis deiner Datenbank (z.B. /usr/local/mysql/data). Du kannst den Pfad zu der my.cnf aber auch beim Starten der DB mit übergeben. Dein Startskript sollte dafür einen extra Parameter kennen.basetiger wrote:Wenn ich eine my.cnf erstelle, nimmt er die dann von selbst an oder muss ich ihm das noch irgendwie klar machen?
Cheers,
Jochen
-
- Posts: 471
- Joined: 2003-08-21 10:21
- Location: Berlin
Re: Wo is die Configfile?
mysqld --help --verbose | lessbasetiger wrote:ich arbeite gerade an einem mir fremden System. Es ist Cobalt Linux release 6.5.1 (Monterey) installiert. Kann mir jemand sagen wo ich die my.cnf oder wie auch immer sie auf diesem System heißen mag, finden kann?
sagt es Dir:
Code: Select all
Default options are read from the following files in the given order:
/etc/my.cnf /var/lib/mysql/my.cnf ~/.my.cnf
The following groups are read: mysqld server mysqld-4.1
Wenn nicht die o.a. Standard-Locations verwendet werden, steht es in der Prozeßliste: "ps axuwww| grep mysql[d]" und dann nach --defaults-file= oder nach --extra- suchen.Oder wie ich herausfinden kann wo die config-file der mysql liegt?
-
- Posts: 20
- Joined: 2006-03-27 18:02
Re: Wo is die Configfile?
Code: Select all
[root /etc]# ps axuwww| grep mysql[d]
root 28277 0.0 0.0 1692 840 pts/1 S 15:22 0:00 sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid
mysql 28314 0.0 0.9 39932 12344 pts/1 S 15:22 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 28316 0.0 0.9 39932 12344 pts/1 S 15:22 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 28317 0.0 0.9 39932 12344 pts/1 S 15:22 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 28318 0.0 0.9 39932 12344 pts/1 S 15:22 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 28319 0.0 0.9 39932 12344 pts/1 S 15:22 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 28320 0.0 0.9 39932 12344 pts/1 S 15:22 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 28321 0.0 0.9 39932 12344 pts/1 S 15:22 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 28322 0.0 0.9 39932 12344 pts/1 S 15:22 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 28323 0.0 0.9 39932 12344 pts/1 S 15:22 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 28324 0.0 0.9 39932 12344 pts/1 S 15:22 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 28344 0.0 0.9 39932 12344 pts/1 S 15:23 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 28345 0.0 0.9 39932 12344 pts/1 S 15:23 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 28366 0.2 0.9 39932 12344 pts/1 S 15:23 0:03 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 28407 0.0 0.9 39932 12344 pts/1 S 15:24 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 28758 0.0 0.9 39932 12344 pts/1 S 15:32 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
mysql 29152 0.0 0.9 39932 12344 pts/1 S 15:42 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid --skip-locking
-
- Posts: 471
- Joined: 2003-08-21 10:21
- Location: Berlin
Re: Wo is die Configfile?
Es werden also keine Nonstandard-Locations verwendet. Es gelten also die von Deinem mysqld genannten Standard-Locations.basetiger wrote:Code: Select all
[root /etc]# ps axuwww| grep mysql[d] root 28277 0.0 0.0 1692 840 pts/1 S 15:22 0:00 sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/cobalt.cds-ds.com.pid