{"id":1004,"date":"2024-03-08T08:00:00","date_gmt":"2024-03-08T07:00:00","guid":{"rendered":"https:\/\/www.fuhselab.de\/?p=1004"},"modified":"2024-07-24T06:17:54","modified_gmt":"2024-07-24T04:17:54","slug":"mysql-und-phpmyadmin","status":"publish","type":"post","link":"https:\/\/www.fuhselab.de\/index.php\/2024\/03\/08\/mysql-und-phpmyadmin\/","title":{"rendered":"MySQL und phpMyAdmin"},"content":{"rendered":"\n<p>Nochmal Webserverumgebung. In diesem Artikel wird nur noch kurz und knapp die Installation von MySQL und phpMyAdmin vorgestellt\u2026<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>F\u00fcr viele PHP Projekte macht es irgendwann Sinn eine Datenbank einzurichten und genau dann sollte man sich mit MySQL befassen\u2026 MySQL ist die Datenbank und mit phpMyAdmin gibt es eine grafische Oberfl\u00e4che f\u00fcr den MySQL-Server.<\/p>\n\n\n\n<p><strong>MySQL Installation<\/strong><\/p>\n\n\n\n<p>Die Installation von MySQL erfolt durch Terminalbefehl:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>sudo apt install mysql-server<\/li>\n\n\n\n<li>sudo apt install php-mysql<\/li>\n<\/ul>\n\n\n\n<p><strong>phpMyAdmin Installation<\/strong><\/p>\n\n\n\n<p>Die grafische Oberfl\u00e4che phpMyAdmin wird mit folgendem Terminalbefehl installiert:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>sudo apt install phpmyadmin<\/li>\n<\/ul>\n\n\n\n<p>Anschlie\u00dfend werden folgende Befehle im Terminal ausgef\u00fchrt:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>sudo ln -s \/etc\/phpmyadmin\/apache.conf \/etc\/apache2\/conf-available\/phpmyadmin.conf<\/li>\n\n\n\n<li>sudo a2enconf phpmyadmin<\/li>\n\n\n\n<li>sudo service apache2 restart<\/li>\n<\/ul>\n\n\n\n<p>Im Webbrowser wird nun die Adresse \u201elocalhost\/phpmyadmin\u201c aufgerufen und man landet in der grafischen Benutzeroberfl\u00e4che um MySQL zu administrieren\u2026 Als Login Benutzername gilt standardm\u00e4\u00dfig\u201croot\u201c mit dem entsprechenden MySQL Passwort.<\/p>\n\n\n\n<p>Das MySQL Passwort wird bei der Installation festgelegt und das sollte man sich schon gemerkt haben. Sicherheitsaspekte werden hier vorerst ignoriert. Klar sollte aber jedem sein, dass man nicht dauerhaft als root unterwegs ist und schon gar nicht in einer Serverumgebung. Mit den hier beschriebenen Befehlen sollte es aber m\u00f6glich sein die MySQL Datenbank mit grafischer Oberfl\u00e4che zu installieren und unter localhost auch aufzurufen\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nochmal Webserverumgebung. In diesem Artikel wird nur noch kurz und knapp die Installation von MySQL und phpMyAdmin vorgestellt\u2026<\/p>\n","protected":false},"author":1,"featured_media":670,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[21],"class_list":["post-1004","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux-gruppe-peine"],"_links":{"self":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/1004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/comments?post=1004"}],"version-history":[{"count":2,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/1004\/revisions"}],"predecessor-version":[{"id":1694,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/1004\/revisions\/1694"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media\/670"}],"wp:attachment":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media?parent=1004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/categories?post=1004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/tags?post=1004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}