欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

Ubuntu 11.04 通过 apt 安装 MySQL 5.1 的全过程记录

程序员文章站 2022-05-17 16:24:18
...

Ubuntu 11.04 通过 apt 安装 MySQL 5.1 的全过程记录

Ubuntu 11.04 通过 apt 安装 MySQL 5.1 的全过程记录:

相关阅读:

Linux下MySQL 5.5.11编译安装笔记(完整安装教程)

Ubuntu下编译安装MySQL双实例并配置主从复制

Ubuntu 11.04 (32-bit)环境编译安装MySQL 5.5

1) $ sudo apt-get install mysql-server

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient16 libnet-daemon-perl
libplrpc-perl mysql-client-5.1 mysql-client-core-5.1 mysql-common mysql-server-5.1
mysql-server-core-5.1
Suggested packages:
libipc-sharedcache-perl tinyca mailx
The following NEW packages will be installed:
libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient16 libnet-daemon-perl
libplrpc-perl mysql-client-5.1 mysql-client-core-5.1 mysql-common mysql-server
mysql-server-5.1 mysql-server-core-5.1
0 upgraded, 12 newly installed, 0 to remove and 28 not upgraded.
Need to get 23.9 MB of archives.
After this operation, 61.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 natty/main mysql-common all 5.1.54-1ubuntu4 [12.2 kB]
Get:2 natty/main mysql-common all 5.1.54-1ubuntu4 [12.2 kB]
Get:3 natty/main libnet-daemon-perl all 0.43-1 [46.9 kB]
Get:4 natty/main libplrpc-perl all 0.2020-2 [36.0 kB]
Get:5 natty/main libdbi-perl amd64 1.612-1 [846 kB]
Get:6 natty/main libmysqlclient16 amd64 5.1.54-1ubuntu4 [1869 kB]
Get:7 natty/main libmysqlclient16 amd64 5.1.54-1ubuntu4 [1869 kB]
Get:8 natty/main libdbd-mysql-perl amd64 4.016-1 [140 kB]
Get:9 natty/main mysql-client-core-5.1 amd64 5.1.54-1ubuntu4 [102 kB]
Get:10 natty/main mysql-client-5.1 amd64 5.1.54-1ubuntu4 [9370 kB]
Get:11 natty/main mysql-client-5.1 amd64 5.1.54-1ubuntu4 [9370 kB]
Get:12 natty/main mysql-server-core-5.1 amd64 5.1.54-1ubuntu4 [4976 kB]
Get:13 natty/main mysql-server-5.1 amd64 5.1.54-1ubuntu4 [6386 kB]
Get:14 natty/main mysql-server-5.1 amd64 5.1.54-1ubuntu4 [6386 kB]
Get:15 natty/main mysql-server-5.1 amd64 5.1.54-1ubuntu4 [6386 kB]
Get:16 natty/main libhtml-template-perl all 2.9-2 [67.1 kB]
Get:17 natty/main mysql-server all 5.1.54-1ubuntu4 [6828 B]
...


2) 设置root帐号的密码

Ubuntu 11.04 通过 apt 安装 MySQL 5.1 的全过程记录

Ubuntu 11.04 通过 apt 安装 MySQL 5.1 的全过程记录

3) 安装过程的细节

Selecting previously deselected package mysql-common.
(Reading database ... 50200 files and directories currently installed.)
Unpacking mysql-common (from .../mysql-common_5.1.54-1ubuntu4_all.deb) ...
Selecting previously deselected package libnet-daemon-perl.
Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.43-1_all.deb) ...
Selecting previously deselected package libplrpc-perl.
Unpacking libplrpc-perl (from .../libplrpc-perl_0.2020-2_all.deb) ...
Selecting previously deselected package libdbi-perl.
Unpacking libdbi-perl (from .../libdbi-perl_1.612-1_amd64.deb) ...
Selecting previously deselected package libmysqlclient16.
Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.54-1ubuntu4_amd64.deb) ...
Selecting previously deselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.016-1_amd64.deb) ...
Selecting previously deselected package mysql-client-core-5.1.
Unpacking mysql-client-core-5.1 (from .../mysql-client-core-5.1_5.1.54-1ubuntu4_amd64.deb) ...
Selecting previously deselected package mysql-client-5.1.
Unpacking mysql-client-5.1 (from .../mysql-client-5.1_5.1.54-1ubuntu4_amd64.deb) ...
Selecting previously deselected package mysql-server-core-5.1.
Unpacking mysql-server-core-5.1 (from .../mysql-server-core-5.1_5.1.54-1ubuntu4_amd64.deb) ...
Processing triggers for man-db ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up mysql-common (5.1.54-1ubuntu4) ...
Selecting previously deselected package mysql-server-5.1.
(Reading database ... 50575 files and directories currently installed.)
Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.54-1ubuntu4_amd64.deb) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously deselected package libhtml-template-perl.
Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.9-2_all.deb) ...
Selecting previously deselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.1.54-1ubuntu4_all.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up libnet-daemon-perl (0.43-1) ...
Setting up libplrpc-perl (0.2020-2) ...
Setting up libdbi-perl (1.612-1) ...
Setting up libmysqlclient16 (5.1.54-1ubuntu4) ...
Setting up libdbd-mysql-perl (4.016-1) ...
Setting up mysql-client-core-5.1 (5.1.54-1ubuntu4) ...
Setting up mysql-client-5.1 (5.1.54-1ubuntu4) ...
Setting up mysql-server-core-5.1 (5.1.54-1ubuntu4) ...
Setting up mysql-server-5.1 (5.1.54-1ubuntu4) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
mysql start/running, process 2201
Setting up libhtml-template-perl (2.9-2) ...
Setting up mysql-server (5.1.54-1ubuntu4) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
dragon@usvm1104:~$ 4) 登录mysql命令行测试一下