Skip to main content

Installing MySQL server in Linux Ubuntu 21 using shell scripting and running basic SQL commands

Hi In this blog post I am sharing about to installing MySQL server in linux ubuntu 21 using shell scripting 
 In that shell scripting include that install package related dependencies for MySQL server that will address compatabilty with linux related packages like debians. 
 After that run the shell script command using exexcutable file like chmod +x filename.sh and then execute the shell script file which has the sudo commands in it. 
 Once completed executing the command, MySQL server will be installed in your linux ubunutu 21 OS.

 Check the MySQL version using "mysql -v" 

 Run the SQL commands using mysql in that linux terminal I have used the below SQL commands 
 > Use [databasename] 
> show [table_name] 
> show columns from [table_name] 

 Watch this below video for more details

Comments