Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] MariaDB missing mysql_install_db
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
rhumbliner
n00b
n00b


Joined: 15 Nov 2004
Posts: 59
Location: Las Vegas

PostPosted: Sun Apr 07, 2013 7:03 pm    Post subject: [SOLVED] MariaDB missing mysql_install_db Reply with quote

i'm doing a fresh gentoo build with mariadb, i.e., not a mysql upgrade. problem is, after the emerge, mysql_install_db doesn't exist to create the initial tables. i can't start mysql without these tables. mysql_secure_installation exists but throws a "find_mysql_client: command not found" error.

how do i proceed?

tia

my portage files:

Code:
{~} cat /etc/portage/package.use
dev-db/mysql   embedded
dev-db/mariadb   embedded
virtual/mysql   embedded

{~} cat /etc/portage/package.accept_keywords
=sci-misc/boinc-7.0.29   ~x86
=dev-db/mariadb-5.5.30   ~x86
=virtual/mysql-5.5      ~x86


Last edited by rhumbliner on Sat May 18, 2013 11:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
rhumbliner
n00b
n00b


Joined: 15 Nov 2004
Posts: 59
Location: Las Vegas

PostPosted: Mon Apr 08, 2013 2:15 pm    Post subject: SOLVED - MariaDB missing mysql_install_db Reply with quote

turns out mysql_install_db is included as a script:

Code:
/usr/share/mysql/scripts/mysql_install_db
Back to top
View user's profile Send private message
Jeremy Morgan
n00b
n00b


Joined: 11 May 2012
Posts: 3
Location: Hillsboro, Oregon

PostPosted: Sun Jun 23, 2013 7:47 am    Post subject: Reply with quote

It is included, but there are a few things to know.

You should run this command to make it work the first time:

Code:

./usr/share/mysql/scripts/mysql_install_db --basedir=/usr


Then start it up:

Code:

/etc/init.d/mysql start


And run this:

Code:
/usr/bin/mysql_secure_installation



I'm replacing MySQL with MariaDB right now, and getting all the details down.
_________________
grep this
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum