Linux下Mysql的问题!无法查询、退出!求解!!
时间:2011-07-29
来源:互联网
这是我所安装的东西:
perl-DBI-1.52-1.fc6.i386.rpm
perl-DBD-MySQL-3.0007-1.fc6.i386.rpm
mysql-5.0.22-2.1.0.1.i386.rpm
mysql-server-5.0.22-2.1.0.1.i386.rpm
mysql-devel-5.0.22-2.1.0.1.i386.rpm
[root@bogon ~]# mysqladmin -u root password yangjie
[root@bogon ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database jie
-> show database 无显示
-> show database
-> exit 无法退出
-> 然后又回到这个状态!
刚刚接触Linux下mysql数据库!希望各位帮忙看看是什么个情况!
perl-DBI-1.52-1.fc6.i386.rpm
perl-DBD-MySQL-3.0007-1.fc6.i386.rpm
mysql-5.0.22-2.1.0.1.i386.rpm
mysql-server-5.0.22-2.1.0.1.i386.rpm
mysql-devel-5.0.22-2.1.0.1.i386.rpm
[root@bogon ~]# mysqladmin -u root password yangjie
[root@bogon ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database jie
-> show database 无显示
-> show database
-> exit 无法退出
-> 然后又回到这个状态!
刚刚接触Linux下mysql数据库!希望各位帮忙看看是什么个情况!
作者: jie071218 发布时间: 2011-07-29
是这样子的 ,在mysql数据库的每一个sql语句要以分号“;”作为结束.
比如: show databases;
create database my;
use my;
show tables;
比如: show databases;
create database my;
use my;
show tables;
作者: 风舞紫晓 发布时间: 2011-07-29

作者: jie071218 发布时间: 2011-07-29
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28