CentOS release 5.5 of the Linux installation MYSQL5.5.12 practice under the first test

2011-06-24  来源:本站原创  分类:Database  人气:115 

Installation a: RPM package installation:

Test environment: centOS5.5, with a built-in MYSQL5.0.2
First, prepare:

See if the installed MYSQL: # rpm-qa | grep mysql (note capitalization)
If the screen will display the installed package name such as mysql: mysql-5.0.22-2.1.0.1 Uninstall:
One way: Open gnome "Applications - Add / Remove Programs" to remove one of the MYSQL, can be safely removed from the associated software.
Second way: force delete: # rpm-e - nodeps mysql-5.0.22-2.1.0.1 (nodeps said forcibly remove)

Again find the package name, if not the resulting output indicates the version of mysql has been unloaded;

Second, download the installation package:

Open and download: http://dev.mysql.com/downloads/mysql/ # Downloads (command download is: wget http:// ...)
Note: centOS choose Linux Generic under Linux - Generic 2.6 (x86, 32-bit, MySQL-5.5.12-1.linux2.6.i386.tar)
This package has all the required packages, and the compressed packages:

· MySQL-client-VERSION.i386.rpm standard MySQL client programs. You may always want to install the package.
· MySQL-devel-VERSION.i386.rpm libraries and include files, if you want to compile other MySQL clients, such as Perl modules, you need to.
· MySQL-embedded-VERSION.i386.rpm embedded MySQL server library (from MySQL 4.0 onwards).
· MySQL-server-VERSION.i386.rpm
MySQL server. You need this option unless you want to connect on another machine running the MySQL server. Note: In MySQL 4.0.10, the server RPM file is called MySQL-VERSION.i386.rpm. In other words, do not contain the name-server.
· MySQL-shared-VERSION.i386.rpm This package contains some language, and applications need to dynamically load shared libraries (libmysqlclient.so *)

Extract the server and client both.

Third, the installation

1, the installation server: # rpm-ivh MySQL-server .... rpm (at the version of the character is omitted)
2, show after a successful installation of the client # rpm-ivh MySQL-client ....

RPM some options:
- Replacepkgs cover installation
- Test and not a true test installation installation
- Replacefiles version conflict error messages to resolve skip the installation

Fourth, after the installation:

1, see 3306 port: # netstat-hat and telnet localhost 3306
2, change the password: # / usr / bin / mysqladmin-u root password 'new-password'
3, add a group:
# Vi / etc / passwd by G to the last page to see if the mysql user. Then: q to exit,
# Vi / etc / group to see if there are mysql group if no group is # groupadd mysql, mysql user if not then # useradd-g mysql mysql
mysql mysql group and the members are present, gpasswd-a mysql mysql in the user added to the MYSQL
4, start, restart the mysql service:
service mysql restart
service mysql start

Finally, mysql-u root login when prompted

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/ var / lib / mysql / mysql.sock' (2)

Has not been resolved. So I had to try to compile the source code installed

