Saturday, November 19, 2005

 

browser refresh

to bypass your browser's cache to see the changes.
Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac);
IE:
hold Ctrl while clicking Refresh, or press Ctrl-F5;
Konqueror:
: simply click the Reload button, or press F5;
Opera
users may need to completely clear their cache in Tools→Preferences.

Thursday, November 03, 2005

 

google down

mark this date
workstation:~> date
Thu Nov 3 00:28:02 PST 2005
workstation:~>

i had to use dogpile.com to do a search. mark this as "the internet is
down" in todays times. google can't be down? i can surf everywhere but
there.


 

grub fix boot

Follow this to get your boot back...


http://www.gnu.org/software/grub/manual/grub.html#Installing-GRUB-natively


Once started, GRUB will show the command-line interface (see Command-line interface). First, set the GRUB's root device4 to the partition containing the boot directory, like this:

     grub> root (hd0,0) 

If you are not sure which partition actually holds this directory, use the command find (see find), like this:

     grub> find /boot/grub/stage1 


This will search for the file name /boot/grub/stage1 and show the devices which contain the file.

Once you've set the root device correctly, run the command setup (see setup):

     grub> setup (hd0) 

This command will install the GRUB boot loader on the Master Boot Record (MBR) of the first drive. If you want to put GRUB into the boot sector of a partition instead of putting it in the MBR, specify the partition into which you want to install GRUB:

     grub> setup (hd0,0) 

If you install GRUB into a partition or a drive other than the first one, you must chain-load GRUB from another boot loader. Refer to the manual for the boot loader to know how to chain-load GRUB.

After using the setup command, you will boot into GRUB without the GRUB floppy. See the chapter Booting to find out how to boot your operating systems from GRUB.



 

mysql grant

shell> mysql --user=root keystone

mysql> GRANT
SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,DROP,RELOAD,SHUTDOWN,PROCESS,
FILE,
ON keystone.*
TO <$sys_dbuser name>@localhost
IDENTIFIED BY '(password)'
WITH GRANT OPTION;

OR

mysql> GRANT ALL PRIVELEGES
ON keystone.*
TO <$sys_dbuser name>@localhost
IDENTIFIED BY '(password)'
WITH GRANT OPTION;


Wednesday, November 02, 2005

 

mysql lost password

Do so:

service mysql stop

wait until MySQL shuts down. Then run

mysqld_safe --skip-grant-tables &

then you will be able to login as root with no password.

mysql -uroot mysql

In MySQL command line prompt issue the following command:

UPDATE user SET password=PASSWORD("abcd") WHERE user="root";
FLUSH PRIVILEGES;

At this time your root password is reset to "abcd" and MySQL will now
know the privileges and you'll be able to login with your new password:

mysql -uroot -pabcd mysql


This page is powered by Blogger. Isn't yours?