This article describes how to install the MySQL database correctly in the Ubuntu operating system. If you are interested in installing the MySQL database, the following articles will satisfy your curiosity: The specific content is described below.
Install MySQL (the best combination with PHP)-5.0.40 requires compilation
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 database with 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> 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.