View previous topic :: View next topic |
Author |
Message |
manu_leo Guru
Joined: 20 Jan 2014 Posts: 513 Location: India
|
Posted: Sat Aug 16, 2014 3:38 pm Post subject: mysql question. |
|
|
Hi Experts, I am trying to install mysql on my new Gentoo server. I do 'emerge --ask mysql' and it does the installation. This creates a mysql directory under /var/log/mysql. Then I try 'emerge --config =dev-db/mysql-5.5.39' because its a fresh install which gives me an error message :-
emerge --config =dev-db/mysql-5.5.39
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.5.39::gentoo failed (config phase):
* MySQL database already exists!
*
* Call stack:
* ebuild.sh, line 93: Called pkg_config
* environment, line 3658: Called mysql-v2_pkg_config
* environment, line 3200: 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.5.39::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-db/mysql-5.5.39::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.5.39/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.5.39/temp/environment'.
* Working directory: '/usr/lib64/portage/pym'
* S: '/var/tmp/portage/dev-db/mysql-5.5.39/work/mysql-5.5.39'
Now, If I go ahead and rename /var/log/mysql to /var/log/mysql.bak and re-run 'emerge --config =dev-db/mysql-5.5.39', it works just fine.
My dout is , 'emerge mysql' creates a directory '/var/log/mysql/' . Then I run 'emerge --config =dev-db/mysql-5.5.39' because its a fresh install and it again creates a same directory . Because of this the installation fails and comes with the above error message. Why does this happens - Why does both the commands create the same directory ? |
|
Back to top |
|
|
brendlefly62 Tux's lil' helper
Joined: 19 Dec 2009 Posts: 133
|
|
Back to top |
|
|
|
|
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
|
|