updating the mysql
Here,
Database Name: wordpress
Note: Replace the value of ubuntu.example.com/wordpress with your wordpress link.
Note: Replace the value of ubuntu.example.com/wordpress with your wordpress link.
mysql -u root -p mysql> use wordpress mysql> Select * from wp_options where option_id = 1 OR option_id = 39; mysql> update wp_options set option_value='http://ubuntu.example.com/wordpress' where option_id = 1; mysql>
exit
Step 3:
Because example.com we generally use for testing. To open the wordpress demo site ubuntu.example.com I edited the file /etc/hosts and added the new line with new assigned DHCP ip correspond to ubuntu.example.com
vi /etc/hosts 127.0.0.1 localhost 10.10.0.8 ubuntu.example.com # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
Now whenever the ip address of machine was changing I was only updating my laptop /etc/hosts file.
Now I opened the URL from my laptop http://ubuntu.example.com/wordpress
Done.
Done.

0 comments: