Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> MySQL

mysqladmin - โปรแกรมบริหารเซิร์ฟเวอร์ MySQL

mysqladmin Client สำหรับ Administrative Operations: ตรวจสอบ Config/Status, สร้าง/ลบ Database, และอื่นๆ

การเรียกใช้

shell> mysqladmin [options] command [command-arg] [command [command-arg]] ...

คำสั่งหลัก

คำสั่งคำอธิบาย
create db_nameสร้าง Database ใหม่
drop db_nameลบ Database และ Tables ทั้งหมด
extended-statusแสดง Status Variables และค่า
flush-hostsFlush Host Cache
flush-privilegesReload Grant Tables (เท่า reload)
kill id,id,...Kill Server Threads (ไม่เว้น Space ใน List)
password new_passwordตั้งรหัสผ่านใหม่สำหรับ Account ที่ใช้เชื่อมต่อ
pingเช็ค Server Available (Return 0=Running, 1=Not)
processlistแสดง Active Threads (คล้าย SHOW PROCESSLIST)
reloadReload Grant Tables
refreshFlush Tables, Close/Open Log Files
shutdownหยุด Server
versionแสดง Version จาก Server