Connecting to your MySQL server via SSH can be very useful for developers and system admins and it is done in a very simple and efficient manner via SSH.
To do that follow these steps:
1. Log into your server as root via SSH
2. Run the following command
mysql -u db_username -p
When prompted to input the password, it will be the password for the username of that database that you are trying to connect to.
3. After entering the correct password, you will be greeted by the mysql welcome message and the mysql> command line.
Common commands are /h for help, /q for quitting and show databases; for a list of all of the databases for that particular user.
Categories
Categories
Tag Cloud
403
403 error
500
500 error
activate
add bandwidth
add funds
add ip
affiliate
alipay
american express
android
ao ip
archiving
asia ip
asia optimized ip
backup
backups
balance
bandwidth
bitcoin
blockstorage
cache
cancel
cancel account
cancellation
centos
certificate
china firewall
china great firewall
cloud hosting
cloud vps
cloudflare
cpanel
credit
credit card
database
ddos
digitalocean
discount
discover
disk
dkim
dns
dns hosting
downgrade
download files
email
extract
firewalld
floating ip
fraud
free dns hosting
free trial
gfw
grep
gzip
hdd
host files
hostname
htaccess
internel error
invalid
iozoom dns
ip
ip address
iphone
label
license
linux vps
litespeed
long term
lscache
mastercard
maxmind
migration
mtr
mysql
new
node
password
paypal
php
phpinfo
plesk
plugin
port
private network
private networking
prorated
proration
ptr
rdns
refund
remote
remote mysql
repair
reseller
restore
reverse
root
server
shared hosting
signup
sms
snapshot
spam
spamexperts
spf
ssd
ssh
ssl
tar
test ip
traceroute
trial
unionpay
upgrade
verification
visa
w3 total cache
warning
wechatpay
whitelist
windows
windows 10
windows server
wordpress
wordpress hosting
wp super cache
SSH connection to MySQL Print
- ssh, mysql
- 83
Was this answer helpful?
Related Articles
What happens if I go over my bandwidth limit?
You will get a notification when you've reached 90% of your allocated bandwidth. If you reach the...
How do I add more bandwidth?
There are two ways you can add more bandwidth.1.) You can upgrade your account to add more...
How does DDoS protection work?
We provide DDoS filtering up to 10 Gbps included with all of our VPS plans at all locations. If...
Do you create backups of the VPS?
We do a snapshot backup of every VPS to dedicated backup server. This snapshot backup is for...
How do i set reverse DNS (PTR) on my ip address?
In order to set rDNS on your IP please open a ticket to our support department and we will apply...
Tag Cloud
403
403 error
500
500 error
activate
add bandwidth
add funds
add ip
affiliate
alipay
american express
android
ao ip
archiving
asia ip
asia optimized ip
backup
backups
balance
bandwidth
bitcoin
blockstorage
cache
cancel
cancel account
cancellation
centos
certificate
china firewall
china great firewall
cloud hosting
cloud vps
cloudflare
cpanel
credit
credit card
database
ddos
digitalocean
discount
discover
disk
dkim
dns
dns hosting
downgrade
download files
email
extract
firewalld
floating ip
fraud
free dns hosting
free trial
gfw
grep
gzip
hdd
host files
hostname
htaccess
internel error
invalid
iozoom dns
ip
ip address
iphone
label
license
linux vps
litespeed
long term
lscache
mastercard
maxmind
migration
mtr
mysql
new
node
password
paypal
php
phpinfo
plesk
plugin
port
private network
private networking
prorated
proration
ptr
rdns
refund
remote
remote mysql
repair
reseller
restore
reverse
root
server
shared hosting
signup
sms
snapshot
spam
spamexperts
spf
ssd
ssh
ssl
tar
test ip
traceroute
trial
unionpay
upgrade
verification
visa
w3 total cache
warning
wechatpay
whitelist
windows
windows 10
windows server
wordpress
wordpress hosting
wp super cache