.

AÑADIR O ELIMINAR base de datos MySQL utilizando Terminal - VPS ADMIN # 4

English Inglés (cambiar)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

Mantener VPS administrado - Parte 4: Crear o bin de MySQL DBs usar la terminal

Logotipo de base de datos MySQL

Esta guía de instrucciones mapas a cabo dos operaciones de MySQL bastante básico, pero práctico, la creación y hurgar en la basura una base de datos, utilizando la interfaz del terminal.

Claro, usted puede hacer los que tienen, por ejemplo, phpMyAdmin, pero es la manera más rápida de realizar estas funciones mediante la CLI.

"Suplente db_username", "password", "password" y "db_name" con los de su cuenta.

Configurar una VPS no administrado (4 principiantes) .. La Biblia VPS

En 20 de copiar / pegar pasos .. de cero a héroe, el cuadro en blanco a cute-como servidor de Linux.

Desplácese hacia abajo para el índice de la serie completa.

Así que, hey, cobertizo compartida y viva virtual! Espero que ayuda. The_guv

Añadir una base de datos MySQL

Desde la interfaz de línea de comandos, primero tenemos que acceder a la shell de 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?

.