MySQL 4.1 in Gentoo 2006.0

nano -w /etc/portage/package.use
==
dev-db/mysql innodb berkdb
==

emerge -1 mysql
=n=
his will emerge the dev-db/mysql ebuild without adding it to the world

namespace. Thus, whenever you type ’emerge –update world’ mysql will not be

updated. This is extremely useful since portage doesn’t support straight,

unattended updates for mysql. Since you will have to manually update mysql

anyway, you may wish to remove it from world so that your auto-update script(s)

don’t fail.
=n=

emerge –config =dev-db/mysql-4.1.20
or
ebuild /var/db/pkg/dev-db/mysql-4.1.20/mysql-4.1.20.ebuild
/etc/init.d/mysql start
mysql_setpermission
mysql> SET PASSWORD FOR ‘root’@’localhost’=PASSWORD(‘password_here’);
mysql_secure_installation
rc-update add mysql default

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.