A continuacion les dejo unos sencillos pasos para habilitar conexion remota en MySQL en Linux Ubuntu espero que les sea de mucha utilidad.
Editar el archivo my.cnf
sudo gedit /etc/mysql/my.cnf
OR
sudo gedit /etc/mysql/mysql.conf.d/mysqld.cnf
Buscar la sección: [mysqld]
y buscamos la siguiente linea:
bind-address = 127.0.0.1
Y lo comentamos poniendo un '#' al principio de esta, quedando de la siguiente forma:
#bind-address = 127.0.0.1
Guardamos los cambios y reiniciamos el servidor:
sudo service mysql restart
Accedemos a la terminar y ejecutamos mysql
mysql -u root -p
Dentro de mysql ejecutamos los siguientes comandos
1) GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'PASSWORD' WITH GRANT OPTION;
y en password seteamos el password que va tener la cuenta root que va el usuario
que se va a loguear remotamente
2) FLUSH PRIVILEGES;
3) exit
Luego realizar prueba correspondiente, para ello les recomiendo utilizar MySQL Workbench IDE, sencillo de utilizar. :)
Saludos
Subscribe to:
Post Comments (Atom)
Integrating Google Cloud Pub/Sub with Terraform and Spring Boot 3 (Java 21)
Introduction In this blog post, I'll demonstrate how to provision Google Cloud Pub/Sub resources using Terraform and integrate them with...

-
SAML V2.0 SAML version 2.0 was approved as an OASIS Standard in March 2005. Approved Errata for SAML V2.0 was last produced by the SSTC on 1...
-
Spring Boot 3 Spring boot 3 Features : Spring Boot 3.0 will require Java 17 or later Jakarta EE 9 a new top-level jakarta package, replacin...
-
Introduction In today's software landscape, designing robust and scalable REST APIs is a crucial aspect of application development. Wit...
No comments:
Post a Comment