This commit is contained in:
Daniel Schubert 2019-02-28 09:57:43 +01:00
parent cfb12c0aa3
commit c8563fb01e
35 changed files with 378 additions and 12 deletions

145
15.html
View File

@ -51,18 +51,7 @@
<section data-transition="slide" data-background="#b5533c" data-background-transition="convex"> <h3>lampp stack</h3> </section>
<section>
<ul>
<li>mysql basics</li>
<li>wordpress tabellen ansehen</li>
<li>apache vhost</li>
<li>letsencrypt</li>
<li></li>
<li></li>
<li></li>
</ul>
</section>
<section>
<pre><code class="bash">~$ sudo apt install apache2 mysql-server phpmyadmin</code></pre>
@ -80,6 +69,138 @@ MariaDB [(none)]> \q
</ul>
</section>
<section>
<h3>mysql</h3>
</section>
<section>
mysql ist eine „relationale Datenbank”
<p><cite> Relationale Datenbanken versuchen die Realität in einem Datenmodell abzubilden.</cite>
<ul>
<li>Jede Zeile einer Tabelle ist ein Datensatz</li>
<li>Jede Zeile ( Tupel ) besteht aus Attributen ( die Spalten )</li>
<li>Über Primärschlüssel werden Beziehungen hergestellt</li>
<li>Eine Datenbank kann viele Tabellen beinhalten</li>
</ul>
<img src="img/relationales_datenbankmodell_beispiel.jpg">
<p><small style="font-size:.4em">Quelle: http://www.datenbanken-verstehen.de/datenbank-grundlagen/datenbankmodell/relationales-datenbankmodell/</small>
</section>
<section>
<h4>Normalisierung</h4>
Aufteilung der Attribute (Spalten) in mehrere Relationen ( Tabellen ), so dass eine Form ohne Redundanzen entsteht.
</section>
<section>
<img src="img/Aufspaltung_einer_Tabelle_in_zwei_(Beispiel).svg">
</section>
<section>
<img src="img/Wp_Normal_1_301208_165800.JPG">
</section>
<section>
Verbindung aufnehmen:
<pre><code class="bash">~$ sudo mysql
# oder:
~$ mysql -u BENUTZERNAME -p -h localhost
</code></pre>
<ul>
<li class="fragment ">this</li>
</ul>
</section>
<section>Datenbank erstellen
<pre><code class="sql">CREATE DATABASE IF NOT EXISTS test;
USE test;
CREATE TABLE IF NOT EXISTS books (
BookID INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
Title VARCHAR(100) NOT NULL,
SeriesID INT, AuthorID INT);
CREATE TABLE IF NOT EXISTS authors
(id INT NOT NULL PRIMARY KEY AUTO_INCREMENT);
CREATE TABLE IF NOT EXISTS series
(id INT NOT NULL PRIMARY KEY AUTO_INCREMENT);
INSERT INTO books (Title,SeriesID,AuthorID)
VALUES('The Fellowship of the Ring',1,1),
('The Two Towers',1,1), ('The Return of the King',1,1),
('The Sum of All Men',2,2), ('Brotherhood of the Wolf',2,2),
('Wizardborn',2,2), ('The Hobbbit',0,1);</code></pre>
</section>
<section>Tabellen anzeigen
<pre><code class="sql">
SHOW TABLES;
+----------------+
| Tables_in_test |
+----------------+
| authors |
| books |
| series |
+----------------+
3 rows in set (0.00 sec)
</code></pre>
</section>
<section>
<pre><code class="sql">DESCRIBE books;
+----------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------+--------------+------+-----+---------+----------------+
| BookID | int(11) | NO | PRI | NULL | auto_increment |
| Title | varchar(100) | NO | | NULL | |
| SeriesID | int(11) | YES | | NULL | |
| AuthorID | int(11) | YES | | NULL | |
+----------+--------------+------+-----+---------+----------------+
</code></pre>
</section>
<section>
Daten anzeigen:
<pre><code class="sql">SELECT * FROM books;
+--------+----------------------------+----------+----------+
| BookID | Title | SeriesID | AuthorID |
+--------+----------------------------+----------+----------+
| 1 | The Fellowship of the Ring | 1 | 1 |
| 2 | The Two Towers | 1 | 1 |
| 3 | The Return of the King | 1 | 1 |
| 4 | The Sum of All Men | 2 | 2 |
| 5 | Brotherhood of the Wolf | 2 | 2 |
| 6 | Wizardborn | 2 | 2 |
| 7 | The Hobbbit | 0 | 1 |
+--------+----------------------------+----------+----------+
7 rows in set (0.00 sec)</code></pre></section>
<section>Daten einfügen:
<pre><code class="sql">INSERT INTO books (Title, SeriesID, AuthorID)
VALUES ("Lair of Bones", 2, 2);
Query OK, 1 row affected (0.00 sec)</code></pre>
<pre><code>SELECT * FROM books;</code></pre></section>
<section>
Daten modifizieren:
<pre><code class="sql">UPDATE books
SET Title = "The Hobbit"
WHERE BookID = 7;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0</code></pre>
</section>
<!--
<section>

0
beispiele/4/remove-spaces.sh Executable file → Normal file
View File

0
beispiele/5/01-vars.sh Executable file → Normal file
View File

0
beispiele/5/02-comments.sh Executable file → Normal file
View File

0
beispiele/5/03-quoting.sh Executable file → Normal file
View File

0
beispiele/5/04-function-exitcode.sh Executable file → Normal file
View File

0
beispiele/5/04-function.sh Executable file → Normal file
View File

0
beispiele/5/05-recursive-func.sh Executable file → Normal file
View File

0
beispiele/5/07-select-menu.sh Executable file → Normal file
View File

0
beispiele/5/08-while-menu.sh Executable file → Normal file
View File

0
beispiele/5/09-backup.sh Executable file → Normal file
View File

0
beispiele/5/10-whiptail.sh Executable file → Normal file
View File

0
beispiele/5/aufgabe1.sh Executable file → Normal file
View File

0
beispiele/5/aufgabe2.sh Executable file → Normal file
View File

0
deploy.sh Executable file → Normal file
View File

View File

@ -0,0 +1,245 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.0"
width="697.28003"
height="594.84998"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.46+pre4"
sodipodi:docname="Aufspaltung_einer_Tabelle_in_zwei_(Beispiel).svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape">
<metadata
id="metadata44">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
inkscape:window-height="1031"
inkscape:window-width="1680"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
guidetolerance="10.0"
gridtolerance="10.0"
objecttolerance="10.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base"
showgrid="false"
inkscape:zoom="1.0983722"
inkscape:cx="423.29925"
inkscape:cy="283.36138"
inkscape:window-x="-4"
inkscape:window-y="-4"
inkscape:current-layer="layer1" />
<defs
id="defs4">
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 297.42499 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="697.28003 : 297.42499 : 1"
inkscape:persp3d-origin="348.64001 : 198.28333 : 1"
id="perspective46" />
</defs>
<g
transform="translate(-42.225311,-45.994526)"
id="layer1">
<path
d="M 411.77664,263.08661 L 411.77664,401.96021 C 411.92971,450.95065 383.47918,455.0221 353.9326,457.37233"
id="path3191"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:5.0999999;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
d="M 358.38546,444.01519 L 312.67118,459.01519 L 358.22818,471.22215 C 351.08082,463.01284 349.61103,454.12561 358.38546,444.01519 z"
id="path3195"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
d="M 464.45434,470.83296 L 510.16862,455.83296 L 464.61162,443.626 C 471.75898,451.83531 473.22877,460.72254 464.45434,470.83296 z"
id="path3199"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
d="M 411.71961,263.08661 L 411.71961,401.96021 C 411.56653,450.95065 440.01707,455.0221 469.56365,457.37233"
id="path3201"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:5.0999999;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
width="324.28574"
height="198.2966"
x="249.25639"
y="52.494526"
id="rect3203"
style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:1;stroke-dasharray:none;stroke-opacity:1" />
<path
d="M 249.8589,92.151272 L 573.64342,92.151272"
id="path3207"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
d="M 249.55546,129.13738 L 573.33998,129.13738"
id="path3209"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
d="M 249.40374,170.05901 L 573.18826,170.05901"
id="path3213"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
d="M 249.25639,210.99552 L 573.04091,210.99552"
id="path3217"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<rect
width="324.28574"
height="39.285713"
x="249.25639"
y="52.865387"
id="rect3219"
style="opacity:1;fill:#d0d0d0;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:1;stroke-dasharray:none;stroke-opacity:1" />
<text
x="259.7691"
y="83.059898"
id="text3221"
xml:space="preserve"
style="font-size:9px;font-style:normal;font-weight:normal;line-height:125%;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
sodipodi:linespacing="125%"><tspan
x="259.7691"
y="83.059898"
id="tspan3225"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Verdana;-inkscape-font-specification:Verdana">TBL_AdressenAlles</tspan><tspan
x="259.7691"
y="123.0599"
id="tspan3229"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Verdana;-inkscape-font-specification:Verdana">Firma</tspan><tspan
x="259.7691"
y="163.05991"
id="tspan3231"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Verdana;-inkscape-font-specification:Verdana">Strasse</tspan><tspan
x="259.7691"
y="203.05991"
id="tspan3233"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Verdana;-inkscape-font-specification:Verdana">PLZ</tspan><tspan
x="259.7691"
y="243.05991"
id="tspan3235"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Verdana;-inkscape-font-specification:Verdana">Ort</tspan></text>
<rect
width="199.32478"
height="119.24673"
x="525.61884"
y="443.93454"
id="rect3237"
style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:1;stroke-dasharray:none;stroke-opacity:1" />
<path
d="M 525.9892,483.5913 L 725.00591,483.5913"
id="path3239"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
d="M 525.80268,520.57741 L 724.8194,520.57741"
id="path3241"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<rect
width="199.32478"
height="39.285713"
x="525.61884"
y="444.30539"
id="rect3247"
style="opacity:1;fill:#d0d0d0;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:1;stroke-dasharray:none;stroke-opacity:1" />
<text
x="530.13153"
y="474.49991"
id="text3249"
xml:space="preserve"
style="font-size:9px;font-style:normal;font-weight:normal;line-height:125%;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
sodipodi:linespacing="125%"><tspan
x="530.13153"
y="474.49991"
id="tspan3251"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Verdana;-inkscape-font-specification:Verdana">TBL_PLZOrt</tspan><tspan
x="530.13153"
y="514.49988"
id="tspan3257"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Verdana;-inkscape-font-specification:Verdana Bold">PLZ</tspan><tspan
x="530.13153"
y="554.49994"
id="tspan3266"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Verdana;-inkscape-font-specification:Verdana">Ort</tspan></text>
<rect
width="230.87581"
height="200.35985"
x="60.725311"
y="434.9447"
id="rect3268"
style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:1;stroke-dasharray:none;stroke-opacity:1" />
<path
d="M 61.154277,474.60145 L 291.67325,474.60145"
id="path3270"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
d="M 60.938237,511.58756 L 291.45721,511.58756"
id="path3272"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
d="M 60.830227,552.50919 L 291.3492,552.50919"
id="path3274"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<rect
width="230.87581"
height="39.285713"
x="60.725311"
y="435.31555"
id="rect3278"
style="opacity:1;fill:#d0d0d0;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999994;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:1;stroke-dasharray:none;stroke-opacity:1" />
<text
x="63.238007"
y="465.51007"
id="text3280"
xml:space="preserve"
style="font-size:9px;font-style:normal;font-weight:normal;line-height:125%;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
sodipodi:linespacing="125%"><tspan
x="63.238007"
y="465.51007"
id="tspan3282"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Verdana;-inkscape-font-specification:Verdana">TBL_Adressen</tspan><tspan
x="63.238007"
y="505.51007"
id="tspan3294"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Verdana;-inkscape-font-specification:Verdana Bold">AdressID</tspan><tspan
x="63.238007"
y="545.51007"
id="tspan3284"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Verdana;-inkscape-font-specification:Verdana">Firma</tspan><tspan
x="63.238007"
y="585.51007"
id="tspan3286"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Verdana;-inkscape-font-specification:Verdana">Strasse</tspan><tspan
x="63.238007"
y="625.51007"
id="tspan3290"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Verdana;-inkscape-font-specification:Verdana">PLZ</tspan></text>
<path
d="M 60.725311,593.30642 L 291.24428,593.30642"
id="path3296"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<text
xml:space="preserve"
style="font-size:9px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="908.61731"
y="273.4653"
id="text2419"
transform="translate(42.225311,45.994526)"><tspan
sodipodi:role="line"
id="tspan2421"
x="908.61731"
y="273.4653" /></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

