View previous topic :: View next topic |
Author |
Message |
rhumbliner n00b
Joined: 15 Nov 2004 Posts: 59 Location: Las Vegas
|
Posted: Sun Apr 07, 2013 7:03 pm Post subject: [SOLVED] MariaDB missing mysql_install_db |
|
|
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 |
|
|
rhumbliner n00b
Joined: 15 Nov 2004 Posts: 59 Location: Las Vegas
|
Posted: Mon Apr 08, 2013 2:15 pm Post subject: SOLVED - MariaDB missing mysql_install_db |
|
|
turns out mysql_install_db is included as a script:
Code: | /usr/share/mysql/scripts/mysql_install_db
|
|
|
Back to top |
|
|
Jeremy Morgan n00b
Joined: 11 May 2012 Posts: 3 Location: Hillsboro, Oregon
|
Posted: Sun Jun 23, 2013 7:47 am Post subject: |
|
|
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 |
|
|
|