title: MariaDB not able to change innodb_log_file_size
body: <p>I was getting errors while uploading images to my mysql database because the log file size was too small. So I am trying to increase it. I tried adding this to my /etc/mysql/my.cnf:</p>
  
  <pre><code>[mysqld]
  innodb_log_file_size=2G
  innodb_log_files_in_group=2
  </code></pre>
  
  <p>Then I moved the ib_logfile0 and ib_logfile1 files from /var/lib/mysql to /tmp.</p>
  
  <p>Then I ran:</p>
  
  <pre><code>sudo service mysql restart
  </code></pre>
  
  <p>And I checked the value:</p>
  
  <pre><code>| innodb_log_file_size          | 50331648 |
  </code></pre>
  
  <p>But as you can see, it's still the default value.</p>
  
  <p>Following Google's advice, I also checked:</p>
  
  <pre><code>| innodb_fast_shutdown | 1     |
  </code></pre>
  
  <p>I also checked the mysql error logs but found them to be empty.</p>
  
  <p>So, why is this setting not getting applied?</p>