.

Hinzufügen oder Löschen von MySQL-Datenbank mithilfe Terminal - VPS-Admin # 4

English Englisch (ändern)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

Pflegen Unmanaged VPS - Teil 4: Erstellen oder Bin MySQL DBs mit dem Terminal

MySQL-Datenbank-Logo

Dieses how-to guide Karten zwei ziemlich einfach, aber praktisch MySQL-Operationen, die Erstellung und Binning eine Datenbank, mit der Terminal-Schnittstelle.

Natürlich können Sie diese mit, sagen wir, phpMyAdmin zu tun, aber es ist so schneller auf diese Funktionen über die CLI ausführen.

Ersatzspieler "db_username", "db_password", "db_password" und "db_name" mit denen Sie Ihre eigenen.

Einrichten eines Unmanaged VPS (4 Newbies) .. Das VPS Bibel

In 20 Kopieren / Einfügen Schritt .. From Zero To Hero, leeres Feld cute-wie Linux-Server.

Scroll down für die gesamte Serie Index.

Also, hey, Gem. Schuppen & viva virtual! Hope it helps. The_guv

Hinzufügen einer MySQL-Datenbank

Von der Command Line Interface, müssen wir uns zuerst auf die MySQL Shell-Zugriff: --

mysql -u root -p

And before actually creating the db, you need to set up the database user and password.

grant all privileges on *.* to db_username@localhost identified by "db_password";

Now create the db:-

create database db_name;

And exit the MySQL shell:-

quit

Delete a MySQL Database

Easy tiger! From the command line interface, we need first to access mysql:-

mysql -u root -p

And delete the sucker:-

delete database db_name;

And here's an alternative way to exit the MySQL shell:-

\q

SETUP an Unmanaged VPS (4 Newbies) .. The V-P-S Bible

Serve multi sites & blogs on a budget .. at the fastest possible speed .. with the least downtime .. in the most secure environment .. and future-proofed for easy admin.

That's what the VPS Bible is about, stepped out in simple copy & paste guides.

From high traffic WordPress blogs to startup web hosts, here's what you need.

Set it up?   Click here for the 21 part follow-up .. V-P-S Admin

  1. Intro: Set Up an Unmanaged VPS (4 Newbies) .. The V-P-S Bible
  1. VPS (Virtual Private Server) vs Shared vs Dedicated
  2. Set Up a VPS Linux Distribution   *
  3. Set Up the Command Line Interface (CLI) using PuTTY   *
  4. Create a Linux User & Set Permissions   *
  5. Encrypt Data with OpenSSH & Auto-Login with PuTTY   *
  6. Harden the Secure Shell (SSH) & Create a Firewall   *
  7. Edit bashrc for User-Friendly Linux, plus System Updates   *
  8. PHP5, MySQL, Xcache, Subversion (for Platforms like WordPress)   *
  9. Add a Domain Zone to Your VPS   *
  10. Prepare Linux Server for Email with Postfix   *
  11. Nginx (better than Apache) Web Server   *
  12. Setup FileZilla for Secure FTP (SFTP)   *
  13. Serve Multiple Sites & Blogs with Virtual Hosts   *
  14. Set up WordPress on Nginx with Pretty URLs & WP Super Cache   *
  15. WordPress Setup & Updates from the Command Line   *
  16. mysql -u root -p

    And before actually creating the db, you need to set up the database user and password.

    grant all privileges on *.* to db_username@localhost identified by "db_password";

    Now create the db:-

    create database db_name;

    And exit the MySQL shell:-

    quit

    Delete a MySQL Database

    Easy tiger! From the command line interface, we need first to access mysql:-

    mysql -u root -p

    And delete the sucker:-

    delete database db_name;

    And here's an alternative way to exit the MySQL shell:-

    \q

    SETUP an Unmanaged VPS (4 Newbies) .. The V-P-S Bible

    Serve multi sites & blogs on a budget .. at the fastest possible speed .. with the least downtime .. in the most secure environment .. and future-proofed for easy admin.

    That's what the VPS Bible is about, stepped out in simple copy & paste guides.

    From high traffic WordPress blogs to startup web hosts, here's what you need.

    Set it up?   Click here for the 21 part follow-up .. V-P-S Admin

    1. * Includes video tutorial.

    2. Not linked = not published. Won't be long. Fix a feed for updates.


    If you liked that ...
    ... maybe you'll like these?

.