.

Προσθήκη ή Διαγραφή βάσεων δεδομένων MySQL χρησιμοποιώντας Terminal - VPS ADMIN # 4

English Αγγλικά (αλλαγή)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

Διατηρείται Unmanaged VPS - Μέρος 4: Δημιουργία ή Bin MySQL DBS χρησιμοποιώντας το Terminal

logo βάση δεδομένων mysql

Αυτό πώς-με οδηγό χάρτες επισημάνω δύο πολύ βασικά αλλά εύχρηστο MySQL επιχειρήσεις, δημιουργία και Binning μιας βάσης δεδομένων, χρησιμοποιώντας τη διασύνδεση των τερματικών.

Σίγουρα, μπορείτε να κάνετε με αυτά, ας πούμε, phpMyAdmin, αλλά είναι τρόπος γρηγορότερα για να εκτελεί τα καθήκοντα που χρησιμοποιούν το CLI.

Αναπληρωτής "db_username", "db_password", "db_password" και "db_name" με εκείνες της δικής σας.

Εγκατάσταση Unmanaged VPS (4 Newbies) .. Η VPS Bible

Σε 20 copy / paste βήματα .. από το μηδέν σε ήρωα, κενό το πλαίσιο για την χαριτωμένη-ως server Linux.

Μετακινηθείτε προς τα κάτω για το πλήρες ευρετήριο σειρά.

Έτσι, hey, υπόστεγο κοινές & εικονικής ζήτω! Hope it helps. The_guv

Προσθέστε δεδομένων MySQL

Από το περιβάλλον γραμμής ε Από το περιβάλλον γραμμής εντολών, θα πρέπει πρώτα να έχει πρόσβαση στον MySQL κέλυφος: --

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?

.