Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Goik Martin
GoikLectures
Commits
35a294bb
Commit
35a294bb
authored
8 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
Better mysql install hints
parent
df122c68
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Doc/Sda1/prerequisites.xml
+23
-21
23 additions, 21 deletions
Doc/Sda1/prerequisites.xml
with
23 additions
and
21 deletions
Doc/Sda1/prerequisites.xml
+
23
−
21
View file @
35a294bb
...
@@ -351,35 +351,37 @@ Do you want to continue? [Y/n/?]</programlisting>
...
@@ -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
Server. We create a database
<quote>
hdm
</quote>
to be used for our
exercises:
</para>
exercises:
</para>
<programlisting
language=
"none"
>
goik@
goiki:~$
mysql -u root -p
<programlisting
language=
"none"
>
goik@
hopc ~
>
mysql -u root -p
Enter password:
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.
... messages omitted for brevity ...
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.
mysql
>
<emphasis
role=
"bold"
>
create database hdm;
</emphasis>
mysql
>
<emphasis
role=
"bold"
>
create database hdm;
</emphasis>
Query OK, 1 row affected (0.00 sec)
</programlisting>
Query OK, 1 row affected (0.00 sec)
</programlisting>
<para>
Following
<uri
<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>
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
we add
<code>
hdmuser
</code>
as a new user and grant full access to the
database:
</para>
newly created database
<code>
hdm to him
</code>
:
</para>
<programlisting
language=
"none"
>
goik@goiki:~$ mysql -u root -p
<programlisting
language=
"none"
>
...
Enter password:
mysql
>
<emphasis
role=
"bold"
>
CREATE USER 'hdmuser'@'localhost' IDENTIFIED BY 'XYZ';
</emphasis>
...
mysql
>
<emphasis
role=
"bold"
>
use hdm;
</emphasis>
mysql
>
CREATE USER 'hdmuser'@'localhost' IDENTIFIED BY 'XYZ';
mysql
>
<emphasis
role=
"bold"
>
GRANT ALL PRIVILEGES ON *.* TO 'hdmuser'@'localhost' WITH GRANT OPTION;
</emphasis>
mysql
>
use hdm;
mysql
>
<emphasis
role=
"bold"
>
FLUSH PRIVILEGES;
</emphasis>
mysql
>
GRANT ALL PRIVILEGES ON *.* TO 'hdmuser'@'localhost' WITH GRANT OPTION;
mysql
>
exit;
mysql
>
FLUSH PRIVILEGES;
</programlisting>
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
<para>
The next step is optional. The
<productname
xlink:href=
"http://www.ubuntu.com"
>
Ubuntu
</productname>
<productname
xlink:href=
"http://www.ubuntu.com"
>
Ubuntu
</productname>
<productname
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment