.

Legg til eller Slett MySQL database ved hjelp av Terminal - VPS ADMIN # 4

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

Opprettholde unmanaged VPS - Del 4: Opprette eller Bin MySQL DBS bruker Terminal

mysql database logo

Dette how-to guide kartene ut to ganske enkel, men praktisk MySQL operasjoner, lage og binning en database, bruker terminalen grensesnittet.

Jo, det kan du gjøre med dem, sier, phpMyAdmin, men det er måten raskere å utføre slike funksjoner ved hjelp av CLI.

Substitute "DB_Username", "DB_Password", "DB_Password" og "db_name" med de av dine egne.

Sett opp et unmanaged VPS (4 Newbies) .. VPS Bibelen

I 20 kopier / lim trinn .. fra null til helten, tomme boksen til søt-og Linux-server.

Bla ned for full serie indeksen.

Så hei, shed delte & viva virtuelt! Håper det hjelper. The_guv

Legg til en MySQL database

Fra kommandolinjegrensesnittet, trenger vi først å få tilgang til mysql skall: --

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?

.