Jump to content

Install MariaDB along with MySQL


Dushyant

Recommended Posts

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.

Link to comment
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

 

Link to comment
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?

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...