From 5e86bc2ed60e6e9ee0a0411cc40d6952a5ecab6e Mon Sep 17 00:00:00 2001 From: xiehan <52160700+Barenboim@users.noreply.github.com> Date: Tue, 10 Sep 2024 22:56:10 +0800 Subject: [PATCH] Update tutorial-12-mysql_cli.md --- docs/en/tutorial-12-mysql_cli.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/en/tutorial-12-mysql_cli.md b/docs/en/tutorial-12-mysql_cli.md index 3a529ab029..0f43a54d15 100644 --- a/docs/en/tutorial-12-mysql_cli.md +++ b/docs/en/tutorial-12-mysql_cli.md @@ -18,7 +18,11 @@ mysql://username:password@host:port/dbname?character\_set=charset&character\_set - set scheme to be **mysqls://** for accessing MySQL with SSL connnection (MySQL server 5.7 or above is required). -- fill in the username and the password for the MySQL database; +- fill in the username and the password for the MySQL database; Special characters in password need to be escaped. +~~~cpp +// Password: @@@@#### +std::string url = "mysql://root:" + StringUtil::url_encode_component("@@@@####") + "@127.0.0.1"; +~~~ - the default port number is 3306;