Add linux notes
This commit is contained in:
18
linux/mysql_commands.txt
Executable file
18
linux/mysql_commands.txt
Executable file
@@ -0,0 +1,18 @@
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user