1
0
Fork 0
mirror of https://github.com/fastogt/fastocloud_admin.git synced 2025-03-09 23:38:52 +00:00

Port for mysql

This commit is contained in:
topilski 2019-09-20 12:28:45 -04:00
parent 14ae7522d7
commit 5d60e30f5a

View file

@ -20,6 +20,7 @@ if __name__ == '__main__':
parser.add_argument('--mysql_host', help='MySQL host', default='localhost') parser.add_argument('--mysql_host', help='MySQL host', default='localhost')
parser.add_argument('--mysql_user', help='MySQL username', default='') parser.add_argument('--mysql_user', help='MySQL username', default='')
parser.add_argument('--mysql_password', help='MySQL password', default='') parser.add_argument('--mysql_password', help='MySQL password', default='')
parser.add_argument('--mysql_port', help='MySQL port', default=3306)
parser.add_argument('--server_id', help='Server ID', default='') parser.add_argument('--server_id', help='Server ID', default='')
parser.add_argument('--country', help='Subscribers country', default='US') parser.add_argument('--country', help='Subscribers country', default='US')
@ -27,6 +28,7 @@ if __name__ == '__main__':
mysql_host = argv.mysql_host mysql_host = argv.mysql_host
mysql_user = argv.mysql_user mysql_user = argv.mysql_user
mysql_password = argv.mysql_password mysql_password = argv.mysql_password
mysql_port = argv.mysql_port
server_id = argv.server_id server_id = argv.server_id
country = argv.country country = argv.country
@ -40,6 +42,7 @@ if __name__ == '__main__':
db = mysql.connector.connect( db = mysql.connector.connect(
host=mysql_host, host=mysql_host,
port=mysql_port,
user=mysql_user, user=mysql_user,
passwd=mysql_password, passwd=mysql_password,
database='xtream_iptvpro' database='xtream_iptvpro'