Skip to main content

:: compiling mysql on centos

:: what is
please take a look at this.

:: installing dependency package
[ root:mysql-5.1.37 ]# yum install gcc gcc-c++ make libtool automake libtermcap-devel

:: download mysql-5.1.37 source
[ root: ~]# mkdir download
[ root: ~] # cd download/
[ root:downlad ]# wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.37.tar.gz/from/ftp://ftp.inria.fr/pub/MySQL/
[ root:downlad ]# tar -xzf mysql-5.1.37.tar.gz

:: build and install
[ root:downlad ]# cd mysql-5.1.37
[ root:mysql-5.1.37 ]# groupadd mysql
[ root:mysql-5.1.37 ]# useradd -g mysql mysql
[ root:mysql-5.1.37 ]# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-pthread
[ root:mysql-5.1.37 ]# make && make install

:: configuring mysql
[ root:mysql-5.1.37 ]# /usr/local/mysql/bin/mysql_install_db --user=mysql
[ root:mysql-5.1.37 ]# /usr/local/mysql/bin/mysqld_safe --user=mysql &

:: testing
[ root:mysql-5.1.37 ]# /usr/local/mysql/bin/mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.37 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+
3 rows in set (0.00 sec)

:: links
+ GoogleLinux
+ BlacKonsole

Comments

Popular posts from this blog

Simple Step Installing WordPress in Ubuntu 24.04

Using ols1clk.sh Script This step will: Install OpenLiteSpeed Install PHP Secure your server Install MySQL Set up WordPress Run the script: bash <( curl -k https://raw.githubusercontent.com/litespeedtech/ols1clk/master/ols1clk.sh ) -w  Configuring WordPress Open your browser and navigate to your domain: http://yourdomain.com You’ll be greeted by the famous WordPress installation wizard. Follow these steps: Select your preferred language. Enter your site title, username, and password for the WordPress admin account. Click "Install WordPress." And just like that, you’ve done it!

:: Install NginX from source

:: What is NGINX nginx [engine x] is an HTTP and reverse proxy server, as well as a mail proxy server, written by  Igor Sysoev . o nginx :: How to install NGINX from source on OpenSUSE + installing dependency # zypper in pcre-devel zlib-devel libopenssl-devel + create username and group # groupadd nginx # useradd -r -g nginx nginx + compile and installing nginx # wget http://nginx.org/download/nginx-1.1.8.tar.gz # tar -xzf nginx-1.1.8.tar.gz # cd nginx-1.1.8 # ./configure --user=nginx --group=nginx --with-http_ssl_module # make && make install :: Starting / restarting httpd # /usr/local/nginx/sbin/nginx # /usr/local/nginx/sbin/nginx -s reload :: Link + Google + BlacKonsole

:: How to Recompile Nginx in Ubuntu

  Recompiling Nginx on Ubuntu can be a crucial task for those who need to customize their web server to meet specific requirements. Whether you need to add new modules, optimize performance, or apply patches, recompiling Nginx allows you to tailor the server to your needs. This guide will walk you through the process step-by-step, ensuring you have a smooth and successful recompilation.   Understanding the Need for Recompilation Why Recompile Nginx? Recompiling Nginx is often necessary when you need to add or remove modules that are not included in the default package. For instance, if you need to integrate a third-party module for enhanced security or performance, recompilation is the way to go. Additionally, recompiling allows you to apply custom patches or optimizations that can significantly improve your server's efficiency. Benefits of Custom Compilation Custom compiling Nginx offers several advantages. Firstly, it provides greater control over the server's