This command is used to pre-route the traffic from NAT server to NFS server (specially used for FTP client(RANZCOG) access)
COMMAND#:
iptables -t nat -A PREROUTING -p tcp --dport 10234 -j DNAT --to-destination 10.0.2.50:22
COMMAND to check the list of iptables rules with pre-routing
List:
iptables -t nat --line-numbers -L
TO REMOVE THE RULES:
iptables -t nat -D PREROUTING 'nr'
ex: iptables -t nat -D PREROUTING 6
This article will walk you through how to reset the root MySQL password:
STEP 1: stop the MySQL service
sudo /etc/init.d/mysql stop
STEP 2: Enter the MySQL shell by skipping the secure access
sudo /usr/sbin/mysqld --skip-grant-tables
start the mysql client process using this command
mysql -u root
From the mysql prompt execute this command to be able to change any password
FLUSH PRIVILEGES;
Then reset/update your password
SET PASSWORD FOR root@'localhost' = PASSWORD('password');
If you have a mysql root account that can connect from everywhere, you should also do:
UPDATE mysql.user SET Password=PASSWORD('newpwd') WHERE User='root';
Then flush the privileges:
FLUSH PRIVILEGES;
Now start the MySQL service:
service mysql start