We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ac9c6c commit 449d2f4Copy full SHA for 449d2f4
integration_tests.py
@@ -509,6 +509,20 @@ def exec_mysql():
509
os.execvp(cmd[0], cmd)
510
511
512
+@app.command()
513
+def exec_mysql_root():
514
+ """Start an interactive session in the server container."""
515
+ _check_containers_running()
516
+ cmd = _build_docker_cmd("mysql", use_root=True, cwd="/")
517
+ cmd += [
518
+ "bash",
519
+ "-c",
520
+ f"exec mysql --user={DB_ROOTUSER} --password={DB_ROOTPWD}",
521
+ ]
522
+ typer.secho("Opening prompt inside server container", err=True, fg=c.GREEN)
523
+ os.execvp(cmd[0], cmd)
524
+
525
526
@app.command()
527
def list_services():
528
"""List the services which have been running.
0 commit comments