Home  >  Article  >  Database  >  ubuntu上安装mysql_MySQL

ubuntu上安装mysql_MySQL

WBOY
WBOYOriginal
2016-06-01 11:52:38969browse

ubuntu 15.04 x86_64 上安装,以下为root用户

................................................

1 #apt-get update 要花几分钟时间

2 #apt-get install mysql-server musql-client

会提示输入密码,假设为 0000

3 #mysqladmin --version ,出现版本信息表示安装正确

\

4 # /etc/init.d/mysql start 启动mysql,如果输入 #service mysql start 可能会没反应

如若报错或没反应,可运行 #apt-get upgrade ,不过这个网速很慢,可以换到搜狐的源。升级到7%就行了,再试下,不行重启再试下,

\

5 # /etc/init.d/mysql status 查看mysql 当前状态 ,上图显示running

6 #mysql -u root -p 登录Mysql

\

折腾了两天,终于搞好了,

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn