mysql

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

Login and Sign up System (PHP, SQL)

I made login and sign up page using PHP and MySQL. I skip the entire html code this time. Here is the method to pass the data to php files. Let's take a look at Sign up system first. Sign up I checked the email and password confirm first. For connecting this php file to our database we use the code: require_once("config.php"); So, we call the config.php for connecting current php file to databas..

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
'mysql' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก