MySQL is an open source free relational database management system (RDBMS) released under GNU (General Public License). It is used to run multiple databases on any single server by providing multi-user access to each created database. This article will walk through you the process of installing and updating latest MySQL 5.7.9 version onRHEL/CentOS 7/6/5 and Fedora 23/22/21 using MySQL Yum repository via YUM utility.
Step 1: Adding the MySQL Yum Repository
1. I will use official MySQL Yum software repository, which will provides RPM packages for installing the latest version of MySQL server, client, MySQL Utilities, MySQL Workbench, Connector/ODBC, and Connector/Python for the RHEL/CentOS 7/6/5 and Fedora 23-21.
Important: These instructions only works on fresh installation of MySQL on the server, if there is already a MySQL installed using a third-party-distributed RPM package, then I recommend you to upgrade or replace the installed MySQL package using the MySQL Yum Repository”.
Before Upgrading or Replacing old MySQL package, don’t forget to take all important databases backup and configuration files.
2. Now download and add the following MySQL Yum repository to your respective Linux distribution system’s repository list to install the latest version of MySQL (i.e. 5.7.9 released on 21 October 2015).
--------------- On RHEL/CentOS 7 ---------------
# wget http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
--------------- On RHEL/CentOS 6 ---------------
# wget http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm
--------------- On RHEL/CentOS 5 ---------------
# wget http://dev.mysql.com/get/mysql57-community-release-el5-7.noarch.rpm
--------------- On Fedora 23 ---------------
# wget http://dev.mysql.com/get/mysql57-community-release-fc23-7.noarch.rpm
--------------- On Fedora 22 ---------------
# wget http://dev.mysql.com/get/mysql57-community-release-fc22-7.noarch.rpm
--------------- On Fedora 21 ---------------
# wget http://dev.mysql.com/get/mysql57-community-release-fc21-7.noarch.rpm
3. After downloading the package for your Linux platform, now install the downloaded package with the following command.
--------------- On RHEL/CentOS 7 ---------------
# yum localinstall mysql57-community-release-el7-7.noarch.rpm
--------------- On RHEL/CentOS 6 ---------------
# yum localinstall mysql57-community-release-el6-7.noarch.rpm
--------------- On RHEL/CentOS 5 ---------------
# yum localinstall mysql57-community-release-el5-7.noarch.rpm
--------------- On Fedora 23 ---------------
# dnf localinstall mysql57-community-release-fc23-7.noarch.rpm
--------------- On Fedora 22 ---------------
# dnf localinstall mysql57-community-release-fc22-7.noarch.rpm
--------------- On Fedora 21 ---------------
# yum localinstall mysql57-community-release-fc21-7.noarch.rpm
The above installation command adds the MySQL Yum repository to system’s repository list and downloads the GnuPG key to verify the integrity of the packages.
4. You can verify that the MySQL Yum repository has been added successfully by using following command.
The above command installs all the needed packages for MySQL server mysql-community-server, mysql-community-client, mysql-community-common and mysql-community-libs.
Step 3: Installing MySQL Release Series
6. You can also install different MySQL version using different sub-repositories of MySQL Community Server. The sub-repository for the recent MySQL series (currently MySQL 5.7) is activated by default, and the sub-repositories for all other versions (for example, the MySQL 5.6 or 5.5 series) are deactivated by default.
To install specific version from specific sub-repository, you can use --enable or --disableoptions using yum-config-manager or dnf config-manageras shown:
7. After successful installation of MySQL, it’s time to start the MySQL server with the following command:
# service mysqld start
You can verify the status of the MySQL server with the help of following command.
# service mysqld status
This is the sample output of running MySQL under my CentOS 7 box.
Redirecting to /bin/systemctl status mysqld.service
mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)
Active: active (running) since Thu 2015-10-29 05:15:19 EDT; 4min 5s ago
Process: 5314 ExecStart=/usr/sbin/mysqld --daemonize $MYSQLD_OPTS (code=exited, status=0/SUCCESS)
Process: 5298 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
Main PID: 5317 (mysqld)
CGroup: /system.slice/mysqld.service
└─5317 /usr/sbin/mysqld --daemonize
Oct 29 05:15:19 localhost.localdomain systemd[1]: Started MySQL Server.
8. Now finally verify the installed MySQL version using following command.
# mysql --version
mysql Ver 14.14 Distrib 5.7.9, for Linux (x86_64) using EditLine wrapper
Step 5: Securing the MySQL Installation
9. The command mysql_secure_installation allows you to secure your MySQL installation by performing important settings like setting the root password, removing anonymous users, removing root login, and so on.
# mysql_secure_installation
Now follow the onscreen instructions carefully, for reference see the output of the above command below.
Sample Output
Securing the MySQL server deployment.
Enter password for user root: Enter New Root Password
VALIDATE PASSWORD PLUGIN can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD plugin?
Press y|Y for Yes, any other key for No: y
There are three levels of password validation policy:
LOW Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary file
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 2
Using existing password for root.
Estimated strength of the password: 50
Change the password for root ? ((Press y|Y for Yes, any other key for No) : y
New password: Set New MySQL Password
Re-enter new password: Re-enter New MySQL Password
Estimated strength of the password: 100
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.
Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
- Dropping test database...
Success.
- Removing privileges on test database...
Success.
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.
All done!
Step 6: Connecting to MySQL Server
10. Connecting to newly installed MySQL server by providing username and password.
# mysql -u root -p
Sample Output:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 19
Server version: 5.7.9 MySQL Community Server (GPL)
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
Step 7: Updating MySQL with Yum
11. Besides fresh installation, you can also do updates for MySQL products and components with the help of following command.
Kali 2.0 has a big problem when running VLC, infact it doesnt even RUN it at all. This probably due to the bugs in the new kali updates.I solved this problem by typing the following commands:
Step 1: Open Your Terminal
Step 2: Type in "cp /usr/bin/vlc /usr/bin/vlc a" and press enter
Step 3: Type in "needle=$(objdump -d /usr/bin/vlc | grep euid | tail -1 | awk '{print "\x"$2"\x"$3"\x"$4"\x"$5"\x"$6;}')" and press enter
Step 4: Type in "sed -ir "s/$needle/\xb8\x01\x00\x00\x00/" /usr/bin/vlc" and press enter.
You don't even need to tell us what happened when you told your friends that you want to buy a gaming laptop. Their inner elitist got the best of them, and bashed you for not just building an outright gaming desktop. But we get you. Building a gaming PC takes knowledge and dexterity that you just don't have or care to develop.
That's where the gaming laptop shines, as a fast lane to PC gaming. No need to build a case or even buy a monitor. Of course, that convenience usually comes with a hefty price tag. Most vendors start their asking prices at around $1,400 (about £901, AU$1,894) for 13 and 14-inch products, whereas the biggest and beefiest 17 and 18-inch models can skyrocket upwards of $3,000 (around £1,931, AU$4,059).
If you're ready to accept that a gaming laptop will almost never be as affordable or offer the same level of performance as a comparably-priced gaming desktop, then your decision is already made. But again, the gaming notebook is a device of convenience and portability over raw power. Without further ado, here are our favorite gaming laptops that we've reviewed thus far.
1. Origin EON15-X
A desktop-grade CPU in an unbeatable gaming laptop
CPU: 4GHz Intel Core i7-4790K | Graphics: Nvidia GeForce GTX 980M (8GB GDDR5 RAM), Intel HD Graphics 4600 | RAM: 8GB | Screen: 15.6-inch, 1920 x 1080 LED Backlit Matte Display | Storage: 240GB SSD; 1TB HDD (5,400 rpm) |Connectivity: Intel PRO Wireless AC 7265 + Bluetooth Wireless LAN Combo |Camera: 2MP Video Camera | Weight: 7.5 pounds | Dimensions: 15.2 x 10.31 x 1.40 inches (W x D x H)
Origin EON15-X is a real head turner. It packs a desktop processor into a fairly compact 15.6-inch laptop that, while smaller, offers even more performance compared to other, bigger hardcore gaming rigs. This extra CPU power is handy for users who need to edit video and other processor intensive tasks that a mobile chip can't handle. You'll also get an extra kick of performance in no matter what game you're running.
This machine is definitely worth consideration over all others and now that Origin has updated this monster with a Intel Skylake processor, you can bet you'll get even more performance mileage. Though, there might be a new performance champion on the block now that Asus has created the ROG GX700as the world's first gaming laptop with liquid-cooling.
High-res gaming machines are a tough nut to crack whether you have a baller PC tower and even more so with portable laptops. So it comes as a pleasant surprise to see the Gigabyte build out the Aorus X3 Plus v3 as a machine that can fly even with a 4K screen in tow. This 14-inch gaming laptop can pull off this feat largely thanks to its beefy video card and dual SSDs. The Aorus X3 handles the latest graphics-heavy games such as Elite Dangerous with ease at 60 fps even in the most frantic space combat.
The MSI GT80 Titan goes above and beyond to give gamers a desktop experience in a notebook with a complement of high-performance parts to a built-in mechanical keyboard. However, weighing in at nearly 10 pounds and measuring roughly two-inches thick, this laptop is seriously pushing the limits of what you can call portable. For all the strain it'll put on your back and wallet, though, this 18.4-inch gaming laptop absolutely plow through almost any graphically intense game you try to run. This gaming behemoth proved to be a monster with the best in class mobile GPUs so we can't even fathom what it could do with a Nvidia GTX 980.
If you're looking to jump into PC gaming on a budget, the Gigabyte P55K v4 offers plenty of performance without breaking the bank. For the same price as the new 12-inch Apple MacBook you get a super-speedy Intel Core i7 processor with discrete graphics to boot. There's enough power on tap to easily surpass the 60 fps holy grail in almost any game so long as you knock your settings a peg or two below Ultra. To top it off P55K v4 features a great, colorful IPS screen and an immersive Dolby Digital Plus Home Theatre sound system to make this one of the nicest self-contained gaming platforms we've ever reviewed.
The Alienware 17 is one of those few outrageously priced gaming laptops that's actually worth it. The notebook is a fully capable gaming machine on its own, but with the added power of desktop graphics through the GPU Amplifier it can play almost any game on Ultra settings.If you're looking for something smaller, the Alienware 13 also works with the optional GPU box.
The Aorus X7 Pro-Sync is a 17.3-inch gaming laptop that packs a ton into thin body. With no less than two graphics cards and a heady processor too, the X7 is overflowing with performance. What's more, thanks to some newly added Nvidia display technology, gamers can be confident they're getting the highest frame rates without any bothersome jitter and tearing issues. In the future, this Aorus X7 will come packing Nvidia's desktop graphics for even more performance.
There's plenty to like about the EVO15-S, and while it comes at an expensive premium, it's one of the few laptops that are well worth the expense. This Origin machine is one of the thinnest and lightest gaming laptops you possibly buy. It doesn't skimp on the latest cutting edge parts either with an excellent 1080p panel, three storage drives and plenty of RAM. Plus there's also the option to throw on a 4K screen for a marginally priced upgrade.More and more gaming laptops have been outfitted with Nvidia's latest GPUs, but the Origin EVO15-S is still one of the best-performing gaming laptops for a reasonable price.
CPU: 2.6GHz Intel Core i7-4720HQ | Graphics: Nvidia GeForce GTX 960M (4GB GDDR5 RAM), Intel HD Graphics 4600 | RAM: 16GB | Screen: 15.6-inch, 1920 x 1080 Full HD WLED-backlit IPS touchscreen | Storage: 512GB SSD |Connectivity: Intel 802.11ac WLAN and Bluetooth | Camera: HP TrueVision Full HD WVA Webcam with Dual Digital Microphone | Weight: 4.68 pounds |Dimensions: 15.07 x 9.67 x 0.78 inches
If you want a machine that doesn't follow the crowd with glowing alien heads and flaming decals, the HP Omen has a style unto its own. Steeply tapered edges give way to a plenty of lights and other little details to make this one of the industry's most sophisticated and attractive gaming laptops. Beyond looks, the HP Omen packs enough processing brains to handle anything from everyday task to hardcore PC gaming. As a mid-range system, it straddles the line of excellent power efficiency while still offering enough performance to handle the latest games.
The Digital Storm Triton is an attractive, powerful and, most importantly, affordable gaming laptop. These are three qualities you don't often hear in the same sentence, making this machine special for pulling together such a rare combination.It has enough computing power to play most modern games at 60 fps with just a few tweak in your graphics settings.Though it has a lackluster screen and trouble keeping cool, this Digital Storm laptop is still an incredible deal.
The Asus ROG G751 is a gaming tank in every sense. At 17 inches and 4.8kg, it's bigger and heavier than some other gaming laptops, but it sports a premium design spruced up with aluminum and houses powerful components that justify the chunk. Inside you'll find some of the best components available to notebooks to day that allows this mobile rig to play games at high detail settings. For all of its horsepower, the G751 is uncommonly quiet and runs at a gentle hum. It's big, bold, perhaps even beautiful — and definitely a beast. It's also worth noting that Asus has a new ROG G752 waiting in the wings with an new sleeker design plus Skylake processors.