Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mysql setup errors out
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2846

PostPosted: Wed Feb 27, 2013 11:45 pm    Post subject: mysql setup errors out Reply with quote

Hi, ALL,
I just tried to update mySQL on one of my machines.

Here is what I have:

Code:

 * Messages for package dev-db/mysql-5.1.67:

 * MySQL MY_DATADIR is /var/lib/mysql
 * MySQL datadir found in /var/lib/mysql
 * A new one will not be created.
 * You might want to run:
 * "emerge --config =dev-db/mysql-5.1.67"
 * if this is a new install.
 * If you are upgrading major versions, you should run the
 * mysql_upgrade tool.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * Regenerating GNU info directory index...
 * Processed 130 info files.

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

LearningRight igor # emerge --config =dev-db/mysql-5.1.67


Configuring pkg...

 * You have already a MySQL database in place.
 * (///var/lib/mysql/*)
 * Please rename or delete it if you wish to replace it.
 * ERROR: dev-db/mysql-5.1.67 failed (config phase):
 *   MySQL database already exists!
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called pkg_config
 *   environment, line 3985:  Called mysql-v2_pkg_config
 *   environment, line 3598:  Called die
 * The specific snippet of code:
 *           die "MySQL database already exists!";
 *
 * If you need support, post the output of `emerge --info '=dev-db/mysql-5.1.67'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mysql-5.1.67'`.
 * 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.67/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.1.67/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/mysql-5.1.67'
 * S: '/var/tmp/portage/dev-db/mysql-5.1.67/work/mysql-5.1.67'


Is there a reason, why config phase is failing like this?
My guess it should just report that the DB exist and finish.

Thank you.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7641
Location: Goose Creek SC

PostPosted: Thu Feb 28, 2013 2:52 am    Post subject: Reply with quote

The behavior is caused by the --config option.
Without --config update occurs and
Quote:
* Messages for package dev-db/mysql-5.1.67:

* One or more symlinks to directories have been preserved in order to
* ensure that files installed via these symlinks remain accessible. This
* indicates that the mentioned symlink(s) may be obsolete remnants of an
* old install, and it may be appropriate to replace a given symlink with
* the directory that it points to.
*
* /var/run
*

* Messages for package dev-db/mysql-5.1.67:

* MySQL MY_DATADIR is /var/lib/mysql
* MySQL datadir found in /var/lib/mysql
* A new one will not be created.
* You might want to run:
* "emerge --config =dev-db/mysql-5.1.67"
* if this is a new install.
* If you are upgrading major versions, you should run the
* mysql_upgrade tool.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

* Regenerating GNU info directory index...
* Processed 113 info files.
gives the status. Pretty much the behavior you wanted. Apparently the developer really wants you to only destroy your data purposely.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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