mysql快速入门 分类: B6_MYSQL 2015-04-28 14:31 284人阅读 评论(0) 收藏
2015-04-28 14:31
381 查看
debian方式:
apt-get install mysql-server-5.5
mysql -u root -p
redhat安装方式
一、下载并解压
$ wget http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-5.5.42-1.el6.x86_64.rpm-bundle.tar 解压后得到以下几个文件:
$ tar -xvf MySQL-5.5.42-1.el6.x86_64.rpm-bundle.tar
MySQL-shared-5.5.42-1.el6.x86_64.rpm
MySQL-shared-compat-5.5.42-1.el6.x86_64.rpm
MySQL-server-5.5.42-1.el6.x86_64.rpm
MySQL-devel-5.5.42-1.el6.x86_64.rpm
MySQL-test-5.5.42-1.el6.x86_64.rpm
MySQL-client-5.5.42-1.el6.x86_64.rpm
MySQL-embedded-5.5.42-1.el6.x86_64.rpm
二、安装
1、安装server
(1)# rpm -ivh MySQL-server-5.5.42-1.el6.x86_64.rpm
(2)若出现冲突错误,则是由于linux可能自带了mysql的库,需要先将之删除
# rpm -e mysql-libs.x86_64 --nodeps
2、安装client
# rpm -ivh MySQL-client-5.5.42-1.el6.x86_64.rpm
三、关于配置文件
# ls *.cnf
my-huge.cnf my-innodb-heavy-4G.cnf my-large.cnf my-medium.cnf my-small.cnf
# pwd
/usr/share/mysql
使用rpm方法进行安装时,配置文件放在/usr/share/mysql中,可根据需要放到其它地方。
四、启动及关闭
1、方式一:命令行方式
# mysqld_safe &
# mysqladmin -uroot shutdown
2、方式二:服务方式
# service mysql start
# service mysql stop
# service mysql restart
3、连接数据库开始使用
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.42 MySQL Community Server (GPL)
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
版权声明:本文为博主原创文章,未经博主允许不得转载。
相关文章推荐
- sqoop 1.4.4-cdh5.1.2快速入门 分类: C_OHTERS 2015-06-06 11:40 208人阅读 评论(0) 收藏
- 【solr专题之一】Solr快速入门 分类: H4_SOLR/LUCENCE 2014-07-02 14:59 2403人阅读 评论(0) 收藏
- Gora快速入门 分类: C_OHTERS 2015-01-30 09:55 465人阅读 评论(0) 收藏
- RMAN之一:快速入门 分类: H2_ORACLE 2014-02-17 16:11 689人阅读 评论(0) 收藏
- HIVE快速入门 分类: B4_HIVE 2015-06-06 11:27 59人阅读 评论(0) 收藏
- Mahout快速入门教程 分类: B10_计算机基础 2015-03-07 16:20 508人阅读 评论(0) 收藏
- JDBC之一:JDBC快速入门 分类: B1_JAVA 2014-02-19 14:49 745人阅读 评论(0) 收藏
- Json入门 分类: C_OHTERS 2014-04-23 16:20 601人阅读 评论(0) 收藏
- mysql中文乱码问题 分类: database 2013-08-15 14:03 330人阅读 评论(0) 收藏
- 2.1 存储器域与PCI总线域 分类: 浅谈PCI 2013-07-22 16:27 284人阅读 评论(0) 收藏
- 修改mysql字符集编码 分类: 数据库 2010-07-27 11:02 1424人阅读 评论(0) 收藏
- 修改MySql默认编码 分类: 转载 2011-12-05 12:17 13657人阅读 评论(0) 收藏 举报 mysqlcharacter数据库databasevariables数据库服务器
- 图像处理------快速均值模糊(Box Blur) 分类: 视频图像处理 2015-07-24 09:28 30人阅读 评论(0) 收藏
- FFMPEG:压缩之H264编码(YUV420P->H264) 分类: DirectX ffmpeg-SDL-VLC-Live555 2014-11-26 14:31 997人阅读 评论(0) 收藏
- MySQL 解决ERROR 1045 (28000): Access deniedfor user datam@localhost (using password: YES)的问题 分类: database 2013-09-12 15:52 402人阅读 评论(0) 收藏
- MYSQL常用查命令 分类: 数据库 2010-09-28 13:57 513人阅读 评论(2) 收藏
- MySQL是什么玩意儿(二)MySQL中的SQL语法基础 分类: MySQL 2014-04-26 10:16 173人阅读 评论(0) 收藏
- Cubieboard 开箱和入门 | Name5566 分类: cubieboard 2014-11-08 17:27 251人阅读 评论(0) 收藏
- ffmpeg入门之 Tutorial02 分类: ffmpeg-SDL-VLC-Live555 2013-08-26 08:48 520人阅读 评论(0) 收藏
- 事件CEvent的使用 . 分类: VC++ 2013-11-02 14:31 499人阅读 评论(0) 收藏