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-hosts | Flush Host Cache |
flush-privileges | Reload 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) |
reload | Reload Grant Tables |
refresh | Flush Tables, Close/Open Log Files |
shutdown | หยุด Server |
version | แสดง Version จาก Server |