Files
learning/Software Notes/linux/mysql_commands.txt
T
2026-03-04 21:16:49 +02:00

19 lines
360 B
Plaintext

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: