diff --git a/guides/install-mysql-mariadb.html b/guides/install-mysql-mariadb.html index c5e64d4..67cdae9 100644 --- a/guides/install-mysql-mariadb.html +++ b/guides/install-mysql-mariadb.html @@ -40,15 +40,20 @@
sudo mysql_secure_installation
+ Run the above command, and follow the instructions, if you don't want to then follow mine.
+Press enter for the current password, and again when asked if you want to set a root password. Enter the password, then press enter for everything else.
sudo mysql
- GRANT ALL ON *.* TO 'admin'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
+ GRANT ALL ON *.* TO 'admin'@'localhost' IDENTIFIED BY '<DESIRED_PASSWORD>' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit;
Simply try logging in as the admin account.
+mysql -u admin -p
+ It should ask for a password, so enter your DESIRED_PASSWORD, and if you get mysql access, it's successful.
If you're working with a terminal, when calling mysql you'll need to enter a password each time. You can store the passwordwith a special .cnf file, making it faster to get into writing SQL.
vim ~/.my.cnf
Add the following, with your credentials
[mysql]
-user=
-password=
- The above can be used for mysqldump, mysqladmin, and others too, by replacing the [mysql] block
The above can be used for mysqldump, mysqladmin, and others too, by replacing the [mysql] block, with the related. e.g. [mysqldump].