I have installed and configured mySQL with WAMP server in a separate dedicated server for our Bug tracking Application. (eg.IP of the server 10.11.1.111)
I m trying to connect to the mySQL DB remotely from my local PC, but I m not able to connect.
Getting the following error,
ERROR 2003 (HY000): Can't connect to MySQL server on '10.11.1.111'
(10060).
I ve tried creating a user from the IP I am going to connect
grant all on *.* to 'adminuser'#'10.22.2.222' identified by
'testadmin';
(adminuser#10.22.2.222) and able to see the user in the user and previleges column. But still unable to connect remotely.
I have resolved the issue by doing the following.
Login to mysqlworkbench with root credentials
Go to users and privileges
Create account and mention the host the user will be accessing from
Go to administrative role tab and select all
Go to schema privileges , select the privileges you want to provide.
Click Apply
Go to Windows firewall setting and open the mysql port.
Related
So I am attempting to use MySQL workbench to connect to a database in the cloud on AWS RDS services.
When I attempt to connect I get an error like this.
Access denied for user 'admin'#'ip_octet1-octet2-octet3-octet4.res.spectrum.com' to database 'default_database'
I have the database set as publicly accessible and all IPS are able to connect. The problem seems to be my client is attempting to try to connect via hostname. I have tried multiple different clients, so it seems to be an issue with AWS or my ISP. I have been able to shell into MySQL instance from other EC2 instances.
Any suggestions would be appreciated.
Your mysql user permissions should allow connecting from the particular host. you can grant permission to the existing user as below.
GRANT ALL PRIVILEGES ON database_name.* TO 'admin'#'ip_octet1-octet2-octet3-octet4.res.spectrum.com';
Reference:
Create and Grant Mysql Permissions
Based on the error you are getting, this doesn't seem to be an issue with reaching the server, as the message complains about an access denied, otherwise it would state it can't reach the host. I would go for the password route, as the admin user should get created with '%' for host. Was it a snapshot? Or created from scratch? If so, was the password properly set? If it is from scratch, you can always delete it and create it again.
Regards!
I've looked in so many areas to try to fix this problem and I can't seem to find a solution. Im running ubuntu linux with the latest mysql and phpmyadmin installation. I found that connecting to the database locally works but if I try to connect remotely it keeps denying the connections. The only way I can login to phpmyadmin is if I put the ip address in the bar, connecting via the web address will not work.
Are you trying to connect to MySQL remotely or PHPMyAdmin remotely?
If you are trying to access MySQL remotely, you need to do the following:
Edit the bind-address variable in /etc/my.cnf, to 0.0.0.0 or the IP address of your server
Make sure your MySQL user has permissions from remote hosts, do this using:
CREATE USER 'myuser'#'localhost' IDENTIFIED BY 'mypass';
CREATE USER 'myuser'#'%' IDENTIFIED BY 'mypass';
Then:
GRANT ALL ON . TO 'myuser'#'localhost';
GRANT ALL ON . TO 'myuser'#'%';
Then go ahead and restart the mysql instance on your server. This also assumes you have set IP tables up to allow port 3306 TCP incoming to your server.
In my office, there is a desktop computer which is CentOS7.2 system, there installed MySQL on it.
and in my computer, I have a Sequel Pro on it.
I want to use the Sequel Pro to connect the desktop computer's mysql.
But there gets this error:
Unable to connect to host 10.10.10.127, or the request timed out.
Be sure that the address is correct and that you have the necessary privileges, or try increasing the connection timeout (currently 10 seconds).
MySQL said: Host '10.10.10.121' is not allowed to connect to this MySQL server
The desktop computer ip is 10.10.10.127, mine is 10.10.10.121.
As your situation, you should set the remote login user privileges in your mysql:
In your desktop computer, you login to the mysql:
mysql -u root -p
grant the priviliges
GRANT ALL PRIVILEGES on yourDB.* to 'root'#'10.10.10.121' IDENTIFIED BY 'the password';
flush privileges
Then you can use the tool to connect the desktop computer's mysql in your computer.
You'd better fixed the desktop computer and your computer's LAN ip .
The mysql user you are using is not having the access permission to the server. Provide the access like
GRANT ALL ON foo.* TO bar#'162.54.10.20' IDENTIFIED BY 'PASSWORD';
Where foo is the database name , bar is the user.
You may also consider creating new mysql user to access from your machine.
I hope this helped. For more information check out http://www.debianhelp.co.uk/remotemysql.htm .
Ive looked all over for this one... Ive tried creating a new user, granting full priv on any ip, verified that they are there, restarted mysql server/ the server host, tried different clients on different machines. I really can't think of anything else to try. So far, I used this on root:GRANT ALL ON my_database.* TO my_user#'%' IDENTIFIED BY 'some_password'; Then checked show grants for 'root'#'%' which shows GRANT ALL PRIVILEGES ON . TO 'root'#'%' IDENTIFIED BY PASSWORD '*ACE0FA0C29A21972F42BD2E7805A0D01C7126EC3' WITH GRANT OPTION
Always getting the same error,
ERROR 1130 (HY000): Host '192.168.xxx.xxx' is not allowed to connect to this MySQL
server
I also checked the firewall and that does not appear to be an issue. All the hosts are on the same local network. I have tried connecting via a public domain name and also direct local IP.
The server is on Windows 7 and I have tried connecting with clients on debian and OSX. I have no idea what is wrong, any ideas?
I am running MySQL on an Amazon AWS Instance. I was able to previously connect to the MySQL Database via MySQL Query Browser. Now I am traveling outside the U.S. and I am having trouble connecting via the Query Browser. I am able to use Terminal to create an ssh connection and then login to MySQL, so it does not appear to be a larger issue with the MySQL Database.
Has anyone else had a similar problem? Any ideas how I can fix this?
This is the error I get from the MySQL Browser
Your connection attempt
failed for user 'admin' from your host to server at
ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com:3306: Can't connect to
MySQL server on 'ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com' (4)
Please: 1 Check that mysql is running on server
ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com
2 Check that mysql is
running on port 3306 (note: 3306 is the default, but this can be
changed)
3 Check the admin has rights to connect to
ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com from your address (mysql
rights define what clients can connect to the server and from which
machines)
4 Make sure you are both providing a password if needed and
using the correct password for
ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com connecting from the host
address you're connecting from
The only possible problem I see could be #4, but I ran and re-ran this command via Terminal:
grant all privileges on *.* to 'admin'#'%' identified by '<pass>' with grant option;