|
@@ -1,6 +1,6 @@
|
|
|
#!/usr/bin/python3
|
|
#!/usr/bin/python3
|
|
|
"""
|
|
"""
|
|
|
-Script de clonage des bases de données MySql
|
|
|
|
|
|
|
+Script de clonage des bases de données MariaDb 10.*
|
|
|
(requiert python 3.6+)
|
|
(requiert python 3.6+)
|
|
|
|
|
|
|
|
> Configuration: settings.yml
|
|
> Configuration: settings.yml
|
|
@@ -54,12 +54,6 @@ LOG_MYSQL_QUERIES = True
|
|
|
|
|
|
|
|
MAX_ALLOWED_PACKET = 1073741824
|
|
MAX_ALLOWED_PACKET = 1073741824
|
|
|
|
|
|
|
|
-CHARSET_TO_ENCODING = {
|
|
|
|
|
- 'utf8': 'utf-8',
|
|
|
|
|
- 'utf8mb4': 'utf-8',
|
|
|
|
|
- 'latin1': 'latin'
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
# Utilities
|
|
# Utilities
|
|
|
def load_settings():
|
|
def load_settings():
|
|
@@ -590,10 +584,6 @@ def main(settings, arguments):
|
|
|
return
|
|
return
|
|
|
logger.debug('> User confirmed')
|
|
logger.debug('> User confirmed')
|
|
|
|
|
|
|
|
- # Create the user if they do not exist
|
|
|
|
|
- # CREATE USER IF NOT EXISTS 'user'@'localhost' IDENTIFIED BY 'password';
|
|
|
|
|
- # GRANT ALL ON opentalent TO 'opentalent'@'localhost';
|
|
|
|
|
-
|
|
|
|
|
# Run the cloning operations
|
|
# Run the cloning operations
|
|
|
for op in selected_ops:
|
|
for op in selected_ops:
|
|
|
op.run()
|
|
op.run()
|