How to MySQL and Python In Ubuntu
MySQL and Python are famous database and development software respectively. These are normally installed on Linux-based systems. Let’s see how we can get them installed on Ubuntu server environments.
Installing Python
The primary activity is to discover what is the variant of Python introduced on the framework. We can discover this by issuing the accompanying order.
Python –v
Python –V
Python3 –V
If we want to have the latest version of Python installed, then we need to issue the following statement.
sudo apt-get install python3
Installing MySQL
Stage 1 − Issue the adept get direction to guarantee all working framework bundles are state-of-the-art.
sudo apt-get update
Step 2 − Once all the packages have been updated, it is time to get the packages for MySQL.
sudo apt-get install mysql-server
Stage 3 − Enter the required secret phrase and snap the OK catch. It will likewise incite to return the secret word.
Step 4 − To see the MySQL process running, run the following command.
ps –ef | grep mysql
Step 5 − To configure MySQL, run the following command.
/usr/bin/mysql_secure_installation
Stage 6 − Enter the secret phrase and hit Enter.
Stage 7 − Enter 'N' for No and continue.
Stage 8 − When associating from different machines on this database, it is encouraged to keep the default alternatives as 'N' for both unknown clients and refuse root login remotely.
Stage 9 − It is encouraged to give the alternative as No to the choices of Remove test database too. We can enter 'Y' to reload the benefits table.
0 Comments
CAN FEEDBACK
Emoji