1700511920
1700511921
cd keras-masterpython setup.py installpip install keras
1700511922
1700511923
1700511924
1700511925
1700511927
数据科学家养成手册 A.8 安装MySQL
1700511928
1700511929
在CentOS中打开一个Terminal,输入如下代码。
1700511930
1700511931
Wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
1700511932
1700511933
安装MySQL。
1700511934
1700511935
rpm-ivh mysql-community-release-el7-5.noarch.rpm
1700511936
1700511937
在这之后,“/etc/yum.repo.d/”目录下会多出2个文件,分别是mysql-community.repo和mysql-community-source.repo。
1700511938
1700511939
使用yum安装MySQL。
1700511940
1700511941
yum install mysql-server
1700511942
1700511943
启动MySQL服务器程序。
1700511944
1700511945
service mysqld start
1700511946
1700511947
使用客户端对服务器进行连接。
1700511948
1700511949
mysql –u root
1700511950
1700511951
更改root用户的登录密码。
1700511952
1700511953
[root@localhost ~]# mysql-u rootWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 2Server version: 5.6.33 MySQL Community Server(GPL)mysql> use mysql;Database changedmysql> update user set password=password(‘data’)where user=‘root’;Query OK, 4 rows affected(0.00 sec)Rows matched: 4 Changed: 4 Warnings: 0mysql> flush privileges;Query OK, 0 rows affected(0.00 sec)mysql> exit;Bye
1700511954
1700511955
再次登录MySQL服务器。
1700511956
1700511957
mysql-u root-p
1700511958
1700511959
输入密码“data”,此时屏幕上会显示如下内容。
1700511960
1700511961
[root
@localhost ~]# mysql-u root-pEnter password
:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 3Server version: 5.6.33 MySQL Community Server(GPL)Copyright(c)2000, 2016, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.mysql>
1700511962
1700511963
现在,MySQL服务器已经可以用root用户和密码“data”进行连接了。
1700511964
1700511965
1700511966
1700511967
1700511969
数据科学家养成手册 A.9 安装MySQL-Python驱动
[
上一页 ]
[ :1.70051192e+09 ]
[
下一页 ]