I am working on step 5 Configure The Network in the The Perfect Setup - Ubuntu 6.06 LTS Server (Dapper Drake) - Page 3 howto. I am trying to chage my hosts file. Here is the host file Code: 127.0.0.1 localhost admin-desktop 127.0.1.1 admin-desktop # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts Here is my edited host file Code: 127.0.0.1 localhost admin-desktop 192.168.0.105 server1.monitorwaves.no-ip.org server1 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts Why does it not change? Code: root@admin-desktop:/home/admin# hostname admin-desktop root@admin-desktop:/home/admin# hostname -f localhost root@admin-desktop:/home/admin# I have tryed a restart but it does not do a thing. I have also set my ip to static. Any sugestions? Thanks
Ok my host name is coming out alright now but i am runing into another problem. My sql server will not allow me to connect to it. I checked myslq and it is up and runing. Code: root@server1:/home/admin# hostname server1.monitorwaves.no-ip.org root@server1:/home/admin# hostname -f server1.monitorwaves.no-ip.org root@server1:/home/admin# mysqladmin -h server1.monitorwaves.no-ip.org -u root password mypassword mysqladmin: connect to server at 'server1.monitorwaves.no-ip.org' failed error: 'Host 'server1.monitorwaves.no-ip.org' is not allowed to connect to this MySQL server' root@server1:/home/admin#
Have a look here: http://www.howtoforge.com/forums/showthread.php?t=5877&highlight=mysqladmin+server1.example.com