The following article describes how to correctly install the MySQL database under the Ubuntu operating system. We are the best combination of MySQL and PHP) -for installation in version 5.0.40, You need to compile and download the required tools.
These tools may not exist 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 the MySQL database (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) MySQL database (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
Shells> cp support-files/my-medium.cnf/etc/my. cnf
Shell> cd/usr/local/MySQL database (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 database (the best combination with PHP )&