没有合适的资源?快使用搜索试试~ 我知道了~
大家都知道MySQL是一款中、小型关系型数据库管理系统,很具有实用性,对于我们学习很多技术都有帮助,前几天我分别装了SQL Server 2008和Oracle 10g数据库,也用了JDBC去连接他们,都没有出现乱码。昨天看同学用Java连接MySQL数据库的时候,出现了乱码,这是我不知道的,我马上上网去查JDBC连接MySQL的操作,发现在用JDBC方式连接MySQL数据库的时候要传递一个能解决乱码的参数,才能将不是乱码的数据插入到数据库中.这是我要安装MySQL数据库的其中一个原因,想去体验以下它一下,再加上上课的机器配置比较低,装MySQL数据库做实验是最好的选择,正是由于这两个原因我安装了MySQL,在安装的过程中有些问题让我很注意,在安装的过程中我将步骤截了图,希望对有需要的人有所帮助,我的数据库是5.5.21这个版本的。是我的安装步骤
资源推荐
资源详情
资源评论
Microsoft Windows [版本 10.0.15063]
(c) 2017 Microsoft Corporation。保留所有权利。
C:\Windows\system32>cd C:\Develop\mysql\bin
C:\Develop\mysql\bin>mysqld --initialize --user=mysql --console
2017-10-27T07:55:14.689417Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-10-27T07:55:15.021383Z 0 [Warning] InnoDB: New log files created, LSN=45790
2017-10-27T07:55:15.095580Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2017-10-27T07:55:15.166801Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 2ad3e9db-baec-11e7-b1fe-e03f49da4d50.
2017-10-27T07:55:15.171806Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2017-10-27T07:55:15.175824Z 1 [Note] A temporary password is generated for root@localhost: CsN2toUSm&dF
C:\Develop\mysql\bin>mysqld --install MySQL
Service successfully installed.
C:\Develop\mysql\bin>net start MySQL
MySQL 服务正在启动 .
MySQL 服务已经启动成功。
C:\Develop\mysql\bin>mysql -u root -p
Enter password: ************
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.19
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
(c) 2017 Microsoft Corporation。保留所有权利。
C:\Windows\system32>cd C:\Develop\mysql\bin
C:\Develop\mysql\bin>mysqld --initialize --user=mysql --console
2017-10-27T07:55:14.689417Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-10-27T07:55:15.021383Z 0 [Warning] InnoDB: New log files created, LSN=45790
2017-10-27T07:55:15.095580Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2017-10-27T07:55:15.166801Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 2ad3e9db-baec-11e7-b1fe-e03f49da4d50.
2017-10-27T07:55:15.171806Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2017-10-27T07:55:15.175824Z 1 [Note] A temporary password is generated for root@localhost: CsN2toUSm&dF
C:\Develop\mysql\bin>mysqld --install MySQL
Service successfully installed.
C:\Develop\mysql\bin>net start MySQL
MySQL 服务正在启动 .
MySQL 服务已经启动成功。
C:\Develop\mysql\bin>mysql -u root -p
Enter password: ************
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.19
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
资源评论
weixin_44151849
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功