There will be times when the root password for your MySQL instance is either forgotten or compromised. This calls for you to reset the root password.
The follwing steps will walk you through how to reset the root password for MySQL.
Stop the MySQL process.
Once MySQL has stopped
Restart it with the --skip-grant-tables option.
Connect to MySQL using the root user.
Once logged in, you should see the following prompt:
Tell MySQL which database to use:
Enter the new password for the root user as follows:
Flush the privileges:
Now stop MySQL again.
Now restart MySQL.
Test your new login.
Zabbix is the ultimate enterprise-level software designed for monitoring availability and performance of IT infrastructure components. Zabbix is open source and comes at no cost.
Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices.
This is a quick tutorial on how to set a static IP address using the terminal within Fedora 20.
Disable Network Manager
- First stop and disable the gnome network manager from running on boot.
- Now start and enable the network service to run on boot.
Set the Static Address
Check which interface(s) you want to set as static.
Next edit the config file for the required interface.
Edit the config file to look similar to the following.
Change the BOOTPROTO from “dhcp” to “static”. Also adding IPADDR, NETMASK, BROADCAST and NETWORK variables and make sure ONBOOT is set to yes.
Apply the Settings
Restart the network service to apply the settings.
Make sure the correct DNS servers are configured to allow Fedora to resolve domains.
If you use mongo client alot but hate the default cli behavior, I
find this tool to be very helpful to enhance the cli experience.
This is handy tool to reformat your ruby codes outside of your editor.
The only drawback is it only prints out the result and doesn't
overwrite the original source. As a workaround you can do these steps.
rbeautify bad_file.rb > good_file.rb; mv good_file.rb bad_file.rb
If you use sublime text, you can add this plugin instead. I'm using
it and it works great.
Hopefully these tools will eliminate the indentation issues we've
been seeing with the git pull requests.
gem install pry
gem install pry-nav
create alias for gdb style navigation
Pry.commands.alias_command 'c', 'continue'
Pry.commands.alias_command 's', 'step'
Pry.commands.alias_command 'n', 'next'
Example on how to use pry-nav
binding.pry # Execution will stop here.
puts 'Hello World' # Run 'step' or 'next' in the console to move here.
The aritcles on the sites of nixCraft and DigitalOcean always have high value
The CentOS Linux distribution is a stable, manageable and reproduceable platform derived from the sources of Red Hat Enterprise Linux (RHEL). free to redistribute.
Asterisk is an open source framework for building communications applications.Asterisk turns an ordinary computer into a communications server.
MediaWiki is a free software open source wiki package written in PHP, originally for use on Wikipedia.
MantisBT is an open source issue tracker makes collaboration with team members & clients easy, fast, professional and effectively.
TestLink is an Open Source Test Management.
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer. This functionality enables a more centralized usage of Git.
Jenkins is an extendable open source continuous integration server, it provides many plugins to support building and testing virtually any project.
Redmine is a flexible project management web application. Written using the Ruby on Rails framework, it is cross-platform and cross-database.
VirtualBox is freely available as Open Source Software
Puppet Open Source is a flexible, customizable framework available under the Apache 2.0 license designed to help system administrators automate the many repetitive tasks they regularly perform.
Chef also have an open-source free version
RVMis a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.
another similar tool is rbenv
ruby on rails is an open-source web framework optimized for programmer happiness and sustainable productivity, it lets you write beautiful code by favoring convention over configuraion
A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write. it has a friendly and growing community.
Docker is an open-source project to easily create lightweight, portable, self-sufficient containers from any application.
we use many open source tools, such as centos, asterisk, mediawiki, mantis, testlink, gerrit, jenkins,
Our working operating system is CentOs，I use it everyday, Writing automated shell scripts to deploy asterisk on Cloud Application Platform
I also wirte spec scripts to build rpm package of asterisk, libpri, dahdi
we use git as our version control system
use gerrit as code review and project management
I deploy testlink on cloud server, then write test cases with it
we use mantis as our issue tracker to manage our bugs,
we use mediawiki as our Knowledge management system, writing technology tips with it
we use jenkins as our continuous integration server, doing some daliy build, and some automated tests
wo use these Open source softwares to collaborate on code
github and gitlab is also good tools, they offers git repository management, code reviews, issue tracking, activity feeds and wiki’s. wo also use them
i also use redmine, puppet, chef, VirtualBox，Selenium，vagrant，Docker，rails，ruby
familiar with google app engine, Amazon Elastic Compute Cloud, linode, digtial ocean, aliyun，openshift，heroku，Godaddy，newrelic
As a start-up, OpenShift has been an ideal platform because it has allowed us to focus on our application and our customers and not on infrastructure and operations.
paas is convenient and efficient to build app, i use openshift to host a site http://ihuer.com/
when i create an OpenShift account using my gmail, i encountered a problem, it tell me, can't
contain capital letters in email account, so i turn my gmail account into lower case letters, gmail
is not case-sensitive，so I can use it in this way, openshift tell me i create my accout successfully
but i can't receive emails from openshift, i also use my gmail receive all my emails,
because openshift case-sensitive, so my gmail can't register successfuly i think this is not friendlyto customers, many people use capital letters in their email accout, i think openshift should modify the design of register