<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=ConfigureMysqlOnGentoo</id>
	<title>ConfigureMysqlOnGentoo - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=ConfigureMysqlOnGentoo"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=ConfigureMysqlOnGentoo&amp;action=history"/>
	<updated>2026-08-22T10:35:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=ConfigureMysqlOnGentoo&amp;diff=578&amp;oldid=prev</id>
		<title>Admin: 5 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=ConfigureMysqlOnGentoo&amp;diff=578&amp;oldid=prev"/>
		<updated>2016-04-06T20:03:26Z</updated>

		<summary type="html">&lt;p&gt;5 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This guide assumes that RT is running on the same machine as the MySQL server.&lt;br /&gt;
&lt;br /&gt;
=== Setting a root password for !MySQL on Gentoo (for first time installers) ===&lt;br /&gt;
&lt;br /&gt;
Switch to the root user of your system.&lt;br /&gt;
&lt;br /&gt;
 $ su -&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strike&amp;gt;If you have not already done so, MySQL must be installed with the &amp;quot;innodb&amp;quot; USE flag. The easiest way to do this is to add it to /etc/portage/package.use &amp;lt;/strike&amp;gt;(this USE flag is deprecated with current versions of MySQL in portage, so you shouldn&amp;#039;t need to re-emerge if your MySQL install is recent)&amp;lt;strike&amp;gt;:&lt;br /&gt;
&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;strike&amp;gt;dev-db/mysql innodb&lt;br /&gt;
 &amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strike&amp;gt;and re-emerge MySQL&lt;br /&gt;
&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;strike&amp;gt;emerge -av mysql&lt;br /&gt;
 &amp;lt;/strike&amp;gt;&lt;br /&gt;
Verify that the skip-innodb is commented out in /etc/mysql/my.cnf. If it is not, then put an octothorpe in front of it:&lt;br /&gt;
 #skip-innodb&lt;br /&gt;
and restart the mysql server:&lt;br /&gt;
 # /etc/init.d/mysql restart&lt;br /&gt;
&lt;br /&gt;
Add the MySQL server to the default run-level, so that it will load everytime your server boots.&lt;br /&gt;
&lt;br /&gt;
 # rc-update add mysql default&lt;br /&gt;
Install the MySQL datase.&lt;br /&gt;
 # /usr/bin/mysql_install_db&lt;br /&gt;
&lt;br /&gt;
Start the MySQL server.&lt;br /&gt;
&lt;br /&gt;
 # /etc/init.d/mysql start&lt;br /&gt;
&lt;br /&gt;
Set or change the root password for MySQL and remove the test database and anonymous user.&lt;br /&gt;
&lt;br /&gt;
 # /usr/bin/mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Creating the RT database ===&lt;br /&gt;
&lt;br /&gt;
RT comes with a script that creates the initial rt4 database.&lt;br /&gt;
&lt;br /&gt;
 # /var/www/myrt/rt-4.0.5/sbin/rt-setup-database --action init --dba root --prompt-for-dba-password&lt;br /&gt;
&lt;br /&gt;
=== Adding a user for RT to work through ===&lt;br /&gt;
&lt;br /&gt;
(Our guide uses rt_user; it is recommend that you choose your own name.)&lt;br /&gt;
&lt;br /&gt;
As root, login to MySQL&lt;br /&gt;
&lt;br /&gt;
 # mysql -p&lt;br /&gt;
&lt;br /&gt;
Grant access rights to rt_user.&lt;br /&gt;
&lt;br /&gt;
 GRANT ALL PRIVILEGES ON rt4.* TO &amp;#039;rt_user&amp;#039;@&amp;#039;localhost&amp;#039; IDENTIFIED BY &amp;#039;p4ssw0rd&amp;#039;;&lt;br /&gt;
 FLUSH PRIVILEGES;&lt;br /&gt;
 QUIT&lt;br /&gt;
&lt;br /&gt;
If you want to change rt_user&amp;#039;s password, execute the following at the MySQL prompt.&lt;br /&gt;
&lt;br /&gt;
 SET PASSWORD FOR &amp;#039;rt_user&amp;#039;@&amp;#039;localhost&amp;#039; = PASSWORD(&amp;#039;n3wp4ssw0rd&amp;#039;);&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>