Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Shell :: give docker permission to non-root user in linux 
Shell :: how to install bootstrap in angular 11 
Shell :: how to install pip flask on macos 
Shell :: docker: Error response from daemon: pull access denied for 
Shell :: install ftp on ubuntu 
Shell :: install tmux on fedora32 
Shell :: docker compose rebuild image 
Shell :: set wsl version to 1 
Shell :: wine install ubuntu 
Shell :: git set remote origin url 
Shell :: install makecert windows 10 
Shell :: bash blackeye 
Shell :: how to use string format in powershell 
Shell :: add component angular 
Shell :: alternative of mobaxtrem in linux 
Shell :: docker image convert to tar 
Shell :: enzyme npm install 
Shell :: set name and email git 
Shell :: poetry python install 
Shell :: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. 
Shell :: bash string length 
Shell :: bash for each line of file 
Shell :: git tag to previous commit 
Shell :: how to install pandoc 
Shell :: how to download a file with curl 
Shell :: git clone using ssh key from gitlab 
Shell :: how to find and replace on linux 
Shell :: element function in terraform 
Shell :: git pull shows already up to date 
Shell :: git clone specific branch 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =