Linux installation MySQL

Source: Internet
Author: User

Install package

There are two installation packages, one is server (which is a process that has been executing), one client (need to use command line access)-Install server-installation will error, rely on a Perl language package, need to download in advance- Direct access to the disc in the virtual machine (this package is available on the installation CD and does not need to be downloaded)

Note: This is where the disc is hung, and then the mount point is accessed for operation.

Find the file in the destination file: Find. -name perl*-Find the file and copy it out-

Go to the copied directory: cd/var/ftp/pub-install RPM-RVH name:

Install MySQLServer:

Verify that it is started:

Verify that the package is installed:

This will show no, mainly because of the case case, in Linux is strictly case-sensitive.

To install the client:

At this point you can use the command line for the database operation, as for the user name password needs to run a special command settings, the default root user password is empty.

To view the database:

To set up MySQL self-boot:

Note: Turn off MySQL first, then check the boot order, which is on by default, so you don't need to set it up.

Specific operation:

Local:

A package that is local to the Perl language needs to be installed.

The cause of the dependency error:

rpm是redhat系的包管理器,ubuntu是debian系的,debian系的包管理器是dpkg。 需要用deb包来安装,而不是rpm包,dpkg -i 来安装。 apt是dpkg的前端,这个好用,apt-get install mysql``
找到需要的那个perl包——复制——安装
安装server
检查server是否启动

Linux installation MySQL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.