Changeset ac109439


Ignore:
Timestamp:
11/19/2004 05:57:16 AM (19 years ago)
Author:
Igor Živković <igor@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
d0abeb0
Parents:
c69b94a3
Message:

Few corrections to MySQL configuration.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2966 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • content/databases/mysql.xml

    rc69b94a3 rac109439  
    7272    --enable-thread-safe-client --enable-assembler \
    7373    --enable-local-infile --with-named-thread-libs=-lpthread \
    74     --with-unix-socket-path=/var/run/mysql --without-debug \
    75     --without-bench --without-readline &amp;&amp;
     74    --with-unix-socket-path=/var/run/mysql/mysql.sock
     75    --without-debug --without-bench --without-readline &amp;&amp;
    7676make testdir=/usr/lib/mysql/mysql-test &amp;&amp;
    7777make testdir=/usr/lib/mysql/mysql-test install &amp;&amp;
     
    158158unprivileged user and group.</para>
    159159
    160 <screen><userinput><command>mysql_install_db &amp;&amp;
    161 chown -R mysql:mysql /srv/mysql</command></userinput></screen>
     160<screen><userinput><command>mysql_install_db --user=mysql</command></userinput></screen>
    162161
    163162<para>Further configuration requires that the
    164163<application>My<acronym>SQL</acronym></application> server be running:</para>
    165164
    166 <screen><userinput><command>mysqld_safe --user=mysql 2&gt;&amp;1 &gt;/dev/null &amp;</command></userinput></screen>
     165<screen><userinput><command>install -o mysql -d /var/run/mysql &amp;&amp;
     166mysqld_safe --user=mysql 2&gt;&amp;1 &gt;/dev/null &amp;</command></userinput></screen>
    167167
    168168<para>A default installation does not setup a password for the administrator,
    169169so use the following command to set one. Replace
    170170<replaceable>[new-password]</replaceable> with your own.</para>
    171 
    172 <!--
    173 <screen><userinput><command>mysql -uroot mysql</command></userinput>
    174 Welcome to the MySQL monitor.  Commands end with ; or \g.
    175 Your MySQL connection id is 2 to server version: 3.23.51-log
    176 
    177 Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    178 
    179 <prompt>mysql&gt;</prompt> <userinput><command>UPDATE user SET password=password('<replaceable>new-password</replaceable>') WHERE user='root';</command></userinput>
    180 Query OK, 2 rows affected (0.00 sec)
    181 Rows matched: 2  Changed: 2  Warnings: 0
    182 
    183 <prompt>mysql&gt;</prompt> <userinput><command>FLUSH PRIVILEGES;</command></userinput>
    184 Query OK, 0 rows affected (0.00 sec)
    185 
    186 <prompt>mysql&gt;</prompt> <userinput><command>EXIT;</command></userinput>
    187 bye
    188 </screen>
    189 -->
    190171
    191172<screen><userinput><command>mysqladmin -u root password <replaceable>[new-password]</replaceable></command></userinput></screen>
Note: See TracChangeset for help on using the changeset viewer.