{"id":1848,"date":"2014-07-01T09:03:00","date_gmt":"2014-07-01T14:03:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/instalar-mysql-server-y-mysqlworkbech-en-fedora-20-usando-paquetes-descargados\/"},"modified":"2014-07-01T09:03:00","modified_gmt":"2014-07-01T14:03:00","slug":"instalar-mysql-server-y-mysqlworkbech-en-fedora-20-usando-paquetes-descargados","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/instalar-mysql-server-y-mysqlworkbech-en-fedora-20-usando-paquetes-descargados\/","title":{"rendered":"Instalar MySQL Server y MysqlWorkbech en fedora 20 usando paquetes descargados"},"content":{"rendered":"<div style=\"text-align: center;\"><span style=\"color: purple; font-family: Verdana, sans-serif; font-size: large;\"><b>Instalar MySQL Server y MysqlWorkbech en fedora 20<\/b><\/span><\/div>\n<p><\/p>\n<div style=\"text-align: justify;\">&nbsp;A veces es necesario instalar mysql para usarlo en aplicaciones que se crean. Se me dificult\u00f3 instalarlo la primera vez, as\u00ed que decid\u00ed documentar la forma en que lo hice.<\/div>\n<p><\/p>\n<div style=\"text-align: justify;\">Lo primero que necesitan es la lista de paquetes a instalar de mysql, lo pueden descargar del sitio oficial de mysql. Actualmente ya existe soporte de mysql para fedor, pueden instalarlo desde los repositorios oficiales o descargarlo e instalarlos por separado. Instalarlos desde los repositorios es mejor, ya que podr\u00e1n actualizarlos de manera autom\u00e1tica.<\/div>\n<p>Los paquetes son los siguientes:<\/p>\n<ol>\n<li><span style=\"background-color: #fcfdfd; font-family: verdana, arial, helvetica, sans-serif; line-height: 23.399999618530273px;\">MySQL-client-5.6.19-1.el6.x86_64.rpm<\/span><\/li>\n<li><span style=\"background-color: #f3f3f3; font-family: verdana, arial, helvetica, sans-serif; line-height: 23.399999618530273px;\">MySQL-devel-5.6.19-1.el6.x86_64.rpm<\/span><\/li>\n<li><span style=\"background-color: #fcfdfd; font-family: verdana, arial, helvetica, sans-serif; line-height: 23.399999618530273px;\">MySQL-server-5.6.19-1.el6.x86_64.rpm<\/span><\/li>\n<li><span style=\"background-color: #fcfdfd; font-family: verdana, arial, helvetica, sans-serif; line-height: 23.399999618530273px;\">mysql-workbench-community-6.1.7-1.el6.x86_64.rpm<\/span><\/li>\n<\/ol>\n<p><\/p>\n<div style=\"text-align: justify;\">Dependiendo de la arquitectura que vayan a usar as\u00ed es como de beben de elegir los paquetes, los nombres de los paquetes deben ser casi igual, sobre todo cuando el6.x86_64 ojo, es muy importante que sean de la misma versi\u00f3n, ya que si no lo son, causar\u00e1 problemas de incompatibilidad.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Ahora la instalaci\u00f3n se realiza en el orden en que est\u00e1n los paquetes en la lista anterior, para instalarlos pueden dar doble clic y teclear la contrase\u00f1a y listo, o pueden usar la consola.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">En caso de usar la consola, se realiza lo siguiente, posiblemente les cause error si lo instalan directamente, dependiendo si autom\u00e1ticamente el SO no puede resolver las dependencias, en caso de que sea por consola, sabr\u00e1n qu\u00e9 paquetes descargar.<\/div>\n<div style=\"text-align: justify;\">Abrir la consola, ir al directorio donde se encuentran los paquetes e instalarlos en orden:<\/div>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #333333; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><b><span style=\"line-height: normal; white-space: normal;\"><span style=\"color: white; font-family: Verdana, sans-serif;\">sudo rpm -ivh&nbsp;<\/span><\/span><span style=\"font-family: Verdana, sans-serif;\"><span style=\"background-color: transparent; color: white;\">MySQL-client-5.6.19-1.el6.x86_64.rpm<br \/><\/span><span style=\"color: white; line-height: normal; white-space: normal;\">sudo rpm -ivh&nbsp;<\/span><span style=\"background-color: transparent; color: white;\">MySQL-devel-5.6.19-1.el6.x86_64.rpm<br \/><\/span><span style=\"color: white; line-height: normal; white-space: normal;\">sudo rpm -ivh&nbsp;<\/span><span style=\"background-color: transparent; color: white;\">MySQL-server-5.6.19-1.el6.x86_64.rpm<br \/><\/span><span style=\"color: white; line-height: normal; white-space: normal;\">sudo rpm -ivh&nbsp;<\/span><span style=\"background-color: transparent; color: white;\">mysql-workbench-community-6.1.7-1.el6.x86_64.rpm<\/span><\/span><\/b><\/pre>\n<div style=\"text-align: justify;\">El \u00faltimo paquete requerir\u00e1 de dependencias que tendr\u00e1s que descargar por separado e instalarlos de la misma manera como se instalaron los de arriba.<\/div>\n<div style=\"text-align: justify;\">Las dependencias faltantes las pueden descargar de:&nbsp;<a href=\"http:\/\/rpmfind.net\/\" target=\"_blank\">http:\/\/rpmfind.net\/<\/a><\/div>\n<div style=\"text-align: justify;\">Despu\u00e9s de instalar el paquete con el nombre de&nbsp;<span style=\"font-size: 13px; line-height: 20px; white-space: pre-wrap;\"><span style=\"font-family: Verdana, sans-serif;\"><b>MySQL-server-5.6.19-1.el6.x86_64.rpm<\/b><\/span><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: 13px; line-height: 20px; white-space: pre-wrap;\"><span style=\"font-family: Verdana, sans-serif;\"><b>hay que configurar el servidor:<\/b><\/span><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: 13px; line-height: 20px; white-space: pre-wrap;\"><span style=\"font-family: Verdana, sans-serif;\"><b>En la ruta <span style=\"color: red;\">\/root<\/span> encontraran un archivo oculto que se llama <span style=\"color: red;\">.mysql_secret<\/span> dicho archivo contiene la contrase\u00f1a que se le asigna por default al servidor de mysql es muy <span style=\"color: red;\">importante que dicho archivo no sea eliminado<\/span>  para poderlo abrir es necesario teclear la siguientes instrucciones:<\/b><\/span><\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #333333; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><b><span style=\"line-height: normal; white-space: normal;\"><span style=\"color: white; font-family: Verdana, sans-serif;\">su -<br \/>ls -la<br \/>gedit .mysql_secret<\/span><\/span><\/b><\/pre>\n<\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: 13px; line-height: 20px; white-space: pre-wrap;\"><span style=\"font-family: Verdana, sans-serif;\">Abrimos el archivo s\u00f3lo para poder ver la contrase\u00f1a, ahora es necesario iniciar el servidor mysql, pueden usar las siguientes instrucciones:<\/span><\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #333333; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><b><span style=\"line-height: normal; white-space: normal;\"><span style=\"color: white; font-family: Verdana, sans-serif;\"><\/span><\/span><span style=\"color: white;\"><span style=\"font-family: Verdana, sans-serif;\">sudo systemctl start mysqld.service <\/span>sudo service mysql start<\/span><\/b><\/pre>\n<p><span style=\"font-size: 13px; line-height: 20px; white-space: pre-wrap;\"><span style=\"font-family: Verdana, sans-serif;\">Despu\u00e9s de haber iniciado el servidor, es necesario cambiarle la contrase\u00f1a, se realiza lo siguiente:<\/span><\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #333333; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><b><span style=\"color: white;\"><span style=\"font-family: Verdana, sans-serif;\">\/usr\/bin\/mysql_secure_installation<\/span><\/span><\/b><\/pre>\n<p>La informaci\u00f3n que le arrojar\u00e1 es la siguiente:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #333333; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\"><span style=\"font-size: 13px; line-height: 20px; white-space: pre-wrap;\"><span style=\"font-family: Verdana, sans-serif;\">NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL<br \/>      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY! <\/span><\/span><br \/>In order to log into MySQL to secure it, we'll need the current<br \/>password for the root user. If you've just installed MySQL, 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 MySQL<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 \/>By default, a MySQL installation has an anonymous user, allowing anyone<br \/>to log into MySQL 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 \/>Remove anonymous users? [Y\/n] Y<br \/> ... Success!<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 \/>Disallow root login remotely? [Y\/n] Y<br \/> ... Success!<br \/>By default, MySQL 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 \/>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 \/>Reloading the privilege tables will ensure that all changes made so far<br \/>will take effect immediately.<br \/>Reload privilege tables now? [Y\/n] Y<br \/> ... Success!<br \/>Cleaning up...<br \/>All done! If you've completed all of the above steps, your MySQL<br \/>installation should now be secure.<br \/>Thanks for using MySQL!<\/span><\/pre>\n<p><span style=\"font-size: 13px; line-height: 20px; white-space: pre-wrap;\"><span style=\"font-family: Verdana, sans-serif;\">&nbsp;Si quieren cambiar su contrase\u00f1a que al inicio cuando lo ejecuten por primera vez se los pedir\u00e1.<\/span><\/span><br \/><span style=\"font-size: 13px; line-height: 20px; white-space: pre-wrap;\"><span style=\"font-family: Verdana, sans-serif;\">Si quieren cambiarlo por separado la instrucci\u00f3n es:<\/span><\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #333333; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">mysqladmin -u root password [tu_contrase\u00f1a_aqui]<\/span><br \/><span style=\"color: #666666; font-style: italic;\">## Ejemplo ##<\/span><br \/><span style=\"color: white;\">mysqladmin -u root password minuevacontrasenias<\/span><\/pre>\n<p><span style=\"font-size: 13px; line-height: 20px; white-space: pre-wrap;\"><span style=\"font-family: Verdana, sans-serif;\">Para conectarse al servidor desde consola la instrucci\u00f3n es:<\/span><\/span><\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); color: #333333; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">mysql -u root -p<\/span><br \/><span style=\"color: #666666; font-style: italic;\">## o tambi\u00e9n pueden usar ##<\/span><br \/><span style=\"color: white;\">mysql -h localhost -u root -p<\/span><br \/><\/pre>\n<p><span style=\"font-size: 13px; line-height: 20px; white-space: pre-wrap;\"><span style=\"font-family: Verdana, sans-serif;\">Pero como nosotros hemos instalado  <\/span><\/span>mysql-workbench-community-6.1.7-1.el6.x86_64.rpm&nbsp; <br \/><span style=\"font-size: 13px; line-height: 20px; white-space: pre-wrap;\"><span style=\"font-family: Verdana, sans-serif;\">para evitar usar la consola, lo que tienen que hacer es abrir el editor y crear una nueva conexi\u00f3n.<\/span><\/span><br \/><span style=\"font-size: 13px; line-height: 20px; white-space: pre-wrap;\"><span style=\"font-family: Verdana, sans-serif;\">Y por mi parte eso es todo, crear una conexi\u00f3n al servidor desde el editor <\/span><\/span><br \/>mysql-workbench-community-6.1.7-1.el6.x86_64.rpm<br \/><span style=\"font-size: 13px; line-height: 20px; white-space: pre-wrap;\"><span style=\"font-family: Verdana, sans-serif;\">es bastante intuitivo, de modo que no lo explicar\u00e9.<\/span><\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Instalar MySQL Server y MysqlWorkbech en fedora 20 &nbsp;A veces es necesario instalar mysql para usarlo en aplicaciones que se crean. Se me dificult\u00f3 instalarlo la primera vez, as\u00ed que decid\u00ed documentar la forma en que lo hice. Lo primero que necesitan es la lista de paquetes a instalar de mysql, lo pueden descargar del [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209,7,87,4,60,907,1511,573],"tags":[],"class_list":["post-1848","post","type-post","status-publish","format-standard","hentry","category-base-de-datos","category-fedora","category-gnome","category-linux","category-mysql","category-mysql-workbench","category-server","category-workbench"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1848","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=1848"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1848\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}