Answers for "connect to Remote MySQL server"

SQL
6

mysql remote connection command line

mysql --host=localhost --user=myname --password mydb
Posted by: Guest on February-18-2020
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
0

how to connect to the database as root user in linux

GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password';
Posted by: Guest on May-26-2020

Code answers related to "connect to Remote MySQL server"

Code answers related to "SQL"

Browse Popular Code Answers by Language