MySQL installation on Linux and Windows
installation on Linux and Windows
In this section we are going to discuss how to install MySQL on windows and Linux machines.
Download MySQLYou can download MySQL from http://dev.MySQL.com/downloads/.
Install MySQL on Linux (RedHat and its variants)
1. After downloading the required RPM package, you have to run the appropriate package with root privilege.
rpm -i PackageName.rpm
With the similar syntax, you can install MySQL client, workbench or any other software downloaded and required.
Install MySQL on Linux (Ubuntu and Debian)
Syntax for installing MySQL server
apt-get install MySQL-server
Syntax for installing PHP module MySQL
sudo apt-get install php5-MySQL
Install MySQL on Windows
Download the binary distributions (MSI files) of MySQL server and other necessary MySQL tools from MySQL site.
Run MSI files on your Windows Machines. Make sure that you have privilege for installing software applications. Follow the instructions.
After the installation is completed, if you want to make PHP work with MySQL, make sure you complete the following steps -
1. Open php.ini file. Find and uncomment the following lines -
2. Create a php file on the root of your Apache or any other web server you are using. Write echo phpinfo(); in that php file. Run that PHP file form your browser (http://localhost/info.php, if your php file name is info.php). You should be able to see the following output if you have configured PHP and MySQL properly.
Note: phpinfo() displays a long list of information about PHP installation. We have shown the MySQL part only.
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join
We are closing our Disqus commenting system for some maintenanace issues. You may write to us at reach[at]yahoo[dot]com or visit us at Facebook