Ubuntu安装配置MySQL

sudo apt-get install mysql-server mysql-client

 

如果服务没有运行,可以用

sudo /etc/init.d/mysql restart

 配置密码

sudo mysqladmin -uroot -poldssword password newpassword

现在需要装administrator了,这个gui工具可以可视化操作mysql,它在unix,windows,mac os,linux平台上都有相应的版本,安装:

  sudo apt-get install mysql-admin

  安装之后需要建立连接,stored connection:第一次使用,首先需要选择save this connection,然后填写连接的名字,例如:connection.

  server hostname:如果是一台本地计算机,填写localhost.username和password填写自己设置的就可以。最后点"connection"连接成功!

你可能感兴趣的:(linux,mysql,unix,OS,ubuntu)