安装步骤:
命令如下:
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
分享到:
相关推荐
Ubuntu_10.04 安装、配置、指南
Ubuntu10.04下C连接mysql数据库.docx
Ubuntu10.04下C连接mysql数据库[参考].pdf
1、安装ubuntu server 10.04或10.10,其中安装语言选的en,时区shanghai,服务只安装ssh,其他全部用默认就行。 提示:以上安装过程完成后,建议用其他计算机登录服务器,windows系统可以用putty,linux系统直接在...
Ubuntu 10.04以上 属性 这些属性位于node['mysql_connector']['j']命名空间下。 属性 描述 类型 默认 校验和 适用于MySQL Connector / J的SHA256校验和 细绳 自动检测到或将记录警告 install_paths 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 ...
Ubuntu 10.04-12.04 属性 用法 在提供管理服务器和 MySQL 服务器的节点上,同时使用 mgmd 和 mysqld 配方: { "run_list": ["recipe[btsync::install]", "recipe[btsync::ndb]" } 这将安装 btsync,并启动一个...
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以及MySQL的过程略去,如果在Ubuntu下,参考 Ubuntu 10.04 Installation Memo 即可。 1. 基本语法 要在HTML代码中嵌入PHP脚本的方法是在<?php ?>中书写代码。向浏览器输出数据采用echo或者print函数。...
平台此菜谱已经测试了以下平台,这意味着配方可以在这些平台上运行而不会出现错误: ubuntu(10.04 / 12.04) 请报告任何其他平台,以便可以添加它们。 食谱该食谱取决于以下外部食谱: 数据库(Opscode) ...
在 Ubuntu 系统上安装和配置 Graylog2 服务器(目前仅 10.04)。 这是针对 Graylog2 的 Sean Porter (@portertech) Linode StackScript 的 Chef 重新设计,可在此处获得: ://is.gd/cWA0w9 食谱 默认 下载、安装、...