
Con la llegada de Fedora 24, ahora toca actualizar todos nuestros paquetes a las versiones más recientes. Esto no obligatorio obviamente, pero si es recomendable hacerlo.
La instalación de MySQL, y MySQL Workbench requiere del repositorio oficial de MySQL para permitir la instalación. Además, en los primeros meses usualmente no está disponible Workbench, sin embargo siempre podemos utilizar DBeaver, una alternativa para Workbench.
1.- Primero que nada descargar el repositorio
2.- Instalarlo
$ mysql57-community-release-fc24-8.noarch.rpm
3.- Habilitar MySQL 5.7.x ya que por default viene activada la opción 5.6.x
$ sudo dnf config-manager --enable mysql57-community
$ sudo dnf repolist enabled | grep "mysql.*-community.*"
$ sudo dnf config-manager --disablerepo mysql56-community-source
$ sudo dnf config-manager --disablerepo
mysql56-community
$ sudo dnf -y update
4.- Instalar MySQL
sudo dnf -y install mysql-community-server
5.- Iniciar MySQL
sudo systemctl start mysqld.service
6.- Antes de proseguir con la configuración de MySQL es necesario buscar la contraseña temporal que se le asigna al servidor con el siguiente comando:
sudo grep 'temporary password' /var/log/mysqld.log
Y les mostrará algo así:2016-06-21T23:50:02.789634Z 1 [Note] A temporary password is generated for root@localhost: ej2VXy(eNN.p
7.- Iniciar configuración de MySQL:
$ mysql_secure_installation
Set root password? [Y/n] Y New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] Y ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] n ... skipping. By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] n ... skipping. Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] Y ... Success! All done! If you've completed all of the above steps, your MySQL installation should now be secure. Thanks for using MySQL! Cleaning up...
Ya han finalizado la instalación de mysql: para probarlo ingresar en la terminal:
mysql -u root -p
Les pedirá la contraseña, al ingresarla les mostrará lo siguiente:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 5.7.13 MySQL Community Server (GPL)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
Si les muestra ese resultado, entonces todo ha ido perfecto.
Debido a que en los repositorios oficiales de MySQL aún no está disponible MySQL Workbench, no se puede instalar.
Pero cuando ya está disponible, la instalación es la siguiente:
Listar todas las utilerias disponibles para instalar:
sudo dnf --disablerepo=\* --enablerepo='mysql*-community*' list available
sudo dnf install mysql-workbench-community
Gracias por Visitar...