I using the command: mysql -u rb_remote -h ec2-35-169-41-113.compute-1.amazonaws.com -p to attempt to connect to an EC2 mysql db. I can connect perfectly fine with mysql -u root -p when I ssh into the instance.
I am getting a generic error: Can't connect to MySQL server on 'ec2-35-169-41-113.compute-1.amazonaws.com' (61)
Here is what I have done to attempt to connect:
In the AWS secutiry group I set inbound rules to accept all 3306 tcp 0.0.0.0/0, ::/0
created an new mysql user "rb_remote" and enabled all mysql privileges
in /etc/my.conf I set the "bind-address" to my remote IP address
Does anyone have any other suggestions. I have been stuck on this all day.
Related
I am not able to connect to a fresh instance of AWS RDS MySQL
mysql -h <host>.rds.amazonaws.com -P 3306 -u admin -p
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on '<host>.rds.amazonaws.com' (111)
The credentials are correct.
Here are the inbound security rules
I have even set "Public Accessibility" to "Yes" (which I don't want to) but no luck. Any help? Thanks
EDIT 1:
Output of telnet after rebooting rds instance :
telnet host.rds.amazonaws.com 3306 Connecting To
host.rds.amazonaws.com...Could not open connection to the host, on
port 3306: Connect failed
Route Table:
Network ACL:
I am having mysql server in my premise which is running on windows. Now I want connect this mysql database from an ubuntu ec2 instance but it is giving can't connect to mysql server at my IP (110 connection error)
Can some one help me to connect from ubuntu to my local window.
For your info: I am not able even ping from ubuntu instance to my local IP
Add MySQL IP on EC2 security group and port will be 3306
then
Use the below command to install the MySQL client on your ec2 instance.
sudo apt install mysql-* -y
after installation of mysql on ubuntu try to connect with the MYSQL using below command.
mysql -h hostname -u username -p password -P Portno
Hope so this will help you.
In able to connect to an MySQL server exists in EC2 instance you should provide some main parameters like:
Connection Method: Standard TCP/IP over SSH
SSH Hostname: the public ipv4 address of your EC2 Ubuntu instance
SSH Username: ubuntu
SSH Key File: your AWS credentials (key pair) file
And enable rules for connecting to MySQL server in your SecurityGroup:
(TCP on port 3306).
and you should be able to connect smoothly.
And for more information refer to this link:
reference
I am trying to remotely connect to my hidden service MySQL DB
mysql -u root -p -h 127.0.0.1 connected
works fine on local host
I am following this tutorial on reddit:
/r/TOR/comments/222bum/running_mysql_as_a_hidden_service/
I have xampp running on Ubuntu and and tor MySQL listens to port 3306 and Apache on 80
I am trying to connect to my DB remotely with command:
proxychains mysql -u root -p -h http://xxxxxxx.onion DBNAME
Getting this error:
ERROR 2003 (HY000): Can't connect to MySQL server on
'http://xxxxxxxxx.onion' (111)
tried this with socat
socat TCP-LISTEN:3308 SOCKS4A:127.0.0.1:xxxxj.onion:3306,socksport=9050
or
socat TCP-LISTEN:3308 SOCKS4A:localhost:xxxxj.onion:3306,socksport=9050
did not work in tor panel it says but only when i try to proxychains mysql -h 127.0.0.1 -u user -p P 33606
Sep 26 18:43:09.000 [warn] Rejecting SOCKS request for anonymous
connection to private address [scrubbed].
thanks for reply but still cant get it to work
root:/var/lib/tor/hidden_service$ proxychains mysql -u user -h TOR.onion database -p
ProxyChains-3.1 (http://proxychains.sf.net)
Enter password:
|DNS-request| TOR.onion
|S-chain|-<>-127.0.0.1:9050-<><>-4.2.2.2:53-<><>-OK`enter code here`
|DNS-response| TOR.onion is 104.239.213.7
|S-chain|-<>-127.0.0.1:9050-<><>-104.239.213.7:3306-<--timeout
ERROR 2003 (HY000): Can't connect to MySQL server on 'TOR.onion' (111)
GRANT ALL ON Databasename.* TO 'user'#'127.0.0.1
getting some error in console phpmyadmin SQL error
i m prety new to this any help is appreicated
mysql workbench works fine on localhost but when trying to add the onion instead of localhost it dosent work:******
Any suggestions thanks
Change your interface to 0.0.0.0 so external connections can happen (bind-address=0.0.0.0 in my.cnf or equivalent)
GRANT access to the external IP in MySQL: GRANT ALL ON <DB>.* TO '<user>'#'<external_ip>';
I have a AWS RDS instance running on the free tier, and am trying to use mysql command to connect it, just to play with it.
The command I used is
mysql -h XXX.XXX.us-west-2.rds.amazonaws.com -P 3306 -u username -p
but after a while it returns
ERROR 2003 (HY000): Can't connect to MySQL server on 'XXX.XXX.us-west-2.rds.amazonaws.com' (60)
The instance I am running on AWS is MySQL, and I used the correct server address when connecting. Can anyone tell my why the connection does not get through?
I installed mysql server 5.6, and I can connect to it using mysql workbench, but I'm wondering if I can connect to it from Vagrant box, and I tried the following command, but failed:
vagrant#sdi03:~$ mysql -h 127.0.0.1 --port=3366 -u root -p
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)
Note that I purposely run the mysql server on port 3366 instead of 3306, because I have another mysql server running on Vagrant box on port 3306.
I'm using success connect to ip adress of my windows, it's 192.168.1.55
mysql -u konst -p -h 192.168.1.55
PS I can't connect with root, i create new mysqluser konst with admin's rights