相关文章
  • CentOS release 5.5 of the Linux installation MYSQL5.5.12 practice under the first test 2011-06-24

    Installation a: RPM package installation: Test environment: centOS5.5, with a built-in MYSQL5.0.2 First, prepare: See if the installed MYSQL: # rpm-qa | grep mysql (note capitalization) If the screen will display the installed package name such as my

  • CentOS Linux installation under MySQL 5.1.x 2011-05-16

    MySQL 5.1.x under CentOS Linux installation, optimization and security configuration Download page: http://dev.mysql.com/downloads/mysql/5.1.html # downloads groupadd mysql Create a new user group called mysql useradd-g mysql mysql In the mysql user

  • Oracle 10g under Linux installation and configuration 2010-10-09

    One. Resource requirements: At least 1024 MB of physical memory 1024-2048 to be 1.5 times the interaction space 2048-8192 to be 1 times the interaction space 8192 - the interactive space to be at least 0.75 times the 400 MB / tmp temporary directory

  • Linux installation and configuration under the MySQL5.0.90 2010-11-08

    1, download the installation files for MySQL MySQL installation requires the following two files: MySQL-server-5.0.90-1.i386.rpm MySQL-client-5.0.90-0.i386.rpm Download address: http://mirrors.sohu.com/mysql/MySQL-5.0/. Download the article available

  • Elaborate package for Linux Installation and Management 2011-04-12

    Original: http://ixdba.blog.51cto.com/2895551/537892 A source installation Linux operating system as open source, and thus most of their software installed on are also open source software, such as apache, tomcat, php and other software. Open-source

  • Linux installation and configuration under MySQL5.0.90 2010-11-08

    1, download the MySQL installation files MySQL installation requires the following two files: MySQL-server-5.0.90-1.i386.rpm MySQL-client-5.0.90-0.i386.rpm Download address: http://mirrors.sohu.com/mysql/MySQL-5.0/. Online article available to downlo

  • How do I view CentOS release method 2011-09-12

    You can view the following command: # Lsb_release-a LSB Version:: core-3.1-ia32: core-3.1-noarch: graphics-3.1-ia32: graphics-3.1-noarch Distributor ID: CentOS Description: CentOS release 5.4 (Final) Release: 5.4 Codename: Final This command applies

  • Linux installation document under Matlab 2010-03-23

    First, mount the ISO file Matlab # Mkdir / mnt / iso # create a mount point # Mount-t iso9660-o loop / home/Mathworks.Matlab.R2008a.UNIX.DVD.ISO-TBE.iso / mnt / iso [ If you need to not mount it, direct the implementation of # umount / mnt / iso Note

  • Elaborate on MySQL 5.1 under Linux installation steps 2010-05-27

    Linux environment MySQL5.1 installation steps: 1, download free install MySQL version / binary version of the software (not compiled) File Format: MYSQL-VERSION-OS.tar.gz 2, create a MySQL group, set up MySQL user and group to mysql (Different versio

  • linux installation under redis 2010-06-04

    To Red Hat Enterprise Linux 5 as an example to explain. Related series: jdk installation under linux ant installation under linux linux installation under redis Installation redis version 1.2.6 1. Download redis Download: http://code.google.com/p/red

  • Mysql Linux installation notes 2010-08-01

    redhat install mysql notes First, prepare the installation files: MySQL-server-community-5.0.45-0.rhel4.i386.rpm MySQL-client-community-5.0.45-0.rhel4.i386.rpm MySQL-devel-community-5.0.45-0.rhel4.i386.rpm MySQL-shared-community-5.0.45-0.rhel4.i386.r

  • under linux Apache2 + mysql5 + php5 source installation details 2010-08-09

    under linux Apache2 + mysql5 + php5 source installation details 1: Prepare the package Here I will download all the installation package and kept in / root / Software / directory, note the following installation package as much as possible to find th

  • weblogic 9.2 LINUX installation 2010-08-12

    weblogic 9.2 LINUX installation of the entire process! [graphic] http://linux.chinaunix.net/techdoc/system/2008/10/13/1037877.shtml

  • compile php under linux installation parameters 2010-08-27

    compile php under linux installation parameters Fast-CGI: . / Configure - prefix = / usr / local / php - enable-fastcgi - enable-force-cgi-redirect - with-config-file-path = / etc - with-zlib - with-mysql - -with-xml - with-gd - enable-gd-native-ttf

  • JDK Linux installation 2010-09-27

    JDK Linux installation 1. Start downloading jdk (jdk-1_5_0_02-linux-i586.rpm), the official website of recommended SUN www.sun.com, download on the / home directory, of course, other parts of line. Into the installation directory # Cd / home # Cp jdk

  • subversion for linux installation (SVN + apache + linux) 2010-12-15

    subversion for linux installation (SVN + apache + linux) Key words: SVN apache linux subversion 1, the installation APR-1.2.7 and APR-util-1.2.7 Download: http://apr.apache.org/ tar zxvf apr-1.2.7.tar.gz . / Configure make make install tar zxvf apr-u

  • Linux installation and configuration of OpenSSH 2010-12-10

    Many network programs, such as telnet, rsh, rlogin, or rexec, clear text (plain text) passwords and confidential information transmission, so you can use any computer connected to the network monitor these procedures and communication between the ser

  • Memcache server for Linux installation 2011-01-04

    Server is to install memcache server side, the current latest version is memcached-1.3.0. Download: http://www.danga.com/memcached/dist/memcached-1.2.2.tar.gz In addition, Memcache use the libevent library for this Socket's, so I also need to install

  • All tutorial linux installation rar 2011-01-18

    rar unzip it and install linux software download RAR for Linux installation and related commands to download and install packages: http://www.rarlab.com/download.htm Or http://www.rarsoft.com/download.htm Be installed using the command: # Tar-zxvf ra

  • subversion for linux installation (SVN + apache + linux) - reproduced 2011-06-21

    subversion for linux installation (SVN + apache + linux) Keywords: SVN apache linux subversion 1, install APR-1.2.7 and APR-util-1.2.7 Download: [url] http://apr.apache.org/ [/ url] tar zxvf apr-1.2.7.tar.gz . / Configure make make install tar zxvf a