Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 Installation von Web-Server in FreeBSD 6.0 mit Apache 2.2, MySQL 5.0 und PHP 5 - Teil 3

Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server Installation von Apache 2.2, MySQL 5 und PHP 5 in FreeBSD 6.0 für eine zuverlässige Web-Server

Part 3 - Installing MySQL Server 5 with FreeBSD Ports Collection Teil 3 - Installation von MySQL Server 5 mit FreeBSD Ports Collection

  1. Login to the FreeBSD system as root, or su - root to get to super user environment. Login auf der FreeBSD-System als root, oder su - root zu erreichen Super-User-Umgebung.
  2. Enter the following commands at FreeBSD command line interface (CLI) (Wait till each command to finish processing before running the next command): Geben Sie die folgenden Befehle auf FreeBSD Command Line Interface (CLI) (Warten Sie, bis jeder Befehl zu beenden Verarbeitung, bevor Sie den nächsten Befehl):

    cd /usr/ports/databases/mysql50-server cd / usr/ports/databases/mysql50-server
    make install clean make install clean
    mysql_install_db --user=mysql mysql_install_db - user = mysql
    chown -R mysql /var/db/mysql/ chown-R mysql / var / db / mysql /
    chgrp -R mysql /var/db/mysql/ chgrp-R mysql / var / db / mysql /
    /usr/local/bin/mysqld_safe -user=mysql & / usr / local / bin / mysqld_safe-user = mysql &

    Note: If you encounter Command not found error, use command rehash to update OS path environment variables. Hinweis: Wenn Sie auf Befehl nicht gefunden "-Fehler, verwenden Sie Befehl rehash zu aktualisieren OS Pfad Umgebungsvariablen.

  3. The port installation will put a script file mysql-server.sh in /usr/local/etc/rc.d which will has capability to start MySQL server. Der Hafen Installation wird ein Skript-Datei MySQL-server.sh in / usr / local / etc / rc.d hat, die Fähigkeit zur MySQL-Server starten. To enable MySQL server to start automatically after every FreeBSD server reboot, enter the following command in CLI: So aktivieren Sie MySQL-Server zu starten automatisch nach jedem FreeBSD-Server neu starten, geben Sie den folgenden Befehl im CLI:

    echo ‘mysql_enable=”YES”‘ >> /etc/ rc.conf echo 'mysql_enable = "YES"'>> / etc / rc.conf

  4. By default, MySQL default super user account - root - has no password (blank password). Standardmäßig, MySQL standardmäßig Super-User-Konto - Root - hat kein Passwort (leeres Passwort). So it’s important to assign the administrator account password. Es ist also wichtig, um das Administrator-Konto-Passwort. To change the password to root user, enter the following command: So ändern Sie das Passwort ein, um root-Benutzer, geben Sie den folgenden Befehl ein:

    mysqladmin -u root password newpassword mysqladmin-u root-Passwort NewPassword

    Replace newpassword with your own desired password. Ersetzen Sie NewPassword mit Ihren eigenen gewünschte Passwort ein.

  5. Optionally, copy either my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf or my-innodb-heavy-4G.cnf (depending on the usage and utilization of MySQL server) as my.cnf to /var/db/mysql which will enable you to tweak and change the configuration of server-specific MySQL server options by editing the file. Optional, kopieren Sie entweder my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf oder my-InnoDB-schweren-4G.cnf (abhängig von der Nutzung und Auslastung der MySQL-Server) wie meine . cnf nach / var / db / mysql, die Ihnen Um die Leistung zu verbessern und ändern Sie die Konfiguration von Server-spezifische MySQL-Server-Optionen, indem Sie die Datei.
  6. MySQL 5.0 installation done. MySQL 5.0 Installation getan.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. WICHTIG: Dies ist eine Maschine übersetzt, die Seite wird "as is" ohne Garantie. Machine translation may be difficult to understand. Maschinelle Übersetzung Mai nur schwer zu verstehen. Please refer to Bitte wenden Sie sich an original English article Original Englisch Artikel whenever possible. wann immer dies möglich ist.

