`
黑暗浪子
  • 浏览: 502278 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Ubuntu10.04安装mysql

阅读更多

安装步骤:

 

       命令如下:

apt-get install mysql-server

apt-get install mysql-client

安装时,会提示你设定root密码

重复密码:

 

部署步骤:

 

       设置 mysql root 访问密码:

 

mysqladmin -uroot password <password>

 

启动 mysql 服务

   /etc/init.d/mysql start service mysql start

停止 mysql 服务  

   /etc/init.d/mysql stop service mysql stop

重启 mysql 服务  

   /etc/init.d/mysql restart service mysql restart

 

 

进入 mysql 数据库  

mysql -uroot –p

根据提示输入 root 访问密码 , 显示如下信息,表明可以开始 mysql 操作:


Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 1

Server version: 5.1.50-community-log MySQL Community Server (GPL)

 

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

This software comes with ABSOLUTELY NO WARRANTY. This is free software,

and you are welcome to modify and redistribute it under the GPL v2 license

 

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

 

mysql>

 

       ubuntu10.4系统中不需要设置mysql自启动,安装时候已经作为service。

       所以一启动ubuntu系统,mysql服务自动启动。

  • 大小: 59.9 KB
  • 大小: 34.3 KB
分享到:
评论
2 楼 黑暗浪子 2010-11-04  
liukai 写道
设置 mysql root 访问密码:
mysqladmin -uroot password <password>
中间少了个 -p
所以全文应该是
mysqladmin -uroot -p password <password>


多谢
1 楼 liukai 2010-11-04  
设置 mysql root 访问密码:
mysqladmin -uroot password <password>
中间少了个 -p
所以全文应该是
mysqladmin -uroot -p password <password>

相关推荐

    Ubuntu_10.04_安装配置指南

    Ubuntu_10.04 安装、配置、指南

    Ubuntu10.04下C连接mysql数据库.docx

    Ubuntu10.04下C连接mysql数据库.docx

    Ubuntu10.04下C连接mysql数据库[参考].pdf

    Ubuntu10.04下C连接mysql数据库[参考].pdf

    Ubuntu+Nginx+Mysql+Php+Zend+eaccelerator安装配置文字版

    1、安装ubuntu server 10.04或10.10,其中安装语言选的en,时区shanghai,服务只安装ssh,其他全部用默认就行。 提示:以上安装过程完成后,建议用其他计算机登录服务器,windows系统可以用putty,linux系统直接在...

    chef-mysql_connector:MySQL连接器厨师指南

    Ubuntu 10.04以上 属性 这些属性位于node['mysql_connector']['j']命名空间下。 属性 描述 类型 默认 校验和 适用于MySQL Connector / J的SHA256校验和 细绳 自动检测到或将记录警告 install_paths MySQL ...

    mysql负载均衡完美解决方案

    环境:mysql 5 ubuntu10.04 x86_64 mdb1 eth0 192.168.5.11 mdb2 eth0 192.168.5.12 sdb1 eth0 192.168.5.21 sdb2 eth0 192.168.5.22 sdb3 eth0 192.168.5.23 sdb4 eth0 192.168.5.24 haproxy eth0 192.168.5.10 ...

    btsync-chef:Btsync 厨师食谱

    Ubuntu 10.04-12.04 属性 用法 在提供管理服务器和 MySQL 服务器的节点上,同时使用 mgmd 和 mysqld 配方: { "run_list": ["recipe[btsync::install]", "recipe[btsync::ndb]" } 这将安装 btsync,并启动一个...

    ansible-playbooks:ansible playbook 的例子

    Ubuntu 10.04 x32/64(损坏的 postgresql 和 php5-fpm 池) Ubuntu 12.04 x32/64 - 推荐Ubuntu 13.04 x32/64 Debian 7.0 x32/x64(损坏的 postgresql) environment.yml安装 vim、mc、htop、git、php5-fpm、nginx、...

    PHP学习笔记之一

    配置PHP以及MySQL的过程略去,如果在Ubuntu下,参考 Ubuntu 10.04 Installation Memo 即可。 1. 基本语法 要在HTML代码中嵌入PHP脚本的方法是在&lt;?php ?&gt;中书写代码。向浏览器输出数据采用echo或者print函数。...

    chef-alfresco:安装Alfresco Community Edition的厨师食谱

    平台此菜谱已经测试了以下平台,这意味着配方可以在这​​些平台上运行而不会出现错误: ubuntu(10.04 / 12.04) 请报告任何其他平台,以便可以添加它们。 食谱该食谱取决于以下外部食谱: 数据库(Opscode) ...

    graylog2:opscode graylog2 食谱,修改为与 centos 一起使用

    在 Ubuntu 系统上安装和配置 Graylog2 服务器(目前仅 10.04)。 这是针对 Graylog2 的 Sean Porter (@portertech) Linode StackScript 的 Chef 重新设计,可在此处获得: ://is.gd/cWA0w9 食谱 默认 下载、安装、...

Global site tag (gtag.js) - Google Analytics