lalocespedes
4/30/2018 - 3:58 PM

mysql 5.7 ubuntu 18

mysql 5.7 ubuntu 18

sudo apt update
sudo apt upgrade
sudo autoremove
sudo apt install mysql-server
sudo mysql -V
sudo mysql_secure_installation
sudo mysql -u root -p

===========
Acceso remoto
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
change bind_address = 127.0.0.1 to 0.0.0.0
sudo service mysql restart
sudo mysql -u root -p
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY PASSWORD 'Apassword' WITH GRANT OPTION;