Dushyant Posted August 5, 2016 CID Share Posted August 5, 2016 Hi, I am trying to install mariadb on my server which is having CentOS 7 with mysql installed. i have followed the steps provided on mariadb's website https://mariadb.com/kb/en/mariadb/installing-mariadb-alongside-mysql/ after following the steps when i tried to install as instructed there on site i am getting error : Quote scripts/mysql_install_db: line 260: ./bin/my_print_defaults: cannot execute binary file Neither host 'abc.server.com' nor 'localhost' could be looked up with './bin/resolveip' Please configure the 'hostname' command to return a correct hostname. If you want to solve this at a later stage, restart this script with the --force option I have checked hosts file and also checked hostname but hostname entries are there. i have also tried to install with --force to install mariadb on server but facing same error. please provide your suggestions to resolve this. Thanks. Quote Link to comment Share on other sites More sharing options...
mudmanc4 Posted August 5, 2016 CID Share Posted August 5, 2016 First thing we check in this instance is that the file /etc/hosts is correct. What are the contents of /etc/hosts You can run the following to spit out the contents: cat /etc/hosts What output do you get when you run hostname -f And insure the loopback interface is running: ip addr Quote Link to comment Share on other sites More sharing options...
Dushyant Posted August 8, 2016 Author CID Share Posted August 8, 2016 hostname entries are ok its showing me server.com yes, loopback int is also running. Quote Link to comment Share on other sites More sharing options...
mudmanc4 Posted August 8, 2016 CID Share Posted August 8, 2016 @Dushyant I suppose the next issue I would look at is the actual subdomain.domainname.hostname itself. If you have DNS authorization then check the A records are recursively resolvable from/to the server in question. Are you trying to install the database on localhost or is this a remote installation? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.