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

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
Sign in to follow this  

×