title: MySQL => MariaDB = PHP Errors Header/Library versions
body: <p>I managing a little vps of my own and I've recently moved from mysql to mariadb (5.3).</p>
  
  <p>On some php test projects that usually worked under php5/mysql5, I get some header errors about MySQL versions.</p>
  
  <pre><code>  Headers and client library minor version mismatch. Headers:50158 Library:50303 
  </code></pre>
  
  <p>My guess here is : MariaDB 5.3 is the Library, and the Headers is the libmysqlclient.</p>
  
  <p>I don't know where I've failed when updating/installing (even tried remove mysql and only install mariadb) but it seems that it happens with the php-mysql package.</p>
  
  <p>I've tried to use the -o from apt-get to configure --with-mysql=mariadb-devel as I've seen on a topic, but in fact, it seems I don't know how to configure php5-mysql package (I don't even know what does it do : configurations files or libraries ?)</p>
  
  <p>Well to sum up, why is my PHP5 MySQL header still in 5.1 where the library is 5.3 ?</p>
  
  <p>Thank you in advance for any help,
  Lucas.</p>
  
  <p>[ Plus ]
  How can I recover the configure parameters from an apt-get install ?
  I've got no results when i use :</p>
  
  <pre><code>php5 -i | grep configure
  </code></pre>