Share and contribute or get technical support and help at Aktie und einen Beitrag oder erhalten technische Unterstützung und Hilfe bei My Digital Life Forums My Digital Life Foren .



22 Responses to “Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3” 22 Responses to "Installation von Web-Server in FreeBSD 6.0 mit Apache 2.2, MySQL 5.0 und PHP 5 - Teil 3"

  1. Drache
    May 21st, 2006 13:12 21. Mai 2006 13:12
    1

    mysql_enable = mysql_enable =

  2. Administrator
    May 21st, 2006 14:07 21. Mai 2006 14:07
    2

    Thanks for pointing out, will update. Vielen Dank für Ihren Hinweis darauf, aktualisiert.

  3. jan Januar
    June 6th, 2006 11:08 6. Juni 2006 11:08
    3

    i’m stucked with the mysql part of your howto, after issuing # mysqladmin -u root password newpassword, i issued # mysql -u root -p newpassword, i always get the access denied error. Ich bin stucked mit dem MySQL-Teil Ihrer howto, nach Erteilung # mysqladmin-u root-Passwort NewPassword, i ausgestellt # mysql-u root-p NewPassword, Ich bekomme immer die Fehlermeldung Zugriff verweigert. what did i miss? Was habe ich verpasst?

    thanks Danke

  4. Administrator
    June 6th, 2006 11:49 6. Juni 2006 11:49
    4

    jan, may be you have set the password for root. Januar, Mai werden Sie haben das Passwort für root. Try to access mysql with -u userid and -p password option. Versuchen Sie, den Zugriff auf MySQL mit-u Benutzer-ID und Passwort-p Option. Or you can follow instruction Oder Sie können Anweisung folgen here hier on how to change and reset your root password. auf, wie Sie und setzen Sie Ihr Root-Passwort.

  5. jan Januar
    June 6th, 2006 14:32 6. Juni 2006 14:32
    5

    i’ve tried all the options mentioned but none of them worked, so i did a fresh install again, before creating a password for mysql root user, i logged in as root and it worked fine, i was able to get a mysql shell but when i issue the command mysqladmin to create a password for root, i got an error, i tried to log in as root and wtf i’m back with the same problem. Ich habe versucht alle Möglichkeiten erwähnt, aber keiner von ihnen gearbeitet, so ich habe eine frische Installation erneut, bevor Sie ein Passwort für MySQL-Benutzer root, i angemeldet als root und es funktionierte gut, habe ich es geschafft, eine MySQL-Shell, aber wenn ich den Befehl mysqladmin, um ein Passwort für root, Ich habe einen Fehler handelt, habe ich versucht, sich als "root" und wtf bin ich wieder mit dem gleichen Problem. do u think i would be better off if i install phpmyadmin and change the root password from there? do u glaube, ich wäre besser dran, wenn ich phpMyAdmin installieren und das root-Passwort ändern von dort aus?

  6. Administrator
    June 6th, 2006 16:56 6. Juni 2006 16:56
    6

    Did you flush privileges after changing the password? Haben Sie flush-Privilegien nach dem Ändern des Passworts? The problem may be due to hashing of MySQL password. Das Problem kann folgende Gründe haben: Hashing von MySQL-Passwort ein. May be you can try the following commands after resetting your root password if it cannot works: Mai werden, können Sie versuchen, die folgenden Befehle nach dem Zurücksetzen Ihr Root-Passwort, wenn es nicht funktioniert:

    mysql -u root mysql mysql-u root mysql
    > UPDATE user SET password=password(’secret’) WHERE user=’root’; > UPDATE user SET password = PASSWORD ( 'geheim') WHERE user = 'root';
    > flush privileges; > Flush privileges;

    You may try phpmyadmin too, but I remembered I used to have exactly this same problem while phpMyAdmin didn’t help much. Sie können versuchen phpmyadmin zu, aber ich erinnerte ich verwendet, um genau dieses gleiche Problem, während phpMyAdmin nicht viel helfen. Do let me know how you solve it. Bitte lassen Sie mich wissen, wie Sie es lösen.

  7. jan Januar
    June 7th, 2006 13:14 7. Juni 2006 13:14
    7

    you’re right changing it via phpmyadmin gave me the same result, so what i did was change some settings in the config.inc.php of phpmyadmin, change the auth_type = cookie and blowfish = mypassphrase and everything were fine. Sie haben Recht es zu verändern via phpMyAdmin gab mir das gleiche Ergebnis, so dass, was ich tat, war einige Einstellungen in der config.inc.php von phpMyAdmin, ändern Sie die auth_type = Cookie und Blowfish = mypassphrase und alles war in Ordnung.

  8. rich reich
    August 18th, 2006 00:57 18. August 2006 00:57
    8

    The problem is that mysql (version 5.x) is not starting with mysql_enable=”YES” in /etc/rc.conf. Das Problem ist, dass MySQL (Version 5.x) ist nicht beginnend mit mysql_enable = "YES" in der Datei / etc / rc.conf.
    Im using FreeBSD v6.1.x. Im mit FreeBSD v6.1.x. I do not have the space problem between enable and the “=”. Ich habe kein Problem, den Raum zwischen ermöglichen und das "=". The message I receive on bootup is “YES: notfound”. Die Botschaft, die ich erhalten über das Starten "JA: notfound".

    Any suggestions welcome. Alle Vorschläge willkommen.

  9. Dom
    August 19th, 2006 10:45 19. August 2006 10:45
    9

    Ive followed this guide but when i run “mysql-server.sh start” it returns starting mysql and does nothing else. Ive folgte dieser Anleitung aber wenn ich starte "mysql-server.sh Start" zurück Starten von MySQL und nichts anderes. i ran “mysql-server.sh status” and it returned “mysql is not running” I ran "mysql-server.sh Status" und es zurückgegeben "mysql nicht läuft"

    mysql_enable=”YES” is in rc.conf but is not starting. mysql_enable = "JA" ist in rc.conf, ist aber nicht an den Start gegangen. any help? jede mögliche Hilfe?

  10. Administrator
    August 19th, 2006 11:25 19. August 2006 11:25
    10

    Check if you can run mysqladmin or other mysql tools. Überprüfen Sie, ob Sie können mysqladmin oder anderen MySQL-Werkzeugen. Also make sure your “YES” in rc.conf is using proper “, as the ” in the article has been changed. Stellen Sie sicher, dass auch Ihre "JA" in rc.conf ist mit richtigen ", als" in dem Artikel geändert wurde.

  11. Dom
    August 19th, 2006 15:10 19. August 2006 15:10
    11

    rc.conf contains rc.conf enthält
    mysql_enable=”YES” mysql_enable = "YES"
    apache22_enable=”YES” apache22_enable = "YES"

    here is results from mysqladmin -user admin hier ist Ergebnisse aus mysqladmin-Benutzer admin

    mysqladmin: connect to server at ‘localhost’ failed mysqladmin: connect to server at 'localhost' ist fehlgeschlagen
    error: ‘Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)’ Fehler: "Kann keine Verbindung zum lokalen MySQL Server über Steckdose" / tmp / mysql.sock '(2) "
    Check that mysqld is running and that the socket: ‘/tmp/mysql.sock’ exists! Prüfen Sie, ob mysqld läuft, und dass die Steckdose: "/ tmp / mysql.sock 'existiert!

  12. Jani Syed Jani Syed
    September 12th, 2006 21:43 12. September 2006 21:43
    12

    just delete nur löschen

  13. Younah
    January 27th, 2007 02:06 27. Januar 2007 02:06
    13

    Hi,
    I have installed freebsd 5.5 and now with your guideline instructions I have install mysql, php5 and apache2.2.But i do not know how to configure a website so I can test that if it works.Please help me with a link who can provide step by step instuctions or refer me some good basic book. Ich habe FreeBSD 5.5 und jetzt mit Ihrem Leitlinie Anweisungen Ich habe installieren MySQL, PHP5 und apache2.2.But Ich weiß nicht, wie die Konfiguration einer Website, so kann ich testen, ob, wenn sie works.Please mir helfen mit einem Link, der kann Schritt für Schritt Anweisungen oder beziehen sich mir einige gute grundlegende Buch.
    Thanks. Danke.

  14. berry__
    March 5th, 2007 21:24 5. März 2007 21:24
    14

    If you’re getting “mysql_install_db: Command not found.” after punching in “mysql_install_db”, you should try to cd to /usr/local/bin/ and then run “mysql_install_db”. Wenn Sie sich "mysql_install_db: Befehl nicht gefunden." Nach Stanzautomaten in "mysql_install_db", sollten Sie versuchen, cd nach / usr / local / bin / und führen Sie dann "mysql_install_db".

    Cheers. Prost.

  15. berry__
    March 5th, 2007 21:25 5. März 2007 21:25
    15

    Oh; and thanks for the great article! Oh, und Dank für die große Artikel!

  16. bramz4ever
    November 12th, 2007 13:32 12. November 2007 13:32
    16

    i ecountered the not found error while installing mysql, what should i do? i ecountered die nicht gefunden "-Fehler während der Installation von MySQL, was soll ich tun? and what is the command rehash actually is? und was ist der Befehl rehash tatsächlich ist? thank you so much. Vielen Dank, dass Sie so viel.

  17. admin
    November 12th, 2007 16:33 12. November 2007 16:33
    17

    rehash is a command to ‘refresh’ the system. rehash ist ein Kommando zum "Aktualisieren" das System. Did it work after rehash. Hat sie funktionieren nach der rehash.

  18. nicky6
    January 11th, 2008 10:32 11. Januar 2008 10:32
    18

    great tutorial! große Tutorial! thanks! Danke!

  19. Matt
    January 23rd, 2008 00:43 23. Januar 2008 00:43
    19

    Where can I find these files on a MySql 5.1 install on FreeBSD 6.2? Wo finde ich diese Dateien auf einem MySQL 5.1 Installation auf FreeBSD 6.2?

    my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf or my-innodb-heavy-4G.cnf my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf oder my-InnoDB-schweren-4G.cnf

  20. Tyler
    March 23rd, 2008 02:39 23. März 2008 02:39
    20

    the my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf or my-innodb-heavy-4G.cnf are found in /usr/local/share/mysql/ die my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf oder my-InnoDB-schweren-4G.cnf finden sich in / usr / local / share / mysql /

  21. DrTebi
    August 2nd, 2008 07:21 2. August 2008 07:21
    21

    On FreeBSD 7.0 you don’t need to manually install the databases and set permissions, that is done in the startup script the first time it is run. Am FreeBSD 7,0 Sie müssen nicht manuell installieren, die Datenbanken und festlegen, dass dies in der Startup-Skript das erste Mal, es wird.

    Just make sure you have Just Stellen Sie sicher, dass
    mysql_enable=”YES” mysql_enable = "YES"
    in /etc/rc.conf before you run mysql-server. in der Datei / etc / rc.conf, bevor Sie MySQL-Server.

    You could hence rewrite the install instructions to this: Sie könnten damit die rewrite Installieren dieser:

    cd /usr/ports/databases/mysql50-server cd / usr/ports/databases/mysql50-server
    make install clean make install clean
    echo ‘mysql_enable=”YES”‘ >> /etc/rc.conf echo 'mysql_enable = "YES"'>> / etc / rc.conf
    /usr/local/etc/rc.d/mysql-server start / usr / local / etc / rc.d / MySQL-Server starten

  22. Leighland
    August 21st, 2008 13:06 21. August 2008 13:06
    22

    Hey there. Hey there. I was having trouble with the “mysql_install_db: command not found” when installing FreeBSD 7. Ich hatte Probleme mit der "mysql_install_db: Befehl nicht gefunden" bei der Installation von FreeBSD 7. I ran the rehash command and then entered mysql_install_db again and it worked fine. Ich lief die rehash Befehl eingegeben und dann mysql_install_db erneut und es funktionierte gut.

Leave a Reply Lassen Sie eine Antwort

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Sie können diese Tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Abonnieren ohne zu kommentieren


Custom Search

New Articles Neue Artikel

Incoming Search Terms for the Article Eingehende Suche Nutzungsbedingungen für die Artikel

freebsd mysql FreeBSD mysql - -- mysql freebsd mysql FreeBSD - -- freebsd phpmyadmin FreeBSD phpmyadmin - -- freebsd install mysql FreeBSD installieren mysql - -- install mysql freebsd Installation von MySQL FreeBSD - -- freebsd mysql install FreeBSD mysql installieren - -- mysql freebsd install mysql FreeBSD installieren - -- freebsd mysql 5 FreeBSD MySQL 5 - -- freebsd mysql config FreeBSD mysql config - -- freebsd apache mysql php howto FreeBSD Apache MySQL PHP howto - -- freebsd rc.conf mysql FreeBSD rc.conf mysql - -- install mysql on freebsd Installation von MySQL unter FreeBSD - -- mysql_enable mysql_enable - -- freebsd restart mysql FreeBSD MySQL neu starten - -- MySQL in freeBSD MySQL in FreeBSD - -- mysql config freebsd mysql config freebsd - -- freebsd apache howto FreeBSD Apache howto - -- howto freebsd mysql FreeBSD howto mysql - -- rc.conf mysql rc.conf mysql - -- freebsd mysql 5.0 install FreeBSD MySQL 5.0 installieren - -- how to install mysql freebsd Wie installiert man MYSQL FreeBSD - -- mysql server config howto freebsd MySQL-Server config howto FreeBSD - -- mysql 6.0 freebsd mysql 6,0 freebsd - -- mysql 5.0 start on boot freebsd MySQL 5.0 Start beim Booten FreeBSD - -- install apache web server on freebsd Installation von Apache Web-Server auf FreeBSD - -- always get in mysql without password immer in MySQL ohne Passwort - -- apache2 bsd install apache2 bsd installieren - -- apache mysql freebsd Apache MySQL FreeBSD - -- apache 2.2 is not starting Apache 2.2 ist nicht an den Start - -- create a web page in apache server freeBSD Erstellen einer Web-Seite in der Apache-Server FreeBSD - -- freebsd set up mysql FreeBSD eingerichtet mysql - -- freebsd 7.0 installing apache FreeBSD 7,0 Installation von Apache - -- freebsd mysql enable FreeBSD mysql ermöglichen - -- freebsd webserver installation FreeBSD Webserver Installation - -- freebsd starting mysql FreeBSD Starten von MySQL - -- howto php apache freebsd howto php apache freebsd - -- how to install mysql in freebsd Wie installiert man MYSQL in FreeBSD - -- how to install mysql in freebsd 7 Wie installiert man MYSQL in FreeBSD 7 - -- install apache freebsd installieren apache freebsd - -- mysql on freebsd MySQL unter FreeBSD - -- mysql-server freebsd MySQL-Server FreeBSD - -- starting mysql freebsd Starten von MySQL FreeBSD - -- apache2+php in freebsd 7 apache2 + php in FreeBSD 7 - -- apache22 "freebsd 5.5" apache22 "FreeBSD 5.5" - -- apache server start result 137 Apache-Server starten Folge 137 - -- freebsd apache shell environment variables FreeBSD Apache Shell-Umgebungsvariablen - -- freebsd mysql5 FreeBSD mysql5 - -- freebsd apache php howto FreeBSD apache php howto - -- freebsd setting up mysql socket FreeBSD Aufbau mysql-Buchse - -- freebsd phpmyadmin howto FreeBSD phpmyadmin howto - --