The following article describes how to install the MySQL database in the Ubuntu operating system. Our installation environment is MySQL (the best combination with PHP) -5.0.40: the actual operation is required for compiling. The following describes the procedure of the document.
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 MySQL database 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 (the best combination with PHP)
- 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> makeshell> make install
- Shells> 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.