This article mainly describes how to install the MySQL database correctly in the Ubuntu operating system. We are the best combination of MySQL and PHP) -5.0.40 install the tool correctly in the compiling environment. The following describes the main content of the article.
Download and compile the required tools. These tools may not be available on the default ubuntu installation and need to be manually installed.
- sudo apt-get install g++ gcc make automake perl
Install all required tools
Download required libncurses5-dev, kdelibs_dev, and kdelib
- sudo apt-get update
- apt-get install build-essential
- sudo apt-get install libncurses5-dev
- sudo apt-get install kdelibs4-dev
- sudo apt-get install kdelibs4c2a
-
Install MySQL (the best combination with PHP) and use the root permission
Shell> groupadd MySQL database
Shell> useradd-g MySQL (the best combination with PHP)
Shell> gunzip <mysql()and php )))-version.tar.gz | tar-xvf-
Shell> cd MySQL (best combination with PHP)-VERSION
Shell>./configure -- prefix =/usr/local/MySQL (the best combination with PHP)
- shell> make
- shell> make install
- shell> cp support-files/my-medium.cnf /etc/my.cnf
-
Shell> cd/usr/local/MySQL (best combination with PHP)
Shell> chown-R MySQL (the best combination with PHP ).
Shell> chgrp-R MySQL (the best combination with PHP ).
Shell> bin/MySQL (the best combination with PHP) _ install_db -- user = MySQL (the best combination with PHP)
- shell> chown -R root .
Shell> chown-R MySQL (the best combination with PHP) var
Shell> bin/MySQL (the best combination with PHP) d_safe -- user = MySQL (the best combination with PHP )&
The above content introduces how to install MySQL database in the Ubuntu operating system.