Jump to content

Install MariaDB along with MySQL

Recommended Posts



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 : 



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
Please configure the 'hostname' command to return a correct
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.



Share this post

Link to post
Share on other sites

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


Share this post

Link to post
Share on other sites

@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?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Speed Test Version 15.9
© 2017 TestMy Net LLC - TestMy.net - Terms & Privacy
© 2017 TestMy Net LLC - TestMy.net - Forum - Terms & Privacy