
25th July 2008, 03:51
|
|
Member
|
|
Join Date: Aug 2007
Posts: 74
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
MySQL on perfect setup CentOS 5.2
When I enter the command
mysqladmin -h server1.example.com -u root password yourrootsqlpassword
I get the error:
mysqladmin: connect to server at 'server1.example.com' failed
error: 'Host 'server1.example.com' is not allowed to connect to this MySQL server'
I don't think this will stop my install, but I would like to make sure everything is working perfectly
Thanks!
|

25th July 2008, 12:17
|
|
Senior Member
|
|
Join Date: Apr 2008
Posts: 112
Thanks: 2
Thanked 4 Times in 4 Posts
|
|
localhost? Then simply do not use -h. You try to connect from non-localhost this way and there's likely an ACL to allow only root@localhost.
|

25th July 2008, 13:15
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
IS server1.example.com your hostnme?
What are the outputs of and
Code:
netstat -tap | grep mysql
?
|

26th July 2008, 02:10
|
|
Member
|
|
Join Date: Aug 2007
Posts: 74
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
I was just following the instructions directly. They tell you to set your hostname to server1.example.com, so that's what I did. I guess we're supposed to set the hostname again later once everything is installed... Once I do that, I'll see if MySQL can connect.
|

26th July 2008, 02:25
|
|
Senior Member
|
|
Join Date: Aug 2007
Posts: 118
Thanks: 24
Thanked 16 Times in 13 Posts
|
|
.... do you mean you also use "yourrootsqlpassword" instead of using the actual MySQL password in your system too ?
|

26th July 2008, 11:18
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Quote:
Originally Posted by spuppy
They tell you to set your hostname to server1.example.com, so that's what I did.
|
You should replace server1.example.com with your own hostname.
|
|
The Following User Says Thank You to falko For This Useful Post:
|
|

26th July 2008, 17:42
|
|
Member
|
|
Join Date: Aug 2007
Posts: 74
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by falko
You should replace server1.example.com with your own hostname.
|
You should update the guide to reflect that. With guides like this, the reader will always follow it to the letter. If you say 'enter this information' people will do just that. So you need to make sure that if the user is entering their own information, that they know to do so.
|

26th July 2008, 17:47
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
This is already described at the biginning of the howto
Quote:
|
In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100 and the gateway 192.168.0.1. These settings might differ for you, so you have to replace them where appropriate.
|
|

27th July 2008, 18:02
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Quote:
Originally Posted by spuppy
You should update the guide to reflect that.
|
I think that the domain name "example.com" implies that...
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 09:26.
|
|
Recent comments
8 hours 4 min ago
13 hours 9 min ago
17 hours 33 min ago
19 hours 22 min ago
1 day 9 hours ago
1 day 9 hours ago
1 day 14 hours ago
1 day 21 hours ago
1 day 22 hours ago
1 day 23 hours ago