打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
fedora 15 安装mysql数据库,方法很简单

用fedora 15自带的yum安装方式:
只要在终端里输入:yum -y install mysql-server ,系统自动下载和安装Mysql的,
chkconfig --add mysqld 在服务清单中添加mysql服务
service mysqld start 服务启动
mysqladmin -u root password 'newpassword' 更改密码
mysql -u root -p

Enter password:输入刚才更改的密码

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.5.13 MySQL Community Server (GPL)

Copyright (c) 2000, 2010, 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> show databases; 查询数据库

+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| test               |
+--------------------+
4 rows in set (0.00 sec)

mysql> use test; 使用test数据库

mysql> show tables; 查询test数据库所有表
Empty set (0.00 sec)

 

要使数据库支持中文,还要修改一个文件:

vi /etc/my.cnf

增加一项:character_set_server=utf8

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
mybatis执行批量更新batch update 的方法(oracle,mysql)
在MAC下配置mysql数据库的编码问题
MySQL 服务与数据库管理
mysql创建数据库指定字符集
数据库连接的写法
再见乱码:5分钟读懂MySQL字符集设置
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服