Friday, June 2, 2017

Debian: Install MySQL on Debian 8 Jessie




1. You cant install mysql on your debian 8 if you dont have this lines of code in /etc/apt/sources.list

deb http://ftp.de.debian.org/debian jessie main contrib mon-free
deb-src http://ftp.de.debian.org/debian jessie main contrib non-free

2. Install MySQL. Press Y if you want to continue the installation or press n to abort the installation.

apt-get install mysql-server

 3. After the installation, blue screen will appear and password need to set in order for the installation to continue. In the next screen it requires to validate the password.

yourpassword<tab><enter>


4. Next, type mysql_secure_installation


 5. Enter the root password.


6. Change the root password. If you want to change the root password, Press Y otherwise n if not.


 7. Remove the anonymous user. If you want to remove anonymous user Press Y otherwise n if not.



 8. Disallow root login remotely. If you want to allow root user to access from the network Press Y otherwise n if not.


 9. Remove test database and access to it. If you want to remove the test database press Y otherwise press n.




 10. Reload privilege tables now. Press Y to reload and ensure that all changes made will take effect immediately.

 11. Access MySQL. Check immediately if you can access MySQL.

mysql -u root -p


No comments:

Post a Comment