mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
Updated MySQL tips (markdown)
parent
161b5ba2e5
commit
ec875e5c01
1 changed files with 33 additions and 1 deletions
|
|
@ -33,3 +33,35 @@
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>>journalctl -xe</p>
|
<p>>journalctl -xe</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
<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>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue