Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6548446
  • 博文数量: 1005
  • 博客积分: 8199
  • 博客等级: 中将
  • 技术积分: 13071
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-25 20:19
个人简介

脚踏实地、勇往直前!

文章分类

全部博文(1005)

文章存档

2020年(2)

2019年(93)

2018年(208)

2017年(81)

2016年(49)

2015年(50)

2014年(170)

2013年(52)

2012年(177)

2011年(93)

2010年(30)

分类: Mysql/postgreSQL

2012-04-20 21:35:21

环境:Red Hat Linux As 5
Mysql:5.22
 
1.检查是否安装了mysql
[root@hxl dev]# rpm -qa|grep mysql
libdbi-dbd-mysql-0.8.1a-1.2.2
php-mysql-5.1.6-5.el5
mysql-bench-5.0.22-2.1
mysql-5.0.22-2.1
mysql-server-5.0.22-2.1
mysql-connector-odbc-3.51.12-2.2
mod_auth_mysql-3.0.0-3.1
mysql-devel-5.0.22-2.1
 
2.启动mysql
[root@hxl dev]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
[root@hxl dev]# service mysqld status
mysqld is stopped
[root@hxl dev]# service mysqld start
mysql> show tables;
Starting MySQL:                                            [  OK  ]

 
3.进入Mysql
[root@hxl dev]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 5.0.22
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use test
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed

+----------------+
| Tables_in_test |
+----------------+
| tb_test        |
+----------------+
1 row in set (0.01 sec)
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| hxl                |
| mysql              |
| test               |
+--------------------+
4 rows in set (0.00 sec)
 
-- The End --
阅读(3611) | 评论(0) | 转发(1) |
0

上一篇:什么是/dev/shm

下一篇:安装配置jdk和Tomcat

给主人留下些什么吧!~~