| View previous topic :: View next topic |
| Author |
Message |
LD Guru


Joined: 23 Dec 2003 Posts: 336 Location: Middle of No-Where Granbury, Tx
|
Posted: Sat Oct 15, 2011 1:03 am Post subject: mysql-5.1.59 fails to configq |
|
|
For some reason mysql failed on me, and I couldn't get it back online so I uninstalled and reinstalled. Now I've even had to go as far as clearing out everything related to it and rebuilding.
But when I run emerge --config =dev-db/mysql-5.1.59 I get as far as entering in the root password and it fails with and error in the log about //usr/lib/mysql --basedir=/usr no such file or directery. I don't know why it's giving me this error and I don't know how to go about fixing it. Any thoughts? _________________ [Owner/Operator: Dhampir Dreams]
Last.fm profile
Netflix Profile |
|
| Back to top |
|
 |
a3li Retired Dev

Joined: 02 Sep 2008 Posts: 122 Location: 독일
|
Posted: Sat Oct 15, 2011 11:47 pm Post subject: |
|
|
Care to provide the exact error message? _________________ I am Confuism. Do not bother me. |
|
| Back to top |
|
 |
LD Guru


Joined: 23 Dec 2003 Posts: 336 Location: Middle of No-Where Granbury, Tx
|
Posted: Sun Oct 16, 2011 4:20 am Post subject: |
|
|
The error from mysql_install_db.log is as follows
| Code: | | /var/tmp/portage/dev-db/mysql-5.1.59/temp/environment: line 3702: //usr/bin/mysql_install_db --basedir=/usr: No such file or directory |
The portage error is your typical error saying to check the log file and mysqld.err file.
and all the other log files are empty. I checked and /usr is there, as is /var/lib/mysql. _________________ [Owner/Operator: Dhampir Dreams]
Last.fm profile
Netflix Profile |
|
| Back to top |
|
 |
FizzyWidget Veteran


Joined: 21 Nov 2008 Posts: 1133 Location: 127.0.0.1
|
Posted: Sun Oct 16, 2011 6:51 am Post subject: |
|
|
just run mysql_install_db as root, and make the password yourself _________________ I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch. |
|
| Back to top |
|
 |
LD Guru


Joined: 23 Dec 2003 Posts: 336 Location: Middle of No-Where Granbury, Tx
|
Posted: Sun Oct 16, 2011 2:03 pm Post subject: |
|
|
| Dark Foo wrote: | | just run mysql_install_db as root, and make the password yourself |
I've done that before. It doesn't do much, and when I do try to create databases after it tells me it can't do it.
Edit: It's now saying that I can't even set the password for root. _________________ [Owner/Operator: Dhampir Dreams]
Last.fm profile
Netflix Profile |
|
| Back to top |
|
 |
ykai n00b

Joined: 19 Oct 2011 Posts: 2
|
Posted: Wed Oct 19, 2011 4:23 am Post subject: |
|
|
| I've had the same error after fresh build of mysql-5.1.59. Failed to run emerge --config =dev-db/mysql-5.1.59. |
|
| Back to top |
|
 |
ykai n00b

Joined: 19 Oct 2011 Posts: 2
|
Posted: Thu Oct 20, 2011 2:08 am Post subject: |
|
|
Maybe I've solved this problem temporarily.
The original error message is:
| Quote: |
~ # emerge --config =dev-db/mysql-5.1.59
Configuring pkg...
* Please provide a password for the mysql 'root' user now, in the
* MYSQL_ROOT_PASSWORD env var or through the /root/.my.cnf file.
* Avoid ["'\_%] characters in the password
>
* Retype the password
>
* ERROR: dev-db/mysql-5.1.59 failed (config phase):
* Failed to run mysql_install_db. Please review /var/log/mysql/mysqld.err AND /var/tmp/portage/dev-db/mysql-5.1.59/te
mp/mysql_install_db.log
*
* Call stack:
* ebuild.sh, line 91: Called pkg_config
* environment, line 4057: Called mysql-v2_pkg_config
* environment, line 3689: Called die
* The specific snippet of code:
* die "Failed to run mysql_install_db. Please review /var/log/mysql/mysqld.err AND ${TMPDIR}/mysql_install_db.log";
*
* If you need support, post the output of 'emerge --info =dev-db/mysql-5.1.59',
* the complete build log and the output of 'emerge -pqv =dev-db/mysql-5.1.59'.
* This ebuild is from an overlay named 'gentoo': '/var/db/pkg/'
* The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.1.59/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.1.59/temp/environment'.
* S: '/var/tmp/portage/dev-db/mysql-5.1.59/work/mysql-5.1.59'
|
The error from mysql_install_db.log is the same:
| Quote: | | /var/tmp/portage/dev-db/mysql-5.1.59/temp/environment: line 3688: //usr/bin/mysql_install_db --basedir=/usr: No such file or directory |
So, I modified the file /usr/portage/eclass/mysql-v2.eclass
| Code: |
--- mysql-v2.eclass.orig 2011-10-20 09:55:31.000000000 +0800
+++ mysql-v2.eclass 2011-10-20 09:54:46.000000000 +0800
@@ -641,7 +641,7 @@
pushd "${TMPDIR}" &>/dev/null
ewarn "test test"
- "${ROOT}/usr/bin/mysql_install_db --basedir=/usr" >"${TMPDIR}"/mysql_install_db.log 2>&1
+ /usr/bin/mysql_install_db --basedir=/usr >"${TMPDIR}"/mysql_install_db.log 2>&1
if [ $? -ne 0 ]; then
grep -B5 -A999 -i "ERROR" "${TMPDIR}"/mysql_install_db.log 1>&2
die "Failed to run mysql_install_db. Please review /var/log/mysql/mysqld.err AND ${TMPDIR}/mysql_install_db.log"
|
Then backup the environment.bz2 and re-run emerge --config :
| Code: |
mv /var/db/pkg/dev-db/mysql-5.1.59/environment.bz2 /var/db/pkg/dev-db/mysql-5.1.59/environment.bz2.bak
emerge --config =dev-db/mysql-5.1.59
|
This workaround work for me. |
|
| Back to top |
|
 |
Sh4doW n00b


Joined: 13 Mar 2003 Posts: 37
|
Posted: Thu Oct 27, 2011 4:36 pm Post subject: |
|
|
I had the same problem with mysql_install_db :
| Quote: |
/var/tmp/portage/dev-db/mysql-5.1.59/temp/environment: line 3782: //usr/bin/mysql_install_db --basedir=/usr: No such file or directory
|
Just as ykai said, I also had to change mysql-v2.eclass and remove ${ROOT} param. Afterwards everything worked as expected.
btw, i filed a bug @ https://bugs.gentoo.org/show_bug.cgi?id=388673 _________________ only sheep need a leader. |
|
| Back to top |
|
 |
pepoluan n00b


Joined: 28 Feb 2011 Posts: 42 Location: Jakarta, Indonesia
|
Posted: Thu Nov 17, 2011 2:05 pm Post subject: |
|
|
Similar problem here. Except that I'm still on dev-db/mysql-5.1.58-r1
Same fix. _________________ Nobody is Perfect.
I am Nobody. |
|
| Back to top |
|
 |
|