Files
learning/linux/mysql_commands.txt
2022-05-06 00:50:43 +03:00

19 lines
360 B
Plaintext
Executable File

install:
sudo apt install mysql-server
sudo apt install libmysqlclient-dev
user creation:
CREATE USER 'socialstore' IDENTIFIED BY 'socialstorepassword';
SELECT user FROM mysql.user;
database creation:
CREATE DATABASE StoreDatabase;
GRANT ALL PRIVILEGES ON StoreDatabase.* TO socialstore;
database management:
USE StoreDatabase;
SHOW TABLES;
installation: