* [gentoo-user] MySQL 4.1 upgrade questions
@ 2005-10-25 17:39 Grant
2005-10-25 18:26 ` [gentoo-user] " Grant
2005-10-25 18:47 ` [gentoo-user] " Francesco R.
0 siblings, 2 replies; 6+ messages in thread
From: Grant @ 2005-10-25 17:39 UTC (permalink / raw
To: Gentoo mailing list
Hello, I'm upgrading my server from mysql 4.0 to 4.1 by following the
instructions here:
http://www.gentoo.org/doc/en/mysql-upgrading.xml
I noticed this piece of instruction:
emerge --config =mysql-4.1.<micro_version>
What does that do? From what I remember, I need to password the grant
table and create a new table for my data with the proper name,
username, and password. Does that sounds right? Does the emerge
--config command take you through any of that or do I need to figure
out (remember) how to do it manually?
- Grant
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-user] Re: MySQL 4.1 upgrade questions
2005-10-25 17:39 [gentoo-user] MySQL 4.1 upgrade questions Grant
@ 2005-10-25 18:26 ` Grant
2005-10-25 18:47 ` [gentoo-user] " Francesco R.
1 sibling, 0 replies; 6+ messages in thread
From: Grant @ 2005-10-25 18:26 UTC (permalink / raw
To: Gentoo mailing list
> Hello, I'm upgrading my server from mysql 4.0 to 4.1 by following the
> instructions here:
>
> http://www.gentoo.org/doc/en/mysql-upgrading.xml
>
> I noticed this piece of instruction:
>
> emerge --config =mysql-4.1.<micro_version>
>
> What does that do? From what I remember, I need to password the grant
> table and create a new table for my data with the proper name,
> username, and password. Does that sounds right? Does the emerge
> --config command take you through any of that or do I need to figure
> out (remember) how to do it manually?
>
> - Grant
Nevermind, that was ridiculously easy. All I had to do was run emerge
--config and I'm back in business.
- Grant
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] MySQL 4.1 upgrade questions
2005-10-25 17:39 [gentoo-user] MySQL 4.1 upgrade questions Grant
2005-10-25 18:26 ` [gentoo-user] " Grant
@ 2005-10-25 18:47 ` Francesco R.
2005-10-26 17:41 ` Grant
1 sibling, 1 reply; 6+ messages in thread
From: Francesco R. @ 2005-10-25 18:47 UTC (permalink / raw
To: gentoo-user
Alle 19:39, martedì 25 ottobre 2005, Grant ha scritto:
> Hello, I'm upgrading my server from mysql 4.0 to 4.1 by following the
> instructions here:
>
> http://www.gentoo.org/doc/en/mysql-upgrading.xml
>
> I noticed this piece of instruction:
>
> emerge --config =mysql-4.1.<micro_version>
>
> What does that do? From what I remember, I need to password the
> grant table and create a new table for my data with the proper name,
> username, and password. Does that sounds right? Does the emerge
> --config command take you through any of that or do I need to figure
> out (remember) how to do it manually?
In it's older (and deprecated) form was "ebuild path/name.ebuild
config" .
Basically it run the pkg_config() function inside the ebuild itself.
Specifically MySQL pkg_config() actions are the following:
- check that no mysql server are running on the box or die
- check that datadir (/var/lib/mysql) is empty or die
- ask for a password
- install the databases (mysql & test)
- fill the help tables for command line client
- fill the timezone tables
- set the _mysql_ root password
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] MySQL 4.1 upgrade questions
2005-10-25 18:47 ` [gentoo-user] " Francesco R.
@ 2005-10-26 17:41 ` Grant
2005-10-27 11:10 ` Francesco R.
0 siblings, 1 reply; 6+ messages in thread
From: Grant @ 2005-10-26 17:41 UTC (permalink / raw
To: gentoo-user
> > Hello, I'm upgrading my server from mysql 4.0 to 4.1 by following the
> > instructions here:
> >
> > http://www.gentoo.org/doc/en/mysql-upgrading.xml
> >
> > I noticed this piece of instruction:
> >
> > emerge --config =mysql-4.1.<micro_version>
> >
> > What does that do? From what I remember, I need to password the
> > grant table and create a new table for my data with the proper name,
> > username, and password. Does that sounds right? Does the emerge
> > --config command take you through any of that or do I need to figure
> > out (remember) how to do it manually?
>
> In it's older (and deprecated) form was "ebuild path/name.ebuild
> config" .
>
> Basically it run the pkg_config() function inside the ebuild itself.
>
> Specifically MySQL pkg_config() actions are the following:
> - check that no mysql server are running on the box or die
> - check that datadir (/var/lib/mysql) is empty or die
> - ask for a password
> - install the databases (mysql & test)
> - fill the help tables for command line client
> - fill the timezone tables
> - set the _mysql_ root password
Nice, I was using the database named mysql for my data so that fits
like a glove with the other software that accesses mysql. The grant
tables are in the mysql database, so passwording that database secures
my data and the grant tables right? Is it OK to leave the "test"
database as is?
- Grant
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] MySQL 4.1 upgrade questions
2005-10-26 17:41 ` Grant
@ 2005-10-27 11:10 ` Francesco R.
2005-10-27 13:19 ` A. Khattri
0 siblings, 1 reply; 6+ messages in thread
From: Francesco R. @ 2005-10-27 11:10 UTC (permalink / raw
To: gentoo-user
> Nice, I was using the database named mysql for my data so that fits
> like a glove with the other software that accesses mysql. The grant
> tables are in the mysql database, so passwording that database
> secures my data and the grant tables right? Is it OK to leave the
> "test" database as is?
For a security hardened database you should drop the test database and
all users with "%" access. Also you can play with "bind-address" and
"skip-networking" in the my.cnf
upstream Docs:
http://dev.mysql.com/doc/refman/4.1/en/security.html
What I've understud from your post is that in your config the "mysql"
database is used to keep your data, this is a dangerous, that database
is managed in a special way by MySQL (and never minded to keep
extraneous data).
create your own database with the "CREATE DATABASE name;" SQL command
than "USE name" to switch to it.
Cheers
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] MySQL 4.1 upgrade questions
2005-10-27 11:10 ` Francesco R.
@ 2005-10-27 13:19 ` A. Khattri
0 siblings, 0 replies; 6+ messages in thread
From: A. Khattri @ 2005-10-27 13:19 UTC (permalink / raw
To: gentoo-user
On Thu, 27 Oct 2005, Francesco R. wrote:
> For a security hardened database you should drop the test database and
> all users with "%" access. Also you can play with "bind-address" and
> "skip-networking" in the my.cnf
I think bind-address is 127.0.0.1 by default anyway.
--
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-10-27 13:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-25 17:39 [gentoo-user] MySQL 4.1 upgrade questions Grant
2005-10-25 18:26 ` [gentoo-user] " Grant
2005-10-25 18:47 ` [gentoo-user] " Francesco R.
2005-10-26 17:41 ` Grant
2005-10-27 11:10 ` Francesco R.
2005-10-27 13:19 ` A. Khattri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox