.

เพิ่มหรือลบ MySQL Database ใช้ Terminal - VPS ADMIN # 4

English อังกฤษ (การเปลี่ยนแปลง)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

รักษา VPS Unmanaged - ส่วนที่ 4: สร้างหรือถัง MySQL DBS ใช้ Terminal

โลโก้ฐานข้อมูล MySQL

นี้วิธีที่จะแนะนำแผนที่ออกสองดำเนิน MySQL สวยแต่ประโยชน์พื้นฐานการสร้างและ binning ฐานข้อมูลโดยใช้ interface terminal.

ว่าคุณสามารถทำบรรดากับกล่าว phpMyAdmin แต่วิธีที่รวดเร็วในการทำงานเช่นการใช้ CLI.

แทน db_username "", db_password "", db_password "" และ db_name "" กับบรรดาของคุณเอง.

ตั้ง VPS Unmanaged (4 Newbies) .. พระคัมภีร์ VPS

ใน 20 สำเนา / ขั้นตอนวาง .. จากศูนย์ให้พระเอกช่องว่างที่น่ารัก-เป็นเซิร์ฟเวอร์ Linux.

เลื่อนลงสำหรับดัชนีชุดเต็ม.

ดังนั้นเดี๋ยวก่อนโรงสาธารณะและขอให้มีอายุยืนยาวเสมือน! หวังช่วย. The_guv

เพิ่ม MySQL Database

จากอินเตอร์เฟซบรรทัดคำสั่งเราต้องแรกเข้าถึงเปลือก 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?

.