日期:2014-05-16  浏览次数:20640 次

Ubuntu 10.1安装Sql5.5.21的问题
www.mysql.com下载了5.5.21 (linux)版
解压之后是rpm包,转换成deb包。
安装之后找不到mysql的运行程序。
我该怎么做?

安装。之前安装了一次,不行,又重装了一次。
$ sudo dpkg -i mysql-server_5.5.21-2_i386.deb
(Reading database ... 149040 files and directories currently installed.)
Preparing to replace mysql-server 5.5.21-2 (using mysql-server_5.5.21-2_i386.deb) ...
Unpacking replacement mysql-server ...
Setting up mysql-server (5.5.21-2) ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

运行提示出错。
$ mysql
The program 'mysql' can be found in the following packages:
 * mysql-client-core-5.1
 * mysql-cluster-client-5.1
Try: sudo apt-get install <selected package>

------解决方案--------------------
rpm包就直接rpm -ivh xxx.rpm安装啊
------解决方案--------------------
sudo apt-get install mysql-server-5.1 mysql-client-5.1 mysql-core-5.1
一个命令就可以搞定啊。