mysql-server
我在 Ubuntu 上安装时遇到问题。
我在命令行中输入:
sudo apt-get install mysql-server-5.1
然后我得到了这个:
sale@sale-desktop:/var/www$ sudo apt-get install mysql-server-5.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libhtml-template-perl mysql-server-core-5.1
Suggested packages:
libipc-sharedcache-perl tinyca
The following NEW packages will be installed:
libhtml-template-perl mysql-server-5.1 mysql-server-core-5.1
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/11.8MB of archives.
After this operation, 27.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously deselected package mysql-server-core-5.1.
(Reading database ... 314812 files and directories currently installed.)
Unpacking mysql-server-core-5.1 (from .../mysql-server-core-5.1_5.1.41-3ubuntu12.10_i386.deb) ...
Selecting previously deselected package mysql-server-5.1.
Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.41-3ubuntu12.10_i386.deb) ...
Selecting previously deselected package libhtml-template-perl.
Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.9-1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up mysql-server-core-5.1 (5.1.41-3ubuntu12.10) ...
Setting up mysql-server-5.1 (5.1.41-3ubuntu12.10) ...
安装到此停止,我等待着,但什么也没有发生,我不得不使用 ctrl+z 停止安装并发布问题 :)
答案1
首先...如果可能的话,您应该使用 MySQL 5.5(最新和最好的)。
第二件事是...您应该从 MySQL 网站下载软件包并在本地安装,而不是使用 apt-get。下载后使用软件包管理器进行安装。
链接到 MySQL 5.5 下载...
http://dev.mysql.com/downloads/mysql/5.5.html#downloads
从下拉菜单中选择“Debian Linux”。
MySQL 5.1 下载链接(不建议)...
http://dev.mysql.com/downloads/mysql/5.1.html#downloads
从下拉菜单中选择“Linux - 通用”。
没有更多信息,我的“直觉”告诉我这是一个兼容性问题,因为您特别要求 5.1......但我不知道您尝试在哪个版本的 Ubuntu 上安装它,所以它可能完全没问题。
尝试...
sudo apt-get install mysql-server
...没有版本,看看它给你什么包。