Toon posts:

opnieuw installeren mysql

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

Verwijderd

Topicstarter
Hoi,

Omdat mijn mysql niet meer wilde opstarten wil ik het opnieuw installeren, maar nadat ik het heb verwijderd met
code:
1
apt-get remove mysql-server

Wil hij het niet meer installeren met
code:
1
apt-get install mysql-server

Krijg het volgende te zien:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
stoop:/var/lib# apt-get install mysql-server
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  mysql-server
0 upgraded, 1 newly installed, 0 to remove and 25 not upgraded.
Need to get 0B/3645kB of archives.
After unpacking 8810kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 13102 files and directories currently installed.)
Unpacking mysql-server (from .../mysql-server_4.0.24-10_i386.deb) ...
ERROR: There's not enough space in /var/lib/mysql/
dpkg: error processing /var/cache/apt/archives/mysql-server_4.0.24-10_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-server_4.0.24-10_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


/var/lib/mysql is leeg, en ik draai debian

Hoe kan ik zo snal mogelijk de mysql-server weer online krijgen, heb snel backup van /var/lib/mysql gemaakt, want mysqldump werkte ook niet meer.

  • cowgirl
  • Registratie: November 2000
  • Laatst online: 18-12-2025
code:
1
ERROR: There's not enough space in /var/lib/mysql/

Lijkt me toch duidelijk? Hoe staat het met je harde schijf ruimte in dat filesystem?

  • Equator
  • Registratie: April 2001
  • Laatst online: 09-02 07:08

Equator

Crew Council

#whisky #barista

ERROR: There's not enough space in /var/lib/mysql
Lijkt mij dat je even ruimte vrij moet maken in de partitie waar /var op staat.

Voor de installatie heb je blijkbaar meer ruimte nodig..

Verwijderd

hij zegt "There's not enough space in /var/lib/mysql/"

dus gooi er eens een "df -h" uit en check of alles ok is qua diskspace op de partitie waar /var/lib/mysql op staat.

Verwijderd

15:50

3x hetzelfde antwoord :P LOL

Verwijderd

Topicstarter
Ja, zover was ik ook al,

Maar er is wel genoeg ruimte, alleen partities worden raar weergegeven bij df -h. Misschien dat ie daarom het niet installeert, er is wel ruimte, dat weet ik zeker.
Hij zegt:

code:
1
2
3
4
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1            -503038349938k  1.0k  0.0k  33% /
/dev/hda2            -1258702458455k  1.0k  0.0k  32% /home
/dev/hda4            -5947885329860k  1.0k  0.0k   5% /ftp


Misschien werkt het niet omdat ie hier naar kijkt, maar is er geen andere manier?

  • cowgirl
  • Registratie: November 2000
  • Laatst online: 18-12-2025
Als dat inderdaad de oorzaak is (en dat zou heel goed kunnen) zou ik zorgen dat dat probleem opgelost wordt. Anders heb je in no-time opnieuw problemen.

Verwijderd

Topicstarter
Dat is waar, maar server opnieuw installeren is misschien ook een beetje overdreven.
En wil hem eigenlijk zo snel mogelijk weer in de lucht hebben. Het enige wat moet gebeuren is mysql-server erop.

  • cowgirl
  • Registratie: November 2000
  • Laatst online: 18-12-2025
Server opnieuw installeren is misschien ook wat overdreven. Zoeken naar 'output df klopt niet' binnen NOS levert nog wel een paar hits op. Misschien dat je daar wat mee kunt.
Zoeken naar output df klopt niet

Verwijderd

Topicstarter
Rebooten werkt niet en een filesystemcheck wil ook niet helpen.

  • cowgirl
  • Registratie: November 2000
  • Laatst online: 18-12-2025
In een ander draadje hielp het updaten van fileutils, het is wel een ouder draadje dus het kan zijn dat jij die versie al hebt. Welke Debian release draai je?

Verwijderd

