Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql remote connection command line

mysql --host=localhost --user=myname --password mydb
Comment

Connect to Remote MySQL Database through Command Line

mysql -u {username} -p'{password}' 
    -h {remote server ip or name} -P {port} 
    -D {DB name}
Comment

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;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql create table if not exists 
Sql :: rabbitmq service not starting 
Sql :: mysql alter table modify column 
Sql :: create function in postgresql 
Sql :: id increment ms sql server 
Sql :: purge undo tablespace oracle 11g 
Sql :: how to search date in sql query 
Sql :: convert date to datetime sql 
Sql :: xml path sql server 
Sql :: mysql select another database 
Sql :: find tables with column name in sql 
Sql :: how to create new user and database postgresql in ubuntu 
Sql :: sql rank 
Sql :: oracle plsql sleep 
Sql :: null column to 0 in mysql 
Sql :: postgresql search object in array 
Sql :: delete top N rows in sql 
Sql :: find duplicates mysql 
Sql :: Add SuperUser MySQL 
Sql :: update value postgresql 
Sql :: grant all privileges on a db 
Sql :: start mysql 
Sql :: oracle drop temporary table 
Sql :: truncate function in sql oracle 
Sql :: creating a table in sql 
Sql :: sql compare two tables for differences 
Sql :: oracle create table if not exists 
Sql :: create sequence postgres 
Sql :: check if string contains substring sql 
Sql :: oracle pagination query offset 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =