Jump to content
funtoo forums
  • 0
Sign in to follow this  
donjames

[solved] emerge mariadb

Question

Help!

I am trying to get mariadb up and running.  It installs and I can run mysql, but the 

emerge ---config dev-db/mariadb exits with the following error:

"Failed to initialize mysqld"

Even though I can start the database with "/etc/init.d/mysql start",  I can't access it because the config failed and it doesn't have my password.

Can someone give me a hint about what is going wrong here?

 

Thanks,

 

Don James

Edited by donjames
solved

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Okay.  I finally got mariadb to work.

1) Deleted all of the flags recommended by https://wiki.gentoo.org/wiki/MariaDB

2) Ran

USE="-client-libs" emerge -v mariadb

3) Ran

emerge --config =dev-db/mariadb-10.2.14

4) /etc/init.d/mysql start

It works!

Thanks to everyone for your help and suggestions.

Sincerely,

Don James

 

Share this post


Link to post
Share on other sites
  • 0

Here's what I did:

1) /etc/init.d/mysql start

It didn't start because there was no mysql database installed.

2) emerge --config dev-db/mariadb

Asked for password and created the mysql database.  It then exited with error: "Installation of system tables failed!

3)/etc/init.d/mysql start

mysql starts, but I can't access the database.

mysql -u root -p gives an error.  It won't accept the password that I entered earlier.

 

 

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, donjames said:

2) emerge --config dev-db/mariadb

Asked for password and created the mysql database.  It then exited with error: "Installation of system tables failed!

Any protocol with the reason for this error? There should be:

Quote

If mysql_install_db fails, you should examine the logs (*.err files) in the data directory (the one specified with --datadir) for a clue of what went wrong.

https://mariadb.com/kb/en/library/installing-system-tables-mysql_install_db/

There should also be a build log, as you are using emerge.

Share this post


Link to post
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.

Guest
Answer this question...

×   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.

Sign in to follow this  

×
×
  • Create New...