I wanted to install mysql on my laptop to use in projects where I need a database. I'm confused, because I've seen some questions on this site: How to install mysql on Ubuntu 16.04 But I do not know where to find mysql. Can you tell me the steps to follow? Thank you.
Asked
Active
Viewed 1,665 times
2
-
3https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04 – SNS Jan 09 '19 at 12:08
1 Answers
3
Roughly the three points which are spoken about in the other thread is correct
- Install mysql-server
Better upgrade the system first:
sudo apt-get update && sudo apt-get upgrade
After the system upgrade install mysql-server
sudo apt-get install mysql-server
Create a mysql root user. Normally the system should ask you for a root user password, which will be the admin password for your DB.
If this is not the case, or you'd like to change it, the following command should be helpful.
sudo mysql_secure_installation
s1mmel
- 1,974
- 13
- 19
-
Finally I could install. I had to repeat the steps followed to sudo mysql_secure_installation and first do them wrong. Thanks for your help. I must also thank @KGR for their link showed me helped me understand the configuration form. Thank you – Miguel Espeso Jan 09 '19 at 23:56