level 10
1005524346
楼主
1、卸载当初我安装的时候是用:sudo apt-get install mysql-server mysql-client
于是相应的卸载:sudo aptitude purge mysql-server mysql-client
其实我也有尝试用新立得软件管理器来卸载,再次安装的时候却被跳过设置root密码的步骤,应该是卸载的不完全吧?但是不管怎样我用上面的命令卸载之后重新安装正常。
2、安装Mysqlsudo apt-get install mysql-server mysql-client
是的,依然是原来安装的方式,需要输入root的密码并确认一次。但是当我安装完成之后发现无法使用sudo /etc/init.d/mysql restart来重启以及启动、停止,
出现以下提示:luo@luo-ubuntu:~$ sudo /etc/init.d/mysql restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart mysql
mysql start/running, process 3942
luo@luo-ubuntu:~$ sudo /etc/init.d/mysql restartRather than invoking init scripts through /etc/init.d, use the service(8)utility, e.g. service mysql restart
Since the script you are attempting to invoke has been converted to anUpstart job, you may also use the restart(8) utility, e.g. restart mysqlmysql start/running, process 3942
于是参照提示使用以下命令行来重启、启动、停止
Mysql:sudo restart mysql #重启
sudo start mysql #启动
sudo stop mysql #停止
2012年05月09日 01点05分
1
于是相应的卸载:sudo aptitude purge mysql-server mysql-client
其实我也有尝试用新立得软件管理器来卸载,再次安装的时候却被跳过设置root密码的步骤,应该是卸载的不完全吧?但是不管怎样我用上面的命令卸载之后重新安装正常。
2、安装Mysqlsudo apt-get install mysql-server mysql-client
是的,依然是原来安装的方式,需要输入root的密码并确认一次。但是当我安装完成之后发现无法使用sudo /etc/init.d/mysql restart来重启以及启动、停止,
出现以下提示:luo@luo-ubuntu:~$ sudo /etc/init.d/mysql restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart mysql
mysql start/running, process 3942
luo@luo-ubuntu:~$ sudo /etc/init.d/mysql restartRather than invoking init scripts through /etc/init.d, use the service(8)utility, e.g. service mysql restart
Since the script you are attempting to invoke has been converted to anUpstart job, you may also use the restart(8) utility, e.g. restart mysqlmysql start/running, process 3942
于是参照提示使用以下命令行来重启、启动、停止
Mysql:sudo restart mysql #重启
sudo start mysql #启动
sudo stop mysql #停止