Updated Apache tips (markdown)

ghost-from-the-past 2021-04-14 14:26:17 +02:00
parent d103cb350c
commit 161b5ba2e5

@ -1,32 +1 @@
<h3>MySQL - change the default of default_authentication_plugin</h3>
<p>
<br/>
</p>
<p>since Mysql version 8.0 the default values has been changed from mysql_native_password to caching_sha2_password</p>
<p>this needs to be reverted in the cnf file</p>
<p>
<br/>
</p>
<p>for my installation /etc/mysql/my.cnf is a symbolic link to /etc/alternatives/my.cnf which is a symbolic link to /etc/mysql/mysql.cnf</p>
<p>so we need to edit the file /etc/mysql/mysql.cnf</p>
<p>add the following at the end of the file</p>
<blockquote>
<p>[mysqld]</p>
<p>default_authentication_plugin=mysql_native_password</p>
</blockquote>
<p>the group [mysqld] is for the server, for the client the group is [mysql]</p>
<p>(info <span class="nolink">http://dev.mysql.com/doc/mysql/en/server-system-variables.html</span>
</p>
<p>
<a href="https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html">https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html</a> )</p>
<p>
<br/>
</p>
<p>possible places of the cnf file</p>
<ul>
<li>/etc/my.cnf</li>
<li>/etc/mysql/my.cnf</li>
<li>$MYSQL_HOME/my.cnf</li>
<li>[datadir]/my.cnf</li>
<li>~/.my.cnf</li>
</ul>
<p>the directory /var/www is where Apache2 expects to have the websites (in Ubuntu, Debian flavors)</p>