miércoles, 7 de agosto de 2019

Install MySQL 5.7.27 on Ubuntu 18.04

Install MySQL 5.7.27 on Ubuntu 18.04

Instalamos según https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04

Nos dará algunos problemas al intentar accesar, las razones son estas https://askubuntu.com/questions/773446/unable-to-connect-via-mysql-workbench-to-localhost-in-ubuntu-16-04-passwordless

Se hacen ajustes
bext@bext-VPCF13WFX:~$ sudo mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 5.7.27-0ubuntu0.18.04.1 (Ubuntu)

Copyright (c) 2000, 2019, 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> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
Query OK, 0 rows affected (0.00 sec)

mysql> CREATE USER 'admin'@'localhost' IDENTIFIED BY 'admin';
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)

mysql> exit

Basicamente ahora tenemos a dos usuarios:
user1:          root
password1: password
user2:          admin
password:   admin

que usamos para pruebas.


eot

No hay comentarios:

Publicar un comentario