Installing
-
2. Downloading MySQL Server
Download Latest MySQL Server for Ubuntu
-
3. Installing MySQL Server
Then to Install MySQL Server
First, access the Download location by default with:Copycd ~/Downloads
To Check it’s there List the contents with:
Copyls . | grep mysql
The grep Command refine the output List showing only the Entries matching the Keyword.
But if you are in Trouble to Find the Location on Terminal then See: How to Access Downloads Folder from Browser.Copysudo apt install ./mysql*debian*.deb
Post-Installation Configuration.
Copygroupadd mysql
Copyuseradd -r -g mysql mysql
Copychown -R mysql:mysql /opt/mysql
Copy/opt/mysql/server*/scripts/mysql_install_db --user=mysql
Copychown -R root /opt/mysql
Copychown -R mysql /opt/mysql/server*/data
-
4. Setting Up PATH
So then again to Set the User PATH
Run in succession the following Commands:Copysu `whoami`
Copycd
Copynano .bashrc
Append:
Copyexport PATH=$PATH:/opt/mysql/server-[Version]/bin
Ctrl+x to Save & Exit from nano :)
Load the New PATH with:
Copybash
-
5. Launching MySQL Server
In case to Start the MySQL Server
Run:Copysudo su -c "mysqld_safe --user=mysql &"
-
6. MySQL Server Secure SetUp
Strongly Recommended MySQL Server Secure SetUp
Here MySQL Secure Server SetUpLink to Guide on Post-Installation Secure SetUp of MySQL on Linux/Unix
Contents