| {"benchmark": "MisconfigBench", "image": {"distribution": {"digest": "sha256:bb49a270c3a993578575f324dfca7321031650afc513b164602953c43941a4ea", "pull_reference": "docker.io/heliopolis0124/misconfigbench-ca14@sha256:bb49a270c3a993578575f324dfca7321031650afc513b164602953c43941a4ea", "reference": "docker.io/heliopolis0124/misconfigbench-ca14:v0.2", "type": "docker_registry"}, "name": "ca14:latest"}, "instance_id": "CA14", "problem_statement": "# MySQL: setting time_zone in my.cnf options file\n\n# Question\n\nIn MySQL you can set a session variable called **time\\_zone** to change the timezone. This is useful e.g. when looking at timestamps from another country. Here is an example:\n\n```\nmysql> select now();\n+---------------------+\n| now() |\n+---------------------+\n| 2010-12-30 18:59:18 |\n+---------------------+\n1 row in set (0.00 sec)\n\nmysql> set time_zone='Brazil/East';\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> select now();\n+---------------------+\n| now() |\n+---------------------+\n| 2010-12-30 09:59:29 |\n+---------------------+\n1 row in set (0.00 sec)\n```\n\nIs it possible to put that in an option file e.g. .my.cnf ?\n\nWhen I try, it doesn't work. All I get is:\n\n> ```\n> mysql: unknown variable 'time_zone=Brazil/East'\n> ```\n\n\n\n### Question Comments\n\n=== COMMENTS ===\n- (1) Leniel Maccaferri [Commented Dec 30, 2010 at 12:22]: What's your operating system?\n- (2) dolmen [Commented Jun 27, 2018 at 14:29]: So far the answers work by changing settings the server side. I'm interested in an anwser that allows to change the time_zone for a mysql CLI session by setting something in ~/.my.cnf .\n\n\n---\n\n\n# Accepted Answer\n\nit should be\n\n```\ndefault_time_zone=Brazil/East\n```\n\ndetails : <http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_time_zone>\n\n> Option-File Format = default\\_time\\_zone", "software": {"name": "MySQL", "version": "8.0.27"}, "source": {"type": "StackOverflow", "url": "https://stackoverflow.com/questions/4573728/mysql-setting-time-zone-in-my-cnf-options-file"}, "task_type": "misconfig_troubleshooting", "version": "0.2"} |
| {"benchmark": "MisconfigBench", "image": {"distribution": {"digest": "sha256:a62c57345c6c318db657dcb3cdf684f749440f05e71cf65e2878925b0bbaf276", "pull_reference": "docker.io/heliopolis0124/misconfigbench-ca35@sha256:a62c57345c6c318db657dcb3cdf684f749440f05e71cf65e2878925b0bbaf276", "reference": "docker.io/heliopolis0124/misconfigbench-ca35:v0.2", "type": "docker_registry"}, "name": "ca35:latest"}, "instance_id": "CA35", "problem_statement": "# MySQL Client Authentication Failure\n\nA MySQL service is running in the environment.\n\nThe expected behavior is that the standard client invocation can connect\nsuccessfully:\n\n```bash\nmysql\n```\n\nCurrently it fails with an authentication error:\n\n```text\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)\n```\n\nExplicit credentials are known to work, so the database service itself is\nrunning.\n\nDiagnose the problem and repair the environment so the default client\nconnection succeeds without weakening authentication.\n\nDo not modify benchmark harness files, replace the client invocation, or\nweaken authentication.\n", "software": {"name": "MySQL", "version": "8.0.27"}, "source": {"type": "StackOverflow", "url": "https://stackoverflow.com/questions/19300501/mysql-my-cnf-not-reading-credentials-properly"}, "task_type": "misconfig_troubleshooting", "version": "0.2"} |
| {"benchmark": "MisconfigBench", "image": {"distribution": {"digest": "sha256:9f07cf76f2773a7cdc7e8a275a876070162091023a6eae526c9ea5ef32630b12", "pull_reference": "docker.io/heliopolis0124/misconfigbench-cb116@sha256:9f07cf76f2773a7cdc7e8a275a876070162091023a6eae526c9ea5ef32630b12", "reference": "docker.io/heliopolis0124/misconfigbench-cb116:v0.2", "type": "docker_registry"}, "name": "cb116:latest"}, "instance_id": "CB116", "problem_statement": "# mysqld: Job failed to start\n\nMySQL occasionally fails to start on an Ubuntu laptop. Init reports that the mysql main process exits with status 1 and eventually stops respawning. The MySQL error logs are empty.\n\nRunning the daemon manually shows:\n\n```\n[ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address\n[ERROR] Do you already have another mysqld server running on port: 3306 ?\n[ERROR] Aborting\n```\n\nThe laptop currently has address `192.168.1.2`, while the server reports that it is trying to bind to `192.168.1.3`. The laptop uses a DHCP Wi-Fi network. Diagnose and correct the configuration so MySQL starts reliably.\n", "software": {"name": "MySQL", "version": "5.6"}, "source": {"type": "docker_image", "url": "https://hub.docker.com/_/mysql"}, "task_type": "misconfig_troubleshooting", "version": "0.2"} |
| {"benchmark": "MisconfigBench", "image": {"distribution": {"digest": "sha256:b97487904e9172a3c4a18cb31c1646563e9d55dd4b049870dcdd2f818473ad4b", "pull_reference": "docker.io/heliopolis0124/misconfigbench-cd158@sha256:b97487904e9172a3c4a18cb31c1646563e9d55dd4b049870dcdd2f818473ad4b", "reference": "docker.io/heliopolis0124/misconfigbench-cd158:v0.2", "type": "docker_registry"}, "name": "cd158:latest"}, "instance_id": "CD158", "problem_statement": "I've installed nginx with php5-fpm and mysql. My nginx configuration has `root /var/www;`, PHP as the index, and `fastcgi_pass unix:/var/run/php5-fpm.sock;`. It initially downloaded PHP files instead of executing them. Now nginx will not start, and the terminal reports:\n\n```\nuser directive makes sense only if the master process runs with super-user privileges\nnginx: [emerg] \"fastcgi_pass\" directive is not allowed here in /etc/nginx/sites-enabled/default~:68\n```\n\nPlease help fix the problem.\n", "software": {"name": "nginx", "version": "1.18.0"}, "source": {"type": "docker_official", "url": "https://hub.docker.com/_/nginx"}, "task_type": "misconfig_troubleshooting", "version": "0.2"} |
|
|