The command ‘uname’ help you to know the information of the system.
$ uname --all # Give you all the information of the system
$ uname -m # Prints the machine hardware name
References:
1) http://linux.about.com/library/cmd/blcmdl1_uname.htm
The command ‘uname’ help you to know the information of the system.
$ uname --all # Give you all the information of the system
$ uname -m # Prints the machine hardware name
References:
1) http://linux.about.com/library/cmd/blcmdl1_uname.htm
One day when I tried to login to mysql it is not permitting me to login as a root. Then I found the following solution to get rid of from this issue.
$ sudo /etc/init.d/mysql stop
$ sudo vim /etc/my.cnf
> Add the following line to section [mysqld]:
skip-grant-tables
$ sudo /etc/init.d/mysql start
$ mysql -e "update user set password = old_password('newpassword') where user = 'root'" mysql
$ sudo kill -9 PROCESS_ID
$ vim ~/mysql-init
> Add the following lines:
EOF UPDATE mysql.user SET Grant_priv='Y', Super_priv='Y' WHERE User='root'; FLUSH PRIVILEGES; GRANT ALL ON *.* TO 'root'@'localhost'; EOF
$ mysqld_safe --init-file=~/mysql-init &
$ rm ~/mysql-init
$ sudo /etc/init.d/mysql restart
Login as root!
References:
1) http://www.ipreferjim.com/2011/06/cant-login-to-mysql-as-root/