关闭mysql方法_启动和关闭MySQL的方法

启动和关闭MySQL的方法

(1)启动

MySQL安装完成后启动文件mysql在/etc/init.d目录下,在需要启动MySQL服务时运行下面命令即可。 [root@test1 init.d]# /etc/init.d/mysql start

(2)停止

/usr/bin/mysqladmin -u root -p shutdown

(3)设置MySQL自动启动

1)察看mysql是否在自动启动列表中

[root@test1 local]# /sbin/chkconfig --list

2)把MySQL添加到你系统的启动服务组里面去

[root@test1 local]# /sbin/chkconfig --add mysql

3)把MySQL从启动服务组里面删除。

[root@test1 local]# /sbin/chkconfig -- del mysql

相关文档:

1.MySQL简介

MySQL是一个广泛使用的结构化查询语言(SQL)数据库服务器。和其他SQL服务器一样,MySQL提供了访问和管理SQL数据库的方法,但是,MySQL同时也提供了创建数据库结构以及在这些结构中添加、修改和删除这些结构的工具。

MySQL数据库相关的软件包主要有以下几种:

......

从本篇博文开始,我们就要深入到PHP的应用当中去了。PHP的数据库应用是重中之重,必须掌握。选择什么样的数据库呢,当然是我们的MySQL啦,没有人会去使用那些庞大、低效而又昂贵的商业数据库来构建PHP应用吧。

1 MySQL数据库的安装

过去,安装一个MySQL数据库并且要启动起来很费事,特别是在Linux这样的开发环境下,需要� ......

1、MySQL常用命令

create database name; 创建数据库

use databasename; 选择数据库

drop database name 直接删除数据库,不提醒

show tables; 显示表

describe tablename; 表的详细描述

select 中加上distinct去除重复字段

mysqladmin drop databasename 删除数据库前,有提示。

显示当前mysql版本和当前� ......

MySQL client programs:

mysql

The command-line tool for interactively entering SQL statements or executing them from a file in batch mode. See Section 4.5.1, “mysql — The MySQL Command-Line Tool”.

mysqladmin

A client that performs administrative operations, such as crea ......

etting up OpenLDAP with MySQL backend

用mysql作后台数据库安装openldap

author: TBONIUS

OpenLDAP is an X.500 Lightweight Directory Access Server used for

centralized authentication and directory lookups. ......

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值