Hi,
I'm trying to enable remote access for the root user in MySQL (this is a test-DB that is only accessible from the internal network so it's not a security issue).
On the server itselft I ran the following:
appuser is the user our web application is using, and I can connect remotely without problems (either through the mysql commandline client or through a JDBC client)
However when I try to connect as the root user from that computer I get the message:
The password is definitely correct. I checked that multiple times.
I also tried
to be able to use the root account from any computer, but with no luck either.
There is an entry for that (root) user and I granted all privileges to that root user. I should be able to connect remotely as root, shouldn't I?
So what am I missing here?
The MySQL server version is 5.1.69 and it's running on CentOS 6.4
I'm trying to enable remote access for the root user in MySQL (this is a test-DB that is only accessible from the internal network so it's not a security issue).
On the server itselft I ran the following:
Code:
mysql> grant all on *.* to root@'computer.domain.com';
Query OK, 0 rows affected (0.00 sec)
mysql> select User, Host from user;
+-----------+----------------------+
| User | Host |
+-----------+----------------------+
| appuser | % |
| root | 127.0.0.1 |
| appuser | 127.0.0.1 |
| root | localhost |
| root | computer.domain.com |
+-----------+----------------------+
5 rows in set (0.00 sec)
However when I try to connect as the root user from that computer I get the message:
Code:
c:\>mysql --host=mysqlserver --user=root --password=******
ERROR 1045 (28000): Access denied for user 'root'@'computer.domain.com' (using password: YES)
I also tried
Code:
grant all on *.* to 'root'@'%';
There is an entry for that (root) user and I granted all privileges to that root user. I should be able to connect remotely as root, shouldn't I?
So what am I missing here?
The MySQL server version is 5.1.69 and it's running on CentOS 6.4