Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
f765e11b
Commit
f765e11b
authored
May 27, 2020
by
任婷婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c5716bb0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
test_divided_portrait.py
eda/smart_rank/test_divided_portrait.py
+26
-0
tool.py
eda/smart_rank/tool.py
+5
-0
No files found.
eda/smart_rank/test_divided_portrait.py
View file @
f765e11b
...
@@ -218,6 +218,32 @@ def show_kafka_and_portrait():
...
@@ -218,6 +218,32 @@ def show_kafka_and_portrait():
def
get_jerry_test
():
# try:
db
=
pymysql
.
connect
(
host
=
"172.16.40.170"
,
port
=
4000
,
user
=
"st_user"
,
passwd
=
"aqpuBLYzEV7tML5RPsN1pntUzFy"
,
db
=
"jerry_test"
,
charset
=
"utf8"
)
print
(
'connection stauts 1:'
,
connect
.
open
)
connect
.
close
()
connect
.
ping
(
reconnect
=
True
)
print
(
'connection stauts 2:'
,
connect
.
open
)
return
db
,
db
.
cursor
()
# except Exception as e:
# print(e)
# return None
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
eda/smart_rank/tool.py
View file @
f765e11b
...
@@ -362,6 +362,11 @@ def get_jerry_test():
...
@@ -362,6 +362,11 @@ def get_jerry_test():
passwd
=
"aqpuBLYzEV7tML5RPsN1pntUzFy"
,
passwd
=
"aqpuBLYzEV7tML5RPsN1pntUzFy"
,
db
=
"jerry_test"
,
db
=
"jerry_test"
,
charset
=
"utf8"
)
charset
=
"utf8"
)
print
(
'connection stauts 1:'
,
db
.
open
)
db
.
close
()
db
.
ping
(
reconnect
=
True
)
print
(
'connection stauts 2:'
,
db
.
open
)
return
db
,
db
.
cursor
()
return
db
,
db
.
cursor
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment