[FC1/MySQL 4] my.cnf newer than swap file*

Pagina: 1
Acties:
  • 237 views sinds 30-01-2008
  • Reageer

  • QUILIX
  • Registratie: Juni 2001
  • Laatst online: 10-09-2024

QUILIX

zZzZzZz.....

Topicstarter
Dames en heren,

Ik ben ten einde raad. Ik wou de my.conf aanpassen. Dus dingen veranderd en opgeslagen. Maar ik krijg MySQL niet meer aan de praat. Bij restart zegt het OK, maar de forum die ik host kan geen verbinding meer maken. Reboot helpt ook niet.

Tevens krijg ik deze melding altijd als ik in vi wil:


quote:
--------------------------------------------------------------------------------

E325: ATTENTION
Found a swap file by the name ".my.cnf.swp"
owned by: root dated: Thu Feb 9 13:58:59 2006
file name: /etc/my.cnf
modified: YES
user name: root host name: air341.startdedicated.com
process ID: 14430
While opening file "my.cnf"
dated: Thu Feb 9 14:19:13 2006
NEWER than swap file!

(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.

(2) An edit session for this file crashed.
If this is the case, use "ecover" or "vim -r my.cnf"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".my.cnf.swp"
to avoid this message.

--------------------------------------------------------------------------------


Zou iemand mij alsjeblieft willen helpen. Hoe kan ik dit oplossen?

  • Brakkie
  • Registratie: Maart 2001
  • Niet online

Brakkie

blaat

En de gegeven oplossingen werken niet?

Systeem | Strava


  • QUILIX
  • Registratie: Juni 2001
  • Laatst online: 10-09-2024

QUILIX

zZzZzZz.....

Topicstarter
Brakkie schreef op donderdag 09 februari 2006 @ 21:52:
En de gegeven oplossingen werken niet?
Nee helaas.
Ik probeer .my.cnf.swp te wissen, maar kan hem nergens vinden.

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 22-01 23:51

NMe

Quia Ego Sic Dico.

Gebruik je Linux? Windows? Welke versie/distro? Welke versie van MySQL?

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


  • Wolfboy
  • Registratie: Januari 2001
  • Niet online

Wolfboy

ubi dubium ibi libertas

Let er wel op dat alle bestanden die met . beginnen standaard niet zichtbaar zijn
Doe eens 'ls -a' in de directory :)
En daarna eens 'rm -f .my.cnf.swp'

Blog [Stackoverflow] [LinkedIn]


  • QUILIX
  • Registratie: Juni 2001
  • Laatst online: 10-09-2024

QUILIX

zZzZzZz.....

Topicstarter
Fedora Core 1 met Plesk 7.0.2.
Dus ik dacht MySQL 4.x.

Ik wil de root gegevens wel geven als iemand er zelf naar wil kijken.

  • QUILIX
  • Registratie: Juni 2001
  • Laatst online: 10-09-2024

QUILIX

zZzZzZz.....

Topicstarter
Wolfboy schreef op donderdag 09 februari 2006 @ 21:57:
Let er wel op dat alle bestanden die met . beginnen standaard niet zichtbaar zijn
Doe eens 'ls -a' in de directory :)
En daarna eens 'rm -f .my.cnf.swp'
Bedankt, ik heb het gewist. Maar het probleem blijft zich voordoen.

Plesk kan zelf ook niet bij MySQL:
Unable to connect to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

--------------------------------------------------------------------------------
0: /usr/local/psa/admin/auto_prepend/auth.php3:437 psaerror(string "Unable to connect to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)")

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 22-01 23:51

NMe

Quia Ego Sic Dico.

QUILIX schreef op donderdag 09 februari 2006 @ 21:58:
Ik wil de root gegevens wel geven als iemand er zelf naar wil kijken.
Daar zou ik niet zo scheutig mee zijn. :X

Anyway, dit heeft niets met programmeren te maken, de mensen in Non-Windows Operating Systems kunnen je hier vast beter mee op weg helpen. ;)

PW>>NOS

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


  • QUILIX
  • Registratie: Juni 2001
  • Laatst online: 10-09-2024

QUILIX

zZzZzZz.....

Topicstarter
Dit krijg ik trouwens als ik MySQL restart:

Stopping MySQL: [FAILED]
Starting MySQL: [ OK ]

Maar de forum en Plesk kan dan nog steeds geen verbinding maken.

  • Paul
  • Registratie: September 2000
  • Laatst online: 21:57
Staat MySQL wel in je process list (ps aux)? Bestaat /var/lib/mysql/mysql.sock ? Post je config eens, heb je toevallig sockets uitgezet en alleen netwerkberbindingen aangezet oid?

Post die configfile eens?

"Your life is yours alone. Rise up and live it." - Richard Rahl
Rhàshan - Aditu Sunlock


  • QUILIX
  • Registratie: Juni 2001
  • Laatst online: 10-09-2024

QUILIX

zZzZzZz.....

Topicstarter
Paul Nieuwkamp schreef op donderdag 09 februari 2006 @ 22:08:
Staat MySQL wel in je process list (ps aux)? Bestaat /var/lib/mysql/mysql.sock ? Post je config eens, heb je toevallig sockets uitgezet en alleen netwerkberbindingen aangezet oid?

Post die configfile eens?
Plesk gebruikt zo te zien sockets.

Hieronder de gegevens in my.cnf:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
set-variable = max_connections=512
set-variable = key_buffer_size=128M
set-variable = myisam_sort_buffer_size=128M
set-variable = join_buffer_size=1M
set-variable = read_buffer_size=1M
set-variable = sort_buffer_size=2M
set-variable = table_cache=1800
set-variable = thread_cache_size=384
set-variable = wait_timeout=180
set-variable = connect_timeout=10
set-variable = tmp_table_size=256M
set-variable = max_allowed_packet=64M
set-variable = max_connect_errors=10
set-variable = read_rnd_buffer_size=524288
set-variable = bulk_insert_buffer_size=8M
set-variable = thread_concurrency=2
set-variable = query_cache_limit=2M
set-variable = query_cache_size=128M
set-variable = query_cache_type=1
set-variable = query_prealloc_size=16384
set-variable = query_alloc_block_size=16384

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


En hieronder ps aux:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.1  0.0  2768  424 ?        S    14:29   0:03 init [3]
root         2  0.0  0.0     0    0 ?        SW   14:29   0:00 [keventd]
root         3  0.0  0.0     0    0 ?        SW   14:29   0:00 [kapmd]
root         4  0.0  0.0     0    0 ?        SWN  14:29   0:00 [ksoftirqd/0]
root         6  0.0  0.0     0    0 ?        SW   14:29   0:00 [bdflush]
root         5  0.0  0.0     0    0 ?        SW   14:29   0:00 [kswapd]
root         7  0.0  0.0     0    0 ?        SW   14:29   0:00 [kupdated]
root         8  0.0  0.0     0    0 ?        SW   14:29   0:00 [mdrecoveryd]
root        12  0.0  0.0     0    0 ?        SW   14:29   0:00 [kjournald]
root       479  0.0  0.0     0    0 ?        SW   14:29   0:00 [kjournald]
root       841  0.0  0.0  3208  576 ?        S    14:29   0:00 syslogd -m 0
root       845  0.0  0.0  2568  388 ?        S    14:29   0:00 klogd -x
rpc        871  0.0  0.0  1960  568 ?        S    14:29   0:00 portmap
rpcuser    890  0.0  0.0  2416  708 ?        S    14:29   0:00 rpc.statd
root       925  0.0  0.0  3036  432 ?        S    14:29   0:00 /usr/sbin/apmd -p 10 -w 5 -W -P /etc/sysconfig/ap
root       964  0.0  0.0  2448  660 ?        S    14:29   0:00 /usr/sbin/smartd
named      978  0.0  0.2 37812 2676 ?        S    14:29   0:00 /usr/sbin/named -u named -c /etc/named.conf -u na
root       991  0.0  0.1  5476 1460 ?        S    14:29   0:00 /usr/sbin/sshd
root      1005  0.0  0.0  2684  904 ?        S    14:29   0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root      1097  0.0  0.0  2136  512 ?        S    14:29   0:00 /usr/lib/courier-imap/libexec/couriertcpd -addres
root      1100  0.0  0.0  2408  196 ?        S    14:29   0:00 /usr/lib/courier-imap/sbin/courierlogger imapd
root      1109  0.0  0.0  2696  508 ?        S    14:29   0:00 /usr/lib/courier-imap/libexec/couriertcpd -addres
root      1112  0.0  0.0  2632  196 ?        S    14:29   0:00 /usr/lib/courier-imap/sbin/courierlogger imapd-ss
root      1119  0.0  0.0  2552  520 ?        S    14:29   0:00 /usr/lib/courier-imap/libexec/couriertcpd -addres
root      1121  0.0  0.0  3100  360 ?        S    14:29   0:00 /usr/lib/courier-imap/sbin/courierlogger pop3d
root      1130  0.0  0.0  3140  512 ?        S    14:29   0:00 /usr/lib/courier-imap/libexec/couriertcpd -addres
root      1135  0.0  0.0  2260  196 ?        S    14:29   0:00 /usr/lib/courier-imap/sbin/courierlogger pop3d-ss
qmails    1139  0.0  0.0  1948  360 ?        S    14:29   0:00 qmail-send
qmaill    1141  0.0  0.0  2472  436 ?        S    14:29   0:00 splogger qmail
root      1142  0.0  0.0  3044  328 ?        S    14:29   0:00 qmail-lspawn ./Maildir/
qmailr    1143  0.0  0.0  2152  356 ?        S    14:29   0:00 qmail-rspawn
qmailq    1144  0.0  0.0  2444  304 ?        S    14:29   0:00 qmail-clean
root      1160  0.0  1.9 25464 19920 ?       S    14:30   0:00 /usr/bin/spamd -d -c -a -m5 -H
root      1186  0.0  0.9 22772 9680 ?        S    14:30   0:00 /usr/sbin/httpd
postgres  1235  0.0  0.1 10380 1836 ?        S    14:30   0:00 /usr/bin/postmaster -p 5432
postgres  1237  0.0  0.1 11372 1816 ?        S    14:30   0:00 postgres: stats buffer process
postgres  1238  0.0  0.1 10380 1836 ?        S    14:30   0:00 postgres: stats collector process
root      1276  0.0  0.9 22716 9616 ?        S    14:30   0:00 /usr/sbin/httpd
apache    1279  0.0  1.0 23892 11268 ?       S    14:30   0:01 /usr/sbin/httpd
root      1294  0.0  0.4 11512 4564 ?        S    14:30   0:00 /usr/local/psa/admin/bin/httpsd
psaadm    1296  0.0  0.5 12456 5916 ?        S    14:30   0:00 /usr/local/psa/admin/bin/httpsd
psaadm    1297  0.0  0.5 12456 5912 ?        S    14:30   0:00 /usr/local/psa/admin/bin/httpsd
psaadm    1298  0.0  0.4 11512 4544 ?        S    14:30   0:00 /usr/local/psa/admin/bin/httpsd
psaadm    1299  0.0  0.4 11512 4544 ?        S    14:30   0:00 /usr/local/psa/admin/bin/httpsd
psaadm    1300  0.0  0.4 11512 4544 ?        S    14:30   0:00 /usr/local/psa/admin/bin/httpsd
root      1314  0.0  0.0  2900  608 ?        S    14:30   0:00 crond
daemon    1332  0.0  0.0  2180  564 ?        S    14:30   0:00 /usr/sbin/atd
root      1341  0.0  0.0  2892  356 tty1     S    14:30   0:00 /sbin/mingetty tty1
root      1342  0.0  0.0  2876  356 tty2     S    14:30   0:00 /sbin/mingetty tty2
root      1343  0.0  0.0  2600  352 tty3     S    14:30   0:00 /sbin/mingetty tty3
root      1344  0.0  0.0  2420  352 tty4     S    14:30   0:00 /sbin/mingetty tty4
root      1345  0.0  0.0  2364  356 tty5     S    14:30   0:00 /sbin/mingetty tty5
root      1346  0.0  0.0  3264  352 tty6     S    14:30   0:00 /sbin/mingetty tty6
root      1355  0.0  0.2  8840 2064 ?        S    14:30   0:00 sshd: root@pts/0
root      1360  0.0  0.1  5236 1384 pts/0    S    14:30   0:00 -bash
apache    1592  0.1  1.1 23924 11300 ?       S    14:36   0:01 /usr/sbin/httpd
apache    1594  0.0  1.0 23864 11240 ?       S    14:36   0:01 /usr/sbin/httpd
apache    1595  0.0  1.0 23744 11120 ?       S    14:36   0:01 /usr/sbin/httpd
apache    1602  0.0  1.0 23888 11264 ?       S    14:36   0:01 /usr/sbin/httpd
apache    1621  0.0  1.0 23884 11260 ?       S    14:36   0:01 /usr/sbin/httpd
apache    1660  0.1  1.1 24072 11448 ?       S    14:39   0:01 /usr/sbin/httpd
apache    1661  0.0  1.1 24052 11428 ?       S    14:39   0:01 /usr/sbin/httpd
apache    1852  0.0  1.1 24044 11420 ?       S    14:54   0:00 /usr/sbin/httpd
apache    2075  0.0  1.0 23724 11096 ?       S    15:03   0:00 /usr/sbin/httpd
qmaild    2108  0.1  0.0  5000  664 ?        S    15:05   0:00 /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_au
root      2109  0.0  0.0  3868  748 pts/0    R    15:05   0:00 ps aux

  • Paul
  • Registratie: September 2000
  • Laatst online: 21:57
In je process-list staat geen mysql! Bestaat /var/run/mysqld/mysqld.pid en zo ja, welk getal staat daar in?

Wat zegt /var/log/mysqld.log?

"Your life is yours alone. Rise up and live it." - Richard Rahl
Rhàshan - Aditu Sunlock


  • QUILIX
  • Registratie: Juni 2001
  • Laatst online: 10-09-2024

QUILIX

zZzZzZz.....

Topicstarter
Hmm ik heb een aantal zinnen weggehaald in my.cnf en hij doet het weer.
Erg raar. Heb je mischien een idee wat de probleem veroorzaakte?
Nu is mijn my.cnf zo:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
set-variable = max_connections=512
set-variable = key_buffer_size=128M
set-variable = wait_timeout=180
set-variable = connect_timeout=10
set-variable = thread_concurrency=2

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

  • igmar
  • Registratie: April 2000
  • Laatst online: 31-01 23:50

igmar

ISO20022

En wat zeggen de logfiles ? Leuk dat je zo ongeveer alles post wat je kan posten, maar ik kan je aanraden eens in de MySQL logfiles te kijken voordat je een topic opent.
Pagina: 1