<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Il giorno 18 dicembre 2013 11:32, Daniele Nasuti <span dir="ltr"><<a href="mailto:daniele.nasuti@gmail.com" target="_blank">daniele.nasuti@gmail.com</a>></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"><<a href="mailto:robyduck@fedoraproject.org" target="_blank">robyduck@fedoraproject.org</a>></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 <<a href="mailto:daniele.nasuti@gmail.com" target="_blank">daniele.nasuti@gmail.com</a>> ha scritto:<div>
<div class="h5"><br>
<div><div>> Buongiorno lista,<br>
> sto installando mysql e succede una cosa strana, probabilmente sarrà una<br>
> domada da niubbo.<br>
> Come mai io lancio<br>
> #yum install mysql<br>
> e mi propone l'installazione di mariadb?!<br>
><br>
> Grazie in anticipo e buona giornata :)<br>
><br>
> --<br>
> Daniele<br>
<br>
</div></div>Ciao Daniele,<br>
mysql è stato "abbandonato" a favore di mariadb già dalla versione 19.<br>
Di default veniva installato comunque mariadb, anche se lanciavi<br>
l'installazione richiedendo mysql. Ora questo redirect, se vogliamo<br>
chiamarlo così, è stato tolto. Tra l'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 '/lib/systemd/system/mysqld.service' '/etc/systemd/system/multi-user.target.wants/mysqld.service'<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 'help;' or '\h' for help. Type '\c' to clear the current input statement.
</pre>
<div class=""># show user info</div><br>
MariaDB [(none)]>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)]>set password for root@localhost=password('password'); <br>
Query OK, 0 rows affected (0.00 sec)
</div>
<div class="">
<div class=""><br># set root password</div><br>
MariaDB [(none)]>set password for root@'127.0.0.1'=password('password'); <br>
Query OK, 0 rows affected (0.00 sec)
</div>
<div class="">
<div class=""><br># set root password</div><br>
MariaDB [(none)]>set password for root@'www.server.world'=password('password'); <br>
Query OK, 0 rows affected (0.00 sec)
</div>
<div class="">
<div class=""><br># delete IPV6 user ( if you don't need )</div><br>
MariaDB [(none)]>delete from mysql.user where user='root' and host='::1'; <br>
Query OK, 1 rows affected (0.00 sec)
</div>
<div class="">
<div class=""><br># delete anonymous user</div><br>
MariaDB [(none)]>delete from mysql.user where user=''; <br>
Query OK, 2 rows affected (0.00 sec)
</div>
<br>MariaDB [(none)]>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)]>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 'help;' or '\h' for help. Type '\c' to clear the current input statement.
</pre>
MariaDB [(none)]>exit<br>
Bye
<br></div></div>