centos source install mysql

2011-01-07  来源:本站原创  分类:OS  人气:69 

Steps:

shell> cp mysql-5.1.43-linux.tar.gz / home

shell> cd / home

shell> tar-zxvf mysql-5.1.43-linux.tar.gz

shell> cp / home/mysql-5.1.43-linux-i686-glibc23/support-files/my-medium.cnf / etc / my.cnf

shell> scripts / mysql_install_db - user = mysql

shell> bin / mysqld_safe &
# Change the password bin / mysqladmin-u root password 'admin'
# Landing bin / mysql-u root-p
Enter password:
mysql>

Boot mysql:

shell> cp / home/mysql-5.1.43-linux-i686-glibc23/support-files/mysql.server / etc / init.d / mysql

shell> cd / etc / init.d

shell> vi mysql
Change the basedir basedir = / home/mysql-5.1.43-linux-i686-glibc23
Change the datadir datadir = / home/mysql-5.1.43-linux-i686-glibc23/data
The $ bindir / safe_mysqld - datadir = $ datadir - pid-file = $ pid_file &
To - datadir = $ datadir followed by a - user = root

shell> chkconfig - add mysql
# Chkconfig - level 2345 mysqld on
# Chkconfig mysqld on ← set up the MySQL service starts with the system since the launch of
# Chkconfig - list mysqld ← Is MySQL from the start

Modify command aliases

In order not to be entered each time into the mysql / home/mysql-5.1.43-linux-i686-glibc23/bin/mysql-u root-p

shell> alias homemysql = '/ home/mysql-5.1.43-linux-i686-glibc23/bin/mysql-u root-p'

If you enter the wrong path alias to the correct path to re-direct you can alias the other are the same

Start can be directly input homemysql

相关文章
  • centos source install mysql 2011-01-07

    Steps: shell> cp mysql-5.1.43-linux.tar.gz / home shell> cd / home shell> tar-zxvf mysql-5.1.43-linux.tar.gz shell> cp / home/mysql-5.1.43-linux-i686-glibc23/support-files/my-medium.cnf / etc / my.cnf shell> scripts / mysql_install_db - use

  • Details of eight installed CentOS: Linux install mysql 2010-05-10

    Since it is CentOS, then we look directly to install mysql yum good! 1. First installed yum install mysql * 2. Because it is installed using yum, then we installed the mysql module is placed in the system default address, for example: / var / lib / m

  • Source install mysql possible problems and solutions 2011-10-16

    This used to solve install mysql from source, usually run configure, make & & make install command may encounter problems and solutions One problem, an error is as follows: configure: error: in `/Application/mysql-5.1.58': configure: error: no acc

  • Source install Mysql, innodb engine retrofitting method 2011-06-26

    First identified in the mysql 'plugin_dir' under ha_innodb_plugin.so and ha_innodb.so two files Query 'plugin_dir' path can be used the following command mysql> show variables like 'plugin_dir'; +---------------+--------------------------------- - +

  • Source install mysql under linux 2011-05-16

    mysql linux platform is the most popular database systems, today introduced the mysql installation and simple method of operation! groupadd mysql / / mysql user group established useradd-g mysql mysql / / mysql account established tar-zxvf mysql-xxxx

  • Source install mysql 2010-03-03

    Installation path is / home / opt / mysql (/ home is separate partition) mysql Version is 5.1.44 1. Compile preparation . / Configure - prefix = / home / opt / mysql - Enable-assembler - Enable-profiling - With-mysqld-user = mysql - With-plugins = in

  • Note: Install MySQL from a standard source destribution 2011-09-02

    Because the installation of Bacula must install MySQL, so from the official website mysql download mysql-5.5.15-linux2.6-x86_64.tar.gz, ready to compile your own installation of MySQL. shell> tar xvfz mysql-5.5.15-linux2.6-x86_64.tar.gz After extract

  • 1 minute perfect install the latest CentOS + Nginx + PHP-FPM + MySQL 2011-03-03

    PHP 5.3.1 MySQL 5.0.89 Nginx 0.8.33 or 0.7.65 (optional) Now, we can quickly get automatic CentOS + Nginx + PHP-FPM + MySQL install the The spread of the Internet than any one-click installation package is much better, it is strongly recommended this

  • Set up under the CentOS 6.0 LAMP environment (source install) 2011-09-21

    Transfer http://auction1.taobao.com/auction/item_detail-0db2-c96f1f929a63eed04664eccbcc912d28.jhtml <p> <span> history two days, and finally to build on the good in centos 6.0 a complete LAMP development environment, and a lot of trouble, but

  • Install MySQL source 2010-03-12

    Install MySQL source Linux environment: Linux AS 4.7 1, the first to use rpm-qa | grep mysql see whether the system has been installed on other versions of MySQL 2, If you have installed other versions of MySQL, use rpm-e removed, shall be in accorda

  • CentOS through yum install Mysql 5.0 2010-07-18

    Record what steps, memo. 1. First of all, yum configuration about the source, point to drive. (1) Drive into the system tray (2) mount-t iso9660-o ro / dev / cdrom / mnt / cdrom (3) back up, yum original configuration: cp / etc / yum.repos.d / CentOS

  • linux install mysql (CentOs) 2010-11-12

    1. Preparation To the mysql website http://www.mysql.com/downloads/ Or http://mirrors.sohu.com/ I installed the operating system is CentOs_5_5_64_server Download mysql-RPM file, a total of 2: MySQL-server-community-5.1.52-1.rhel5.x86_64.rpm MySQL-cli

  • CentOS 5.5 install Mysql apache compile 2010-12-08

    Yum update source wget http://sudone.com/download/CentOS-Base.repo -O / etc / yum.repos.d / CentOS-Base.repo Description: Do not copy some of the implementation can not directly have a problem I did not modify the symbol suhosin-patch Download: http:

  • CentOS yum install Apache + PHP + MySQL + Tomcat 2011-06-17

    Keywords: CentOS yum install Apache + PHP + MySQL + Tomcat 1 install Apahce, PHP, MySQL and php to connect mysql database components. # Yum-y install httpd php mysql mysql-server php-mysql (2) to install apache extension # Yum-y install httpd-manual

  • install mysql linux source 2011-10-06

    Source under the ubuntu install mysql need to install cmake, cmake can download the official online source for installation, can also directly by ubuntu's apt command to install. Directly through the apt command to install cmake apt-get install cmake

  • centos install Mysql 2010-04-01

    Install Mysql 1, download the installation files to install MySQL MySQL needs the following two files: MySQL-server-5.1.7-0.i386.rpm Download address: http://dev.mysql.com/downloads/mysql/5.1.html , open this page, scroll down page to find "Linux x86

  • Steps to install mysql centos 2010-05-28

    Reprinted from http://zym820910.javaeye.com/blog/671566 First, download MySQL5.0 and related perl package 1. Official website [url] http://dev.mysql.com/downloads/mysql/5.0.html [/ url] download MySQL5.0 version, It should be noted that the system CP

  • CentOS yum install Apache + PHP + MySQL 2011-10-21

    1: Install MySQL 1 Installation yum install mysql mysql-server mysql-devel 2 Start the MySQL /etc/init.d/mysqld start 3 Set the initial password MySQL Assuming the password is set to 123 456 mysqladmin -u root password 123456 4 set to logon remotely

  • CentOS 5 install ROR 2009-04-23

    1. RubyWorks installation Installation RubyWorks Repo wget [url=http://rubyworks.rubyforge.org/public_key.txt]http://rubyworks.rubyforge.org/public_key.txt[/url] sudo rpm --import public_key.txt wget [url=http://rubyworks.rubyforge.org/RubyWorks.repo

  • Linux CentOS + jdk + tomcat + mysql & & CentOS Web applications garbled 2011-01-12

    1. Install Linux CentOS The disk with the company, version unknown. Prompted to install a graphical interface, to user-friendly than some of FreeBSD. Basically in accordance with the default settings, except the last optional software. Select only th