
Python
shenghuiping2001
提供Splunk 安装升级技术支持,Splunk字段截取, Cribl数据导入,dashboard报表制作。Splunk, cribl接入各种网络设备和Add-on APP.(毕业于南京航空航天大学,在IBM工作过10年,现在专注splunk架构和数据分析。拥有Oracle: OCP认证, AWS: ASP认证, Azure: admin系统管理员认证。)
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
记录linux 安装 MYSQL 的点点滴滴
1:今天当我mysql 的时候,报错: [root@oc2246430752 etc]# mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 后来,当我安装好: yum install -y mariadb-server ...原创 2019-04-20 20:17:48 · 314 阅读 · 0 评论 -
安装mysql-python 报错mysql中确缺失mysql_config的方法
问题:在redhat 上pip install mysql-python,报错如下 # pip install mysql-python Downloading/unpacking mysql-python Running setup.py egg_info for package mysql-python sh: /usr/bin/mysql_config: No such fil...原创 2019-04-20 11:30:49 · 1085 阅读 · 0 评论 -
Python 安装 MySQL-python ImportError: No module named 'ConfigParser'
系统: redhat Python : Python 3.7 安装 MySQL-python ,结果出错: ImportError: No module named 'ConfigParser' Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ry1be27_/mysql-pyth...原创 2019-04-20 10:12:34 · 498 阅读 · 0 评论 -
python - List 的学习(sort - remove - pop)
1: 关于list 的排序和 最大最小值: theList = [1, 2, 33, 3, 4] low = min(theList) print (low) high = max(theList) print(high) theList.sort() print (theList) 看一下output: 1 33 [1, 2, 3, 4, 33] 2: 看一下remove 和pop...原创 2019-04-24 11:11:16 · 430 阅读 · 0 评论 -
新版PyCharm运行报错
报错如下: Traceback (most recent call last): File "/usr/lib/python2.7/encodings/__init__.py", line 74, in search_function entry = _cache.get(encoding, _unknown) AttributeError: 'NoneType' object has no ...原创 2019-04-24 10:01:41 · 543 阅读 · 0 评论 -
像Excel一样使用python进行数据分析 (周末两天的成果)
1: 先把下面表格再EXCEL 中保存: name city age salary birthday david shanghai 39 12000 1981-08-20 jerry shanghai 40 12001 1981-08-21 tina beijing 41 12002 19...原创 2019-04-28 06:51:47 · 2040 阅读 · 0 评论 -
Pycharm 里面找不到已经阿安装的model
1: 先参考link: https://blog.youkuaiyun.com/pfm685757/article/details/46122225 发现我已经安装好了ipython, 在linux 里面input ipython 出现其安装目录: /usr/local/bin/python3.7 2: 参考上面link 的方法,在 setting --> project interpreter -...原创 2019-04-27 09:35:20 · 724 阅读 · 0 评论 -
Python 对Mysql数据库的操作 - 实验
1:今天当我尝试向数据库里面插入数据: 先看一下 database 里面的database: mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | s...原创 2019-04-21 19:03:47 · 585 阅读 · 0 评论 -
Python 连接MYSQL 的第一个例子
新建一个Python project, 里面建一个python file: connect_DB.py import pymysql # 打开数据库连接 db = pymysql.connect(host='127.0.0.1', port=3306, user='root', passwd='Sheng2020', db='mysql', charset='utf8') cursor = d...原创 2019-04-20 21:36:38 · 446 阅读 · 0 评论 -
[转载] 安装 mysql
安装mysql数据库 1、安装工作: 下载 mysql 源安装包 [root@ming ~]# wget http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm 安装 mysql 源 [root@ming ~]# yum loca...转载 2019-04-20 16:45:47 · 147 阅读 · 0 评论