Posts

Showing posts from October 22, 2017

Setup MySQL on Ubuntu Droplet getting error ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

sudo /etc/init.d/mysql stop Now start up MySQL in safe mode, so you'll skip the privileges table: sudo mysqld_safe --skip-grant-tables & Login with root: mysql -uroot And assign the DB that needs to be used: use mysql; Now all you have to do is reset your root password of the MySQL user and restart the MySQL service: update user set password=PASSWORD("YOURPASSWORDHERE") where User='root'; flush privileges; quit and restart MySQL: quit sudo /etc/init.d/mysql stop sudo /etc/init.d/mysql start Now your root password should be working with the one you just set, check it with: mysql -u root -p

Configure Telnet & SSH on Router for Remote access.

To configure Telnet we have to do some steps... Step1- #line vty 0 4 Step2- #password mypassword Step3- #login local To configure SSH on Router we have to do some extra task.. Step1- # ip domain-name <mydomainname> Step2-# crypto key generate rsa Step3-# ip ssh version 2       ------------------------------------------- (No required) Step4# username <myusername> secret <mypassword> Step5-# line vty 0 15 Step6-# transport input ssh Step7-#login local