Topicstarter
Dit werkt inderdaad, ben weer een stap verder, alleen wordt hij nu nog niet goed geinstalleerd:

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
stoop:/var/lib# apt-get install mysql-server
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  mysql-server
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 0B/3645kB of archives.
After unpacking 8810kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 13174 files and directories currently installed.)
Unpacking mysql-server (from .../mysql-server_4.0.24-10_i386.deb) ...
dpkg: warning - unable to delete old file `/var/log/mysql': Directory not empty
Setting up mysql-server (4.0.24-10) ...
Installing new version of config file /etc/init.d/mysql ...
Installing new version of config file /etc/logrotate.d/mysql-server ...
Installing new version of config file /etc/logcheck/ignore.d.workstation/mysql-server ...
Installing new version of config file /etc/logcheck/ignore.d.server/mysql-server ...
Stopping MySQL database server: mysqld.

WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.
Starting MySQL database server: mysqld...failed.
        Please take a look at the syslog.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!


Zo te zien zit het in de /etc/mysql/my.cnf, die is er inderdaad niet, die is verwijderd, waarom wordt die niet gewoon opnieuw aangemaakt?

Joris

  • TheRookie
  • Registratie: December 2001
  • Niet online

TheRookie

Nu met R1200RT

wat staat er in de README file waarnaar gerefereerd wordt ?

Verwijderd

Topicstarter
Volgens mij niks wat van toepassing is:

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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
* PERFORMANCE TUNING:
According to MySQL you can speed up MySQL by up to >10% by just statically
compile it. This though causes crashes when using LDAP in /etc/nsswitch.conf
(Bug #299382) which is why we disabled it by default. Use the following
commands to build a package yourself: apt-get source mysql-server;
cd mysql-dfsg-*; STATIC_MYSQLD=1 debian/rules binary

* MYSQL WON'T START OR STOP?:
=============================
You may never ever delete the special mysql user "debian-sys-maint". This user
together with the credentials in /etc/mysql/debian.cnf are used by the
init scripts to stop the server as they would require knowledge of the
mysql root users password else.
So in most of the times you can fix the situation by making sure that
the debian.cnf file contains the right password, e.g. by setting a new
one (remember to do a "flush privileges" then).


* WHAT TO DO AFTER UPGRADES:
============================
 - running mysql_fix_privilege_tables to be able to make use of
   possibly added new privilege columns. This script does not give
   any use more rights.

* WHAT TO DO AFTER INSTALLATION:
================================
The MySQL manual describes certain steps to do at this stage in a separate
chapter.  They are not necessary as the Debian packages does them
automatically.

The only thing that is left over for the admin is 
 - setting the passwords
 - creating new users and databases
 - read the rest of this text


* SSL/TLS SECURE NETWORKING:
============================
Please take a look at my SSL-MINI-HOWTO.txt which is in this directory, too.

* NETWORKING:
=============
For security reasons, the Debian package has enabled networking only on the
loopback device using "bind-address" in /etc/mysql/my.cnf.  Check with "netstat
-tlnp" where it is listening. If your connection is aborted immediately see if
"mysqld: all" or similar is in /etc/hosts.allow and read hosts_access(5).

* WHERE IS THE DOCUMENTATION?:
==============================
As the documentation is under a different licence than the rest of MySQL it
had to be separated into the mysql-doc package which is in the non-free branch
of Debian. You can find the Changelogs/News there, too.

* PASSWORDS:
============
It is strongly recommended to set a password for the mysql root user 
(which is NOT the same as the "normal" root user) with the command:
 /usr/bin/mysqladmin -u root password 'enter-your-good-new-password-here'
If you already had a password set add " -p " before "-u" to the line above.

If you are tired to type the password in every time or want to automate
your scripts you can store it in the file $HOME/.my.cnf. It should be 
chmod 0600 (-rw------- username username .my.cnf) to ensure that nobody 
else can read it. Every other configuration parameter can be stored 
there, too. You will find an example below and more information in the
MySQL manual in /usr/share/doc/mysql-doc or www.mysql.com.

ATTENTION: It is necessary, that a .my.cnf from root always contains a "user"
line whereever there is a "password" line, else, the Debian maintenance
scripts, that use /etc/mysql/debian.cnf, will use the username
"debian-sys-maint" but the password that is in root's .my.cnf. Also note,
that every change you make in the /root/.my.cnf will affect the mysql cron 
script, too.

    # an example of $HOME/.my.cnf
    [mysql]
    user        = your-mysql-username
    password    = enter-your-good-new-password-here

    [mysqladmin]
    user        = your-mysql-username
    password    = enter-your-good-new-password-here

* BIG_ROWS FOR EVEN MORE ROWS IN A TABLE:
=========================================
If you ever run out of rows in a table there is the possibility of building the
package with "-DBIG_ROWS" which, according to a MySQL employee on 
packagers@lists.mysql.com should leat to a 64bit row index (I guess > 2^32 rows)
but also to an aprox. 5% performance loss.


Ik zal eens een standaard my.cnf aanmaken

  • daft_dutch
  • Registratie: December 2003
  • Laatst online: 02-12-2025

daft_dutch

>.< >.< >.< >.<

als je iets echt wilt verwijderen moet je apt-get remove --purge gebruiken
maar ach wie lees de manuals tegen woordig

>.< >.< >.< >.<


Verwijderd

Topicstarter
Hoi,

Het is me gelukt om de server weer te starten.
allemaal heel erg bedankt,
Iemand nog ideeën op de backup van /var/lib/mysql terug te zetten (behalve gewoon copieren). ik hoop dat dit lukt, anders ben ik al mijn data kwijt.

  • kenneth
  • Registratie: September 2001
  • Niet online

kenneth

achter de duinen

Tip voor de volgende keer: los het probleem op, symptoombestrijding (herinstallatie) op een systeem waar iets niet werkt zorgt meestal voor alleen maar meer spoken ;)
En je leert er nog 'ns wat van, natuurlijk.

Look, runners deal in discomfort. After you get past a certain point, that’s all there really is. There is no finesse here.


  • Robtimus
  • Registratie: November 2002
  • Laatst online: 18:41

Robtimus

me Robtimus no like you

Verwijderd schreef op dinsdag 20 september 2005 @ 16:40:
Hoi,

Het is me gelukt om de server weer te starten.
allemaal heel erg bedankt,
Iemand nog ideeën op de backup van /var/lib/mysql terug te zetten (behalve gewoon copieren). ik hoop dat dit lukt, anders ben ik al mijn data kwijt.
Ik heb onder RedHat 9 eens een backup gemaakt door gewoon de bestanden te kopieren, en terug gezet door, je raadt het al, ze terug te kopieren. Valt dus te proberen (nadat je eerst een dump hebt gemaakt van je huidige content).

More than meets the eye
There is no I in TEAM... but there is ME
system specs

Pagina: 1