0
lib/font/league-gothic/league-gothic.eot Executable file → Normal file
View File

0
lib/font/league-gothic/league-gothic.ttf Executable file → Normal file
View File

0
lib/font/league-gothic/league-gothic.woff Executable file → Normal file
View File

0
lib/font/source-sans-pro/source-sans-pro-italic.eot Executable file → Normal file
View File

0
lib/font/source-sans-pro/source-sans-pro-italic.ttf Executable file → Normal file
View File

0
lib/font/source-sans-pro/source-sans-pro-italic.woff Executable file → Normal file
View File

0
lib/font/source-sans-pro/source-sans-pro-regular.eot Executable file → Normal file
View File

0
lib/font/source-sans-pro/source-sans-pro-regular.ttf Executable file → Normal file
View File

0
lib/font/source-sans-pro/source-sans-pro-regular.woff Executable file → Normal file
View File

0
lib/font/source-sans-pro/source-sans-pro-semibold.eot Executable file → Normal file
View File

0
lib/font/source-sans-pro/source-sans-pro-semibold.ttf Executable file → Normal file
View File

0
lib/font/source-sans-pro/source-sans-pro-semibold.woff Executable file → Normal file
View File

View File

View File

View File

0
plugin/markdown/markdown.js Executable file → Normal file
View File

0
plugin/math/math.js Executable file → Normal file
View File