<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Void And Any &#187; debian</title>
	<atom:link href="http://voidandany.free.fr/index.php/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://voidandany.free.fr</link>
	<description>mon bazar...</description>
	<lastBuildDate>Sat, 09 Dec 2017 09:24:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Erreur lors de l&#8217;installation de MySQL sur Debian</title>
		<link>http://voidandany.free.fr/index.php/erreur-lors-de-linstallation-de-mysql-sur-debian/</link>
		<comments>http://voidandany.free.fr/index.php/erreur-lors-de-linstallation-de-mysql-sur-debian/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 16:55:58 +0000</pubDate>
		<dc:creator>voidAndAny</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Non classé]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dockstar]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://voidandany.free.fr/?p=4243</guid>
		<description><![CDATA[En fin de compte j&#8217;ai changé d&#8217;avis pour mon Dockstar et j&#8217;y ai installé MySQL, en effet la plupart des sites/scripts on en pré-requis MySQL. Or quand j&#8217;ai réinstallé MySQL : sudo aptitude install mysql-server mysql-client J&#8217;ai eu les erreurs suivantes &#8230; <a href="http://voidandany.free.fr/index.php/erreur-lors-de-linstallation-de-mysql-sur-debian/">Continuer la lecture <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>En fin de compte j&#8217;ai changé d&#8217;avis pour mon <a title="Marques-pages : Un mini serveur le Seagate Dockstar" href="http://voidandany.free.fr/index.php/marques-pages-un-mini-serveur-le-seagate-dockstar/">Dockstar</a> et j&#8217;y ai <a title="Installer et configurer Mysql sur le Dockstar" href="http://voidandany.free.fr/index.php/installer-et-configurer-mysql-sur-le-dockstar/">installé MySQL</a>, en effet la plupart des sites/scripts on en pré-requis MySQL.</p>
<p>Or quand j&#8217;ai réinstallé MySQL :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server mysql-client</pre></div></div>

<p>J&#8217;ai eu les erreurs suivantes :</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Les paquets partiellement installés suivants seront configurés : 
 mysql-server mysql-server-5.1 
 Aucun paquet ne va être installé, mis à jour ou enlevé.
 0 paquets mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
 Il est nécessaire de télécharger 0 o d'archives. Après dépaquetage, 0 o seront utilisés.
 Paramétrage de mysql-server-5.1 (5.1.49-3) ...
 Stopping MySQL database server: mysqld.
 /etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz ... (warning).
 Starting MySQL database server: mysqld.
 /etc/init.d/mysql: line 120: /etc/mysql/debian-start: Aucun fichier ou dossier de ce type
 invoke-rc.d: initscript mysql, action &quot;start&quot; failed.
 dpkg : erreur de traitement de mysql-server-5.1 (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 127
 configured to not write apport reports
 dpkg : des problèmes de dépendances empêchent la configuration de mysql-server :
 mysql-server dépend de mysql-server-5.1 ; cependant :
 Le paquet mysql-server-5.1 n'est pas encore configuré.
 dpkg : erreur de traitement de mysql-server (--configure) :
 problèmes de dépendances - laissé non configuré
 configured to not write apport reports
 Des erreurs ont été rencontrées pendant l'exécution :
 mysql-server-5.1
 mysql-server
 E: Sub-process /usr/bin/dpkg returned an error code (1)
 Échec de l'installation d'un paquet. Tentative de réparation : 
 Paramétrage de mysql-server-5.1 (5.1.49-3) ...
 Stopping MySQL database server: mysqld.
 /etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz ... (warning).
 Starting MySQL database server: mysqld.
 /etc/init.d/mysql: line 120: /etc/mysql/debian-start: Aucun fichier ou dossier de ce type
 invoke-rc.d: initscript mysql, action &quot;start&quot; failed.
 dpkg : erreur de traitement de mysql-server-5.1 (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 127
 dpkg : des problèmes de dépendances empêchent la configuration de mysql-server :
 mysql-server dépend de mysql-server-5.1 ; cependant :
 Le paquet mysql-server-5.1 n'est pas encore configuré.
 dpkg : erreur de traitement de mysql-server (--configure) :
 problèmes de dépendances - laissé non configuré
 Des erreurs ont été rencontrées pendant l'exécution :
 mysql-server-5.1
 mysql-server</pre></div></div>

<p>Voici la solution que j&#8217;ai trouvé sur <a href="http://ubuntuforums.org/showthread.php?t=814782">[ubuntu] mysql problem &#8211; Ubuntu Forums</a> :</p>
<p>Créer un fichier /etc/mysql/debian-start (avec sudo) et y copier ceci :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
 <span style="color: #666666; font-style: italic;">#</span>
 <span style="color: #666666; font-style: italic;"># This script is executed by &quot;/etc/init.d/mysql&quot; on every (re)start.</span>
 <span style="color: #666666; font-style: italic;">#</span>
 <span style="color: #666666; font-style: italic;"># Changes to this file will be preserved when updating the Debian package.</span>
 <span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">source</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>debian-start.inc.sh
&nbsp;
<span style="color: #007800;">MYSQL</span>=<span style="color: #ff0000;">&quot;/usr/bin/mysql --defaults-file=/etc/mysql/debian.cnf&quot;</span>
 <span style="color: #007800;">MYADMIN</span>=<span style="color: #ff0000;">&quot;/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf&quot;</span>
 <span style="color: #007800;">MYUPGRADE</span>=<span style="color: #ff0000;">&quot;/usr/bin/mysql_upgrade --defaults-extra-file=/etc/mysql/debian.cnf&quot;</span>
 <span style="color: #007800;">MYCHECK</span>=<span style="color: #ff0000;">&quot;/usr/bin/mysqlcheck --defaults-file=/etc/mysql/debian.cnf&quot;</span>
 <span style="color: #007800;">MYCHECK_SUBJECT</span>=<span style="color: #ff0000;">&quot;WARNING: mysqlcheck has found corrupt tables&quot;</span>
 <span style="color: #007800;">MYCHECK_PARAMS</span>=<span style="color: #ff0000;">&quot;--all-databases --fast --silent&quot;</span>
 <span style="color: #007800;">MYCHECK_RCPT</span>=<span style="color: #ff0000;">&quot;root&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># The following commands should be run when the server is up but in background</span>
 <span style="color: #666666; font-style: italic;"># where they do not block the server start and in one shell instance so that</span>
 <span style="color: #666666; font-style: italic;"># they run sequentially. They are supposed not to echo anything to stdout.</span>
 <span style="color: #666666; font-style: italic;"># If you want to disable the check for crashed tables comment</span>
 <span style="color: #666666; font-style: italic;"># &quot;check_for_crashed_tables&quot; out.</span>
 <span style="color: #666666; font-style: italic;"># (There may be no output to stdout inside the background process!)</span>
 <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Checking for corrupt, not cleanly closed and upgrade needing tables.&quot;</span>
 <span style="color: #7a0874; font-weight: bold;">&#40;</span>
 upgrade_system_tables_if_necessary;
 check_root_accounts;
 check_for_crashed_tables;
 <span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">&amp;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p>Rendre le fichier exécutable :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">755</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>debian-start</pre></div></div>

<p>Et reprendre l’installation (un dpkg reconfigure aurait sûrement aussi fait l&#8217;affaire):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server mysql-client</pre></div></div>

<p>Normalement il n&#8217;y a plus d&#8217;erreurs:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Les paquets partiellement installés suivants seront configurés :
 mysql-server mysql-server-5.1
 Aucun paquet ne va être installé, mis à jour ou enlevé.
 0 paquets mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
 Il est nécessaire de télécharger 0 o d'archives. Après dépaquetage, 0 o seront utilisés.
 Paramétrage de mysql-server-5.1 (5.1.49-3) ...
 Stopping MySQL database server: mysqld.
 Starting MySQL database server: mysqld.
 Checking for corrupt, not cleanly closed and upgrade needing tables..
 Paramétrage de mysql-server (5.1.49-3) ...</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://voidandany.free.fr/index.php/erreur-lors-de-linstallation-de-mysql-sur-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
