Answers for "how to connect to mysql server from remote client"

SQL
0

access mysql from remote

mysql> CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost'
    ->     WITH GRANT OPTION;
mysql> CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'%'
    ->     WITH GRANT OPTION;


#you need to change ufw for allowing 3306 port.

sudo ufw allow 3306

#if you are in aws ec2, you have to change the security group also
Posted by: Guest on August-15-2021
0

connect to Remote MySQL server

mysql> CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost'
    ->     WITH GRANT OPTION;
mysql> CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'%'
    ->     WITH GRANT OPTION;
Posted by: Guest on August-08-2021

Code answers related to "how to connect to mysql server from remote client"

Code answers related to "SQL"

Browse Popular Code Answers by Language