Sunday, September 22, 2013

mysql2 gem fail to install on windows

1. Download if you not using xampp or other binary only mysql in your system.

mysql-5.1.72-win32.zip

2. Extract.

3.  
gem install mysql2 -v '0.3.12' -- '--with-mysql-lib=D:\mysql-5.1.72-win32\lib\opt --with-mysql -include=D:\mysql-5.1.72-win32\include'

4. Enjoy.

* Im using xampp on window8. You can delete the downloaded mysql-5.1.72 from your system after installing the gem. 

Thanks.

Centos 7 reset root/ any user lost password / lockout due to cant remember password

1. Need to be in front of the terminal. (Physically if not vm). 2. Reboot the server 3. Press 'e' in the GRUB2 boot screen. 3. bunch...