db

Web Programming ๐ŸŒ/Database ๐Ÿ‘ฉ๐Ÿป‍๐ŸŒพ

MySQL Command

User Search at root (๋ฃจํŠธ์—์„œ ์‚ฌ์šฉ์ž ์กฐํšŒ) USE mysql; SELECT host, user FROM user; Give Privileges at root (๋ฃจํŠธ์—์„œ ์‚ฌ์šฉ์ž ๊ถŒํ•œ ๋ถ€์—ฌ) GRANT ALL PRIVILEGES on testdb.* TO ‘testuser’@‘localhost’; Check User (ํ˜„์žฌ ์‚ฌ์šฉ์žํ™•์ธ) SELECT USER(); Check current DB (ํ˜„์žฌ DB ํ™•์ธ) SELECT DATABASE(); Check the data of sepecific table (ํŠน์ • TABLE ๋ฐ์ดํ„ฐ ํ™•์ธ) SELECT * from (name of table); Check column (Column ํ™•์ธ) EXPLAIN (name of table); OR DES..

KB0129
'db' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก