<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Il giorno 18 dicembre 2013 11:32, Daniele Nasuti <span dir="ltr">&lt;<a href="mailto:daniele.nasuti@gmail.com" target="_blank">daniele.nasuti@gmail.com</a>&gt;</span> ha scritto:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Capito, vediamo se ho capito bene, i comandi SQL sono identici, i comandi e le configurazioni php per mysql rimangono invariati. <br>
Giusto?<br><br></div><div>Perciò se volessi continuare ad usare mysql-workbench verso un database mariadb, questi funzioneranno correttamente, esatto?<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">Il giorno 18 dicembre 2013 11:24, Robert Mayr <span dir="ltr">&lt;<a href="mailto:robyduck@fedoraproject.org" target="_blank">robyduck@fedoraproject.org</a>&gt;</span> ha scritto:<br>

</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Il 18 dicembre 2013 11:12, Daniele Nasuti &lt;<a href="mailto:daniele.nasuti@gmail.com" target="_blank">daniele.nasuti@gmail.com</a>&gt; ha scritto:<div>
<div class="h5"><br>

<div><div>&gt; Buongiorno lista,<br>
&gt; sto installando mysql e succede una cosa strana, probabilmente sarrà una<br>
&gt; domada da niubbo.<br>
&gt; Come mai io lancio<br>
&gt; #yum install mysql<br>
&gt; e mi propone l&#39;installazione di mariadb?!<br>
&gt;<br>
&gt; Grazie in anticipo e buona giornata :)<br>
&gt;<br>
&gt; --<br>
&gt; Daniele<br>
<br>
</div></div>Ciao Daniele,<br>
mysql è stato &quot;abbandonato&quot; a favore di mariadb già dalla versione 19.<br>
Di default veniva installato comunque mariadb, anche se lanciavi<br>
l&#39;installazione richiedendo mysql. Ora questo redirect, se vogliamo<br>
chiamarlo così, è stato tolto. Tra l&#39;altro non esiste nemmeno più un<br>
servizio mysqld, per attivarlo dovrai dare un:<br>
<br>
# systemctl enable mariadb<br>
<br>
Mariadb è perfettamente compatibile con i database che hai, anche se<br>
fatti con mysql.<br>
Ciao<br>
<span><font color="#888888"><br>
--<br>
Robert Mayr<br>
(robyduck)<br>
_______________________________________________<br>
it-users mailing list<br>
<a href="mailto:it-users@lists.fedoraproject.org" target="_blank">it-users@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/it-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/it-users</a><br>
</font></span></div></div></blockquote></div><br></div>
<br>_______________________________________________<br>
it-users mailing list<br>
<a href="mailto:it-users@lists.fedoraproject.org">it-users@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/it-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/it-users</a><br></blockquote></div><br></div><div class="gmail_extra">Questi i comandi che utilizzo per installare mariadb e renderlo sicuro<br>
<br><br><div class="">
[root@www ~]#yum -y install mariadb-server </div>
[<br>root@www ~]#systemctl start mysqld.service <br>
<br>[root@www ~]#systemctl enable mysqld.service <br>
<br>ln -s &#39;/lib/systemd/system/mysqld.service&#39; &#39;/etc/systemd/system/multi-user.target.wants/mysqld.service&#39;<br>
<br>[root@www ~]#mysql -u root   # connect to MariaDBs<br>
<pre style="font-family:Arial">Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 5.5.31-MariaDB MariaDB Server

Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.

Type &#39;help;&#39; or &#39;\h&#39; for help. Type &#39;\c&#39; to clear the current input statement.

</pre>
<div class=""># show user info</div><br>
MariaDB [(none)]&gt;select user,host,password from mysql.user; <br>
<pre style="font-family:Courier New;font-size:14px;letter-spacing:0px">+------+------------------+----------+
| user | host             | password |
+------+------------------+----------+
| root | localhost        |          |
| root | www.server.world |          |
| root | 127.0.0.1        |          |
| root | ::1              |          |
|      | localhost        |          |
|      | www.server.world |          |
+------+------------------+----------+
6 rows in set (0.00 sec)

</pre>
<div class="">
<div class=""># set root password</div><br>
MariaDB [(none)]&gt;set password for root@localhost=password(&#39;password&#39;); <br>
Query OK, 0 rows affected (0.00 sec)
</div>
<div class="">
<div class=""><br># set root password</div><br>
MariaDB [(none)]&gt;set password for root@&#39;127.0.0.1&#39;=password(&#39;password&#39;); <br>
Query OK, 0 rows affected (0.00 sec)
</div>
<div class="">
<div class=""><br># set root password</div><br>
MariaDB [(none)]&gt;set password for root@&#39;www.server.world&#39;=password(&#39;password&#39;); <br>
Query OK, 0 rows affected (0.00 sec)
</div>
<div class="">
<div class=""><br># delete IPV6 user ( if you don&#39;t need )</div><br>
MariaDB [(none)]&gt;delete from mysql.user where user=&#39;root&#39; and host=&#39;::1&#39;; <br>
Query OK, 1 rows affected (0.00 sec)
</div>
<div class="">
<div class=""><br># delete anonymous user</div><br>
MariaDB [(none)]&gt;delete from mysql.user where user=&#39;&#39;; <br>
Query OK, 2 rows affected (0.00 sec)
</div>
<br>MariaDB [(none)]&gt;select user,host,password from mysql.user; <br>
<pre style="font-family:Courier New;font-size:14px;letter-spacing:0px">+------+------------------+-------------------------------------------+
| user | host             | password                                  |
+------+------------------+-------------------------------------------+
| root | localhost        | *xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| root | www.server.world | *xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| root | 127.0.0.1        | *xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
+------+------------------+-------------------------------------------+
3 rows in set (0.00 sec)

</pre>
MariaDB [(none)]&gt;exit <br>
Bye<br>
<br>[root@www ~]#mysql -u root -p <div class=""><div class=""><br># connect with root</div></div><br>
Enter password:<div class=""><div class=""># MariaDB root password you set</div></div><br>
<pre style="font-family:Arial">Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 5.5.31-MariaDB MariaDB Server

Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.

Type &#39;help;&#39; or &#39;\h&#39; for help. Type &#39;\c&#39; to clear the current input statement.

</pre>
MariaDB [(none)]&gt;exit<br>
Bye
<br></div></div>