.

Dodawanie lub usuwanie bazy danych MySQL za pomocą terminalu - VPS ADMIN # 4

English Angielski (zmień)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

Utrzymanie niezarządzalny VPS - część 4: Tworzenie lub Bin MySQL DBs pomocą terminali

Logo bazy mysql

To Porady mapy dwa dość prosty, ale przydatny MySQL działania, tworzenia i rozdzielników bazy danych za pomocą interfejsu terminala.

Oczywiście, można zrobić z tymi, powiedzmy, phpMyAdmin, ale jest to sposób szybszy do wykonywania takich funkcji za pomocą interfejsu CLI.

Zastępstwo "DB_Username", "DB_PASSWORD", "DB_PASSWORD" i "nazwa_bazy" z tymi własnych.

Set Up niezarządzalny VPS (4 początkujących) .. VPS Biblii

W 20 kopiuj / wklej kroki .. od zera do bohatera, puste pole na cute-jako serwer Linux.

Przewiń w dół do pełnych indeksów serii.

Tak, hey, szopy wymiany i viva wirtualny! Hope it helps. The_guv

Dodaj baza danych MySQL

Z linii poleceń, trzeba najpierw uzyskać dostęp do mysql shell: --

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 Z linii poleceń, trzeba najpierw uzyskać dostęp do mysql shell: --
    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?

.