{"id":1559,"date":"2016-08-21T16:17:00","date_gmt":"2016-08-21T21:17:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/instalar-mariadb-en-fedora-24\/"},"modified":"2016-08-21T16:17:00","modified_gmt":"2016-08-21T21:17:00","slug":"instalar-mariadb-en-fedora-24","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/instalar-mariadb-en-fedora-24\/","title":{"rendered":"Instalar MariaDB en Fedora 24"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-oAFyBwzOLwE\/V7oOs43F6BI\/AAAAAAAADRg\/jb9JFcedgWMsAkJi7bS2Ww1XYJFDt4XcwCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-08-21%2B15-12-57.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"306\" src=\"https:\/\/4.bp.blogspot.com\/-oAFyBwzOLwE\/V7oOs43F6BI\/AAAAAAAADRg\/jb9JFcedgWMsAkJi7bS2Ww1XYJFDt4XcwCLcB\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-08-21%2B15-12-57.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Si bien MySQL es uno de los sistemas de gesti\u00f3n de bases de datos relacionales (SGBDR) m\u00e1s populares, tambi\u00e9n es cierto que hay otros desarrollos interesantes. Es el caso de MariaDB, un fork de MySQL implementado por la comunidad.<\/span><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<h3 style=\"text-align: justify;\"><span style=\"font-size: large;\"><b>\u00bfPor qu\u00e9 usar MariaDB?<\/b><\/span><\/h3>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">La adquisici\u00f3n de MySQL por parte de Oracle ha llevado a muchos usuarios a pensar que quiz\u00e1 el proyecto est\u00e9 entrando en un periodo de decadencia. Y MariaDB ofrece unas caracter\u00edsticas muy apetecibles:<\/span><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<ol>\n<li><span style=\"font-size: large;\">Servidor SQL con licencia GPL.<\/span><\/li>\n<li><span style=\"font-size: large;\">Robusto, seguro y escalable.<\/span><\/li>\n<li><span style=\"font-size: large;\">M\u00e1s r\u00e1pido con cargas complejas.<\/span><\/li>\n<li><span style=\"font-size: large;\">Inclusi\u00f3n de m\u00e1s motores de almacenamiento. Junto a los mecanismos de almacenamiento est\u00e1ndar (MyISAM, BLACKHOLE, CSV, MEMORY y ARCHIVE) se incluyen otros, entre los que destacan dos nuevos como: XtraDB que reemplaza a InnoDB y FederatedX que sustituye a Federated.<\/span><\/li>\n<li><span style=\"font-size: large;\">Integraci\u00f3n de completas herramientas de testeo.<\/span><\/li>\n<li><span style=\"font-size: large;\">Compatible con MySQL.<\/span><\/li>\n<\/ol>\n<p><\/p>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Adem\u00e1s, a eso hay que a\u00f1adirle:<\/span><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<ol>\n<li><span style=\"font-size: large;\">MariaDB es la versi\u00f3n de c\u00f3digo totalmente abierto de MySQL<\/span><\/li>\n<li><span style=\"font-size: large;\">Funciona como MySQL y es compatible con las configuraciones de MySQL<\/span><\/li>\n<li><span style=\"font-size: large;\">Fedora y Red Hat\/CentOS est\u00e1n migrando a MariaDB desde Fedora 19\/RHEL 7\/7 CentOS.<\/span><\/li>\n<\/ol>\n<div><span style=\"font-size: large;\">Por lo tanto, esto hace que pensemos en migrar tambi\u00e9n.<\/span><\/div>\n<div><\/div>\n<div><\/div>\n<div><span style=\"font-size: large;\">Nota: Si se tiene una versi\u00f3n previa de MySQL, es necesario desinstalarla por completo. Adem\u00e1s realizar un respaldo de las bases de datos utilizadas. A pesar de que mariadb es compatible con mysql, es mejor hacer una instalaci\u00f3n limpia.<\/span><\/div>\n<div><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div><span style=\"font-size: large;\">Tambi\u00e9n es necesario respaldar el archivo my.cnf que est\u00e1 en la ruta \/etc, para esto utilizar el siguiente comando:<\/span><\/div>\n<div><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<p><\/p>\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; box-sizing: border-box; color: white; font-family: Menlo, Monaco, monospace; line-height: 15.68px; margin-bottom: 1.1em; padding: 13.125px 16.4062px; white-space: pre-wrap; word-wrap: break-word;\">$ sudo mv -vi \/etc\/my.cnf \/etc\/my.cnf.bk<\/pre>\n<div style=\"text-align: justify;\"><\/div>\n<div><span style=\"font-size: large;\">Este archivo servir\u00e1 en caso de que mariadb no quiera iniciar al finalizar la instalaci\u00f3n.<\/span><\/div>\n<div><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div><span style=\"font-size: large;\">Ahora desinstalar mysql, devido a que se puede tener x versi\u00f3n instalada, dejar\u00e9 esta opci\u00f3n abierta para todos.<\/span><\/div>\n<div><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div><span style=\"font-size: large;\">En mi caso ten\u00eda la versi\u00f3n 5.7. Y el proceso fue el siguiente:<\/span><\/div>\n<div><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div>\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; box-sizing: border-box; color: white; font-family: Menlo, Monaco, monospace; line-height: 15.68px; margin-bottom: 1.1em; padding: 13.125px 16.4062px; white-space: pre-wrap; word-wrap: break-word;\">$ sudo dnf remove mysql-community-libs mysql-community-server<\/pre>\n<div style=\"text-align: justify;\"><\/div>\n<\/div>\n<div><span style=\"font-size: large;\">Despu\u00e9s eliminar las siguientes carpetas de configuraci\u00f3n de mysql, ojo, es necesario respaldar las bases de datos que hayan creado, ya que al eliminar estas carpetas se eliminar\u00e1n tambi\u00e9n:<\/span><\/div>\n<div><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div>\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; box-sizing: border-box; color: white; font-family: Menlo, Monaco, monospace; line-height: 15.68px; margin-bottom: 1.1em; padding: 13.125px 16.4062px; white-space: pre-wrap; word-wrap: break-word;\">sudo rm -rf \/var\/lib\/mysql<br \/><br \/>sudo rm -rf \/etc\/mysql<\/pre>\n<div style=\"text-align: justify;\"><\/div>\n<\/div>\n<div><span style=\"font-size: large;\">Y con eso se finaliza la desinstalaci\u00f3n de mysql.<\/span><\/div>\n<div><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div><span style=\"font-size: large;\">Para que los cambios tengan efecto, reiniciar el equipo:<\/span><\/div>\n<div>\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; box-sizing: border-box; color: white; font-family: Menlo, Monaco, monospace; line-height: 15.68px; margin-bottom: 1.1em; padding: 13.125px 16.4062px; white-space: pre-wrap; word-wrap: break-word;\">$ reboot<\/pre>\n<div style=\"text-align: justify;\"><\/div>\n<\/div>\n<div><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<p><\/p>\n<div><\/div>\n<h2 style=\"text-align: justify;\"><span style=\"font-size: x-large;\">Instalaci\u00f3n de mariadb:<\/span><\/h2>\n<div><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div><span style=\"font-size: large;\">En Fedora 24, est\u00e1 en los repositorios por default por lo tanto no hay necesidad de agregarlos.<\/span><\/div>\n<div><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div><span style=\"font-size: large;\">Instalando:<\/span><\/div>\n<div>\n<div>\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; box-sizing: border-box; color: white; font-family: Menlo, Monaco, monospace; line-height: 15.68px; margin-bottom: 1.1em; padding: 13.125px 16.4062px; white-space: pre-wrap; word-wrap: break-word;\">sudo dnf install mariadb mariadb-server <\/pre>\n<div style=\"text-align: justify;\"><\/div>\n<\/div>\n<\/div>\n<div><span style=\"font-size: large;\">Iniciar el servicio de mariadb:<\/span><\/div>\n<div>\n<div>\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; box-sizing: border-box; color: white; font-family: Menlo, Monaco, monospace; line-height: 15.68px; margin-bottom: 1.1em; padding: 13.125px 16.4062px; white-space: pre-wrap; word-wrap: break-word;\">## Iniciar el servicio<br \/>systemctl start mariadb.service<br \/><br \/><br \/>## habilitar que el servicio inicio con el SO<br \/><br \/>systemctl enable mariadb.service<\/pre>\n<div style=\"text-align: justify;\"><\/div>\n<\/div>\n<\/div>\n<div>\n<h3 style=\"text-align: left;\"><span style=\"font-size: x-large;\"><br \/><\/span><\/h3>\n<h3 style=\"text-align: left;\"><span style=\"font-size: x-large;\">MariaDB (MySQL) Secure Installation<\/span><\/h3>\n<div><span style=\"font-size: large;\">Con este proceso se cambian las siguiente configuraciones:<\/span><\/p>\n<ol style=\"font-size: x-large; text-align: left;\">\n<li>Establecer contrase\u00f1a para el usuario root de mariadb<\/li>\n<li>Eliminar usuarios anonimos<\/li>\n<li>Deshabitliar acceso remotor para el usuario root<\/li>\n<li>Eliminar las bases de datos de prueba<\/li>\n<li>Recargar los privilegios de las tablas<\/li>\n<\/ol>\n<\/div>\n<div style=\"font-size: x-large;\"><\/div>\n<\/div>\n<div style=\"font-size: x-large;\">Iniciando:<\/div>\n<div>\n<div>\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; box-sizing: border-box; color: white; font-family: Menlo, Monaco, monospace; line-height: 15.68px; margin-bottom: 1.1em; padding: 13.125px 16.4062px; white-space: pre-wrap; word-wrap: break-word;\">\/usr\/bin\/mysql_secure_installation<\/pre>\n<div style=\"text-align: justify;\"><\/div>\n<\/div>\n<\/div>\n<div><span style=\"font-size: large;\">Este comando muestra lo siguiente:<\/span><\/div>\n<div>\n<div style=\"background-color: white; border: 0px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\">\n<pre style=\"background-attachment: initial; background-clip: initial; background-color: whitesmoke; background-image: url(&quot;assets\/shadow.png&quot;); background-origin: initial; background-position: 50% 100%; background-repeat: repeat-x; background-size: initial; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-shadow: rgb(204, 204, 204) 0px 0px 3px; box-sizing: border-box; font-stretch: normal; margin-bottom: 10px; max-width: 100%; outline: 0px; overflow: auto; padding: 9.5px; tab-size: 4; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline; word-break: break-all; word-wrap: break-word;\"><span style=\"color: #333333; font-family: &quot;menlo&quot; , &quot;monaco&quot; , &quot;consolas&quot; , &quot;courier new&quot; , monospace;\"><span style=\"line-height: 18.5714px; white-space: pre-wrap;\">NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB<br \/>      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!<br \/> <br \/>In order to log into MariaDB to secure it, we'll need the current<br \/>password for the root user.  If you've just installed MariaDB, and<br \/>you haven't set the root password yet, the password will be blank,<br \/>so you should just press enter here.<br \/> <br \/>Enter current password for root (enter for none): <br \/>OK, successfully used password, moving on...<br \/> <br \/>Setting the root password ensures that nobody can log into the MariaDB<br \/>root user without the proper authorisation.<br \/> <br \/>Set root password? [Y\/n] y<br \/>New password: <br \/>Re-enter new password: <br \/>Password updated successfully!<br \/>Reloading privilege tables..<br \/> ... Success!<br \/> <br \/> <br \/>By default, a MariaDB installation has an anonymous user, allowing anyone<br \/>to log into MariaDB without having to have a user account created for<br \/>them.  This is intended only for testing, and to make the installation<br \/>go a bit smoother.  You should remove them before moving into a<br \/>production environment.<br \/> <br \/>Remove anonymous users? [Y\/n] y<br \/> ... Success!<br \/> <br \/>Normally, root should only be allowed to connect from 'localhost'.  This<br \/>ensures that someone cannot guess at the root password from the network.<br \/> <br \/>Disallow root login remotely? [Y\/n] y<br \/> ... Success!<br \/> <br \/>By default, MariaDB comes with a database named 'test' that anyone can<br \/>access.  This is also intended only for testing, and should be removed<br \/>before moving into a production environment.<br \/> <br \/>Remove test database and access to it? [Y\/n] y<br \/> - Dropping test database...<br \/> ... Success!<br \/> - Removing privileges on test database...<br \/> ... Success!<br \/> <br \/>Reloading the privilege tables will ensure that all changes made so far<br \/>will take effect immediately.<br \/> <br \/>Reload privilege tables now? [Y\/n] y<br \/> ... Success!<br \/> <br \/>Cleaning up...<br \/> <br \/>All done!  If you've completed all of the above steps, your MariaDB<br \/>installation should now be secure.<br \/> <br \/>Thanks for using MariaDB!<\/span><\/span><\/pre>\n<\/div>\n<\/div>\n<div><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div><span style=\"font-size: large;\">Y listo. Con eso ya tienen instalado mariadb. Ahora pueden instalar dbeaver como editor gr\u00e1fico para la edici\u00f3n de consultas, creaci\u00f3n de base de datos, etc.<\/span><\/div>\n<div><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div><span style=\"font-size: large;\">Descar dbeaver:&nbsp;http:\/\/dbeaver.jkiss.org\/download\/<\/span><\/div>\n<div><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div><span style=\"font-size: large;\">E instalarlo de acuerdo a la versi\u00f3n descargada:<\/span><\/div>\n<div><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div>\n<div>\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; box-sizing: border-box; color: white; font-family: Menlo, Monaco, monospace; line-height: 15.68px; margin-bottom: 1.1em; padding: 13.125px 16.4062px; white-space: pre-wrap; word-wrap: break-word;\">sudo rpm -ivh dbeaver-ce-3.7.2-stable.x86_64.rpm<\/pre>\n<div style=\"text-align: justify;\"><\/div>\n<\/div>\n<\/div>\n<div><span style=\"font-size: large;\">Con eso podr\u00e1n administrar mariadb de manera gr\u00e1fica:<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-B4rs6LwTn5s\/V7oaRytmlYI\/AAAAAAAADRw\/AOGm4uXHFt0xENptZN51wBIcC4YzXrH5gCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-08-21%2B12-14-41.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"310\" src=\"https:\/\/1.bp.blogspot.com\/-B4rs6LwTn5s\/V7oaRytmlYI\/AAAAAAAADRw\/AOGm4uXHFt0xENptZN51wBIcC4YzXrH5gCLcB\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-08-21%2B12-14-41.png\" width=\"640\" \/><\/a><\/div>\n<div><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: center;\"><span style=\"font-size: large;\">Gracias por visitar, espero que les sea de utilidad.<\/span><\/div>\n<p><\/p>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Si bien MySQL es uno de los sistemas de gesti\u00f3n de bases de datos relacionales (SGBDR) m\u00e1s populares, tambi\u00e9n es cierto que hay otros desarrollos interesantes. Es el caso de MariaDB, un fork de MySQL implementado por la comunidad. \u00bfPor qu\u00e9 usar MariaDB? La adquisici\u00f3n de MySQL por parte de Oracle ha llevado a muchos [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[434,137,60],"tags":[],"class_list":["post-1559","post","type-post","status-publish","format-standard","hentry","category-install-mariadb-on-fedora-24","category-mariadb","category-mysql"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1559"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1559\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}