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)
Provisioning Cloud SQL with Private Service Connect Using Terraform & Accessing from Cloud Run with Spring Boot
In this post, we'll explore how to provision Cloud SQL instances with Private Service Connect (PSC) connectivity using Terraform and the...
-
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...
-
Single Sign-On (SSO) is an authentication process that allows users to access multiple applications or services with a single set of login c...
-
Introduction: Sometimes we need to interact with Spring Boot GraphQL API and Spring Boot Rest API in the same time, in this case we can use ...
No comments:
Post a Comment