Today we are going to discuss with you how to correctly install the MySQL database in the Ubuntu operating system, two days ago, I was excited to learn about how to install the MySQL database correctly on the Ubuntu operating system on my website. I will share it with you today.
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 for the MySQL database
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> make
Shell> 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.