diff --git a/Doc/Sda1/prerequisites.xml b/Doc/Sda1/prerequisites.xml index 8ff0f8886a2ec2147de11735951accaaec78a066..846d27f3e9461f7bdf8b9e9c73de6189a97d8033 100644 --- a/Doc/Sda1/prerequisites.xml +++ b/Doc/Sda1/prerequisites.xml @@ -351,35 +351,37 @@ Do you want to continue? [Y/n/?]</programlisting> Server. We create a database <quote>hdm</quote> to be used for our exercises:</para> - <programlisting language="none">goik@goiki:~$ mysql -u root -p + <programlisting language="none">goik@hopc ~> mysql -u root -p Enter password: -Welcome to the MySQL monitor. Commands end with ; or \g. -Your MySQL connection id is 42 -Server version: 5.5.24-0ubuntu0.12.04.1 (Ubuntu) -Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. - -Oracle is a registered trademark of Oracle Corporation and/or its -affiliates. Other names may be trademarks of their respective -owners. - -Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. +... messages omitted for brevity ... mysql> <emphasis role="bold">create database hdm;</emphasis> Query OK, 1 row affected (0.00 sec)</programlisting> <para>Following <uri xlink:href="https://dev.mysql.com/doc/refman/5.5/en/adding-users.html">https://dev.mysql.com/doc/refman/5.5/en/adding-users.html</uri> - we add a new user and grant full access to the newly created - database:</para> - - <programlisting language="none">goik@goiki:~$ mysql -u root -p -Enter password: - ... -mysql> CREATE USER 'hdmuser'@'localhost' IDENTIFIED BY 'XYZ'; -mysql> use hdm; -mysql> GRANT ALL PRIVILEGES ON *.* TO 'hdmuser'@'localhost' WITH GRANT OPTION; -mysql> FLUSH PRIVILEGES;</programlisting> + we add <code>hdmuser</code> as a new user and grant full access to the + newly created database <code>hdm to him</code>:</para> + + <programlisting language="none"> ... +mysql> <emphasis role="bold">CREATE USER 'hdmuser'@'localhost' IDENTIFIED BY 'XYZ';</emphasis> +mysql> <emphasis role="bold">use hdm;</emphasis> +mysql> <emphasis role="bold">GRANT ALL PRIVILEGES ON *.* TO 'hdmuser'@'localhost' WITH GRANT OPTION;</emphasis> +mysql> <emphasis role="bold">FLUSH PRIVILEGES;</emphasis> +mysql> exit; +Bye</programlisting> + + <para>You may want to test your configuration:</para> + + <programlisting language="none">goik@hopc ~> mysql --user=hdmuser --password=XYZ + +... messages omitted for brevity ... + +mysql> use hdm;show tables; +Database changed +Empty set (0,00 sec) +mysql></programlisting> <para>The next step is optional. The <productname xlink:href="http://www.ubuntu.com">Ubuntu</productname> <productname