Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11681 - Mysql - ebuild config fails
Summary: Mysql - ebuild config fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Highest critical (vote)
Assignee: Donny Davies (RETIRED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-06 10:55 UTC by Markus Kötterheinrich
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bugfixed ebuild that solves this bug on k6, k6-2, k6-3 arch. (mysql-3.23.52-r1.ebuild,6.41 KB, text/plain)
2002-12-12 09:11 UTC, Sascha Herrmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Kötterheinrich 2002-12-06 10:55:01 UTC
After I emerge mysql then I run this command:

ebuild /var/db/pkg/dev-db/mysql-3.23.52-r1/mysql-3.23.52-r1.ebuild 
config

to configure mysql as listed after emerge. I get this error:

* Press ENTER to create the mysql database and set proper 
* permissions on it, or Control-C to abort now... 

Preparing db table 
Preparing host table 
Preparing user table 
Preparing func table 
Preparing tables_priv table 
Preparing columns_priv table 
Installing all prepared tables 
ERROR: 1033 Incorrect information in file: './mysql/db.frm' 
ERROR: 1033 Incorrect information in file: './mysql/db.frm' 
ERROR: 1033 Incorrect information in file: './mysql/db.frm' 
ERROR: 1033 Incorrect information in file: './mysql/db.frm' 
ERROR: 1033 Incorrect information in file: './mysql/db.frm' 
ERROR: 1033 Incorrect information in file: './mysql/db.frm' 
ERROR: 1033 Incorrect information in file: './mysql/db.frm' 
ERROR: 1033 Incorrect information in file: './mysql/db.frm' 
ERROR: 1033 Incorrect information in file: './mysql/db.frm' 
ERROR: 1033 Incorrect information in file: './mysql/db.frm' 
ERROR: 1033 Incorrect information in file: './mysql/db.frm' 
ERROR: 1033 Incorrect information in file: './mysql/db.frm' 
ERROR: 1033 Incorrect information in file: './mysql/db.frm' 021205 
16:54:32 /usr/libexec/mysqld: Shutdown Complete 


PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! This is done 
with: /etc/init.d/mysql start (you have to start the server 
first!) /usr/bin/mysqladmin -u root password 'new-
password' /usr/bin/mysqladmin -u root -h andvari.klettur.net password 'new-
password' See the manual for more instructions. 

Please report any problems with the /usr/bin/mysqlbug script! 

The latest information about MySQL is available on the web at 
http://www.mysql.com Support MySQL by buying support/licenses at 
https://order.mysql.com

Then I tried to do: emerge -C mysql and emerge-ing mysql again after I 
removed /var/lib/mysql but still I get the same error.

Oh and this was in the myqsl.err log:

021205 17:01:21 mysqld started 
021205 17:01:21 /usr/libexec/mysqld: Table 'mysql.host' doesn't exist 
021205 17:01:21 mysqld ended
Comment 1 Sascha Herrmann 2002-12-07 17:14:07 UTC
Yeap, i had this bug before. I guess you have an AMD K6 - [1||2||3] an a
CFLAGS="...-march=k6" or similar! To solve this problem, you only need to set
CFLAGS="-march=i586 ..." and then everything works fine!

More information can be found at:

http://forums.gentoo.org/viewtopic.php?t=17528&highlight=
Comment 2 Sascha Herrmann 2002-12-12 09:11:17 UTC
Created attachment 6434 [details]
bugfixed ebuild that solves this bug on k6, k6-2, k6-3 arch.

Hi,

this is my bugfix to this problem. I used the inherit flag-o-matic to replace
the -march=k6(-2,-3) options with the -march=i586 option. This solves this bug
on my k6 an k6-2 machine!

bye sascha
Comment 3 Donny Davies (RETIRED) gentoo-dev 2002-12-18 10:15:50 UTC
added